Skip to content

Instantly share code, notes, and snippets.

Antarctic Bear

Anton Komarev antonkomarev

Antarctic Bear
View GitHub Profile
View gist:e53fefb1c194dfee6c9881d690858da5
<meta charset="utf8">
<link href="^2/dist/tailwind.min.css" rel="stylesheet">
<div class="container mx-auto font-serif">
<h1 class="text-6xl text-center mt-6">Правда</h1>
<h2 class="text-4xl text-center mt-6">ПОДЗАГОЛОВОК ГЛАВНОЙ СТАТЬИ</h2>
<div class="mt-12">
<h1 class="text-7xl text-center">ГЛАВНАЯ СТАЬЯ</h1>


curl -i -F "url=" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://*
  • https://**
  • https://*
antonkomarev / .gitconfig
Last active Sep 10, 2020
Useful git aliases to speed up development
View .gitconfig
cleanup = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
go = "!git checkout ${1:-master} && git pull && git cleanup"
antonkomarev / plink-plonk.js
Created Feb 15, 2020 — forked from tomhicks/plink-plonk.js
Listen to your web pages
View plink-plonk.js
antonkomarev / .gitconfig
Last active Jun 20, 2020
Git configuration
View .gitconfig
excludesfile = ~/.gitignore
current-hash = "rev-parse HEAD"
current-branch = "rev-parse --abbrev-ref HEAD"
clean-up = "!git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D"
go = "!git checkout ${1:-master} && git pull && git clean-up"
View .bashrc
alias art='php artisan'
alias pu='vendor/bin/phpunit'
alias puf='vendor/bin/phpunit --filter='
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
antonkomarev / ffmpeg-html5
Created Dec 12, 2017 — forked from yellowled/ffmpeg-html5
Convert videos to proper formats for HTML5 video on Linux shell using ffmpeg. Will probably convert this to a bash script later, but for the time being, here's some examples. Not sure there have actually sensible dimensions and bitrates for web video.
View ffmpeg-html5
# webm
ffmpeg -i IN -f webm -vcodec libvpx -acodec libvorbis -ab 128000 -crf 22 -s 640x360 OUT.webm
# mp4
ffmpeg -i IN -acodec aac -strict experimental -ac 2 -ab 128k -vcodec libx264 -vpre slow -f mp4 -crf 22 -s 640x360 OUT.mp4
# ogg (if you want to support older Firefox)
ffmpeg2theora IN -o OUT.ogv -x 640 -y 360 --videoquality 5 --audioquality 0 --frontend
antonkomarev / CssActiveClassComposer.php
Last active Apr 8, 2017
Laravel CSS Active Class View Composer
View CssActiveClassComposer.php
namespace App\ViewComposers;
use Illuminate\View\View;
use Illuminate\Support\Str;
use Illuminate\Http\Request;
class CssActiveClassComposer
antonkomarev / CountrySeeder.php
Last active Jan 19, 2017
Laravel dictionary seeders
View CountrySeeder.php
use Illuminate\Database\Seeder;
class CountrySeeder extends Seeder
* Run the database seeds.
* @return void
View CourseOpener.php
namespace App\Domain\Courses;
use App\Domain\Courses\Exam\ExamQuestion;
use App\Domain\Courses\Exam\ExamVersion;
use App\Exceptions\Courses\CourseCannotBeOpened;
class CourseOpener