Skip to content

Instantly share code, notes, and snippets.

Buf:0x<1f 8b 08 00 00 00 00 00 00 03 15 ca 4d 0e c2 20 10 40 e1 ab 10 d6 2e 28 33 fc d4 33 b8 eb d2 b8 18 da 21 92 58 68 a0 c6 85 f1 ee c2 f6 7d ef fe 95 e5 93 b9 ca ab 88 f4 6a 7c 11 f2 e0 ba a7 d6 52 c9 ad d7 49 21 80 06 03 5d d2 5a 72 4f d2 79 4d c8 06 37 ed 43 b0 08 01 66 62 85 14 d7 e8 58 19 94 e3 dd ...>
role Frobber {
method frob ($x) { say $x }
}
role Frobnicator does Frobber {
has $.x;
multi method frob ($x) { self.Frobber::frob($x) }
multi method frob () { self.frob($.x) }
}
=head2 pod5
This is how you might describe a method called pod5
=cut
=begin pod
=head2 pod6
This is how you might describe a method called pod6
=end pod
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'ragtag.vim'
Plugin 'tpope/vim-surround'
@Altreus
Altreus / gist:33f20665a3a4dd40d556a2cf595d447f
Last active May 10, 2018 16:01
wrap entire file in div
O<div class="container">^[j>GGo</div>^[
O<div class="container">^[jg>>GGo</div>^[
@Altreus
Altreus / gist:e693f739227806f8cf02bf898724cb95
Created April 18, 2018 15:30
Update Perl modules so package line matches path
find lib -name '*.pm' | xargs perl -pi -E'(s{^package \K.*;$}{join("::", split "/", ($ARGV =~ s!lib/|\.pm!!gr)) . ";"}e and $seen{$ARGV}++) unless $seen{$ARGV}'

Keybase proof

I hereby claim:

  • I am altreus on github.
  • I am altreus (https://keybase.io/altreus) on keybase.
  • I have a public key whose fingerprint is 07B0 0E86 E59F B24B F807 C5C8 49F3 45C1 1751 8986

To claim this, I am signing this object:

:: @ECHO OFF
for %%i in ("%cd%") do SET OUT="%%~nxi"
SET BITRATE="10000000"
SET RATIO="1920:1080"
:: x264 main profile, veryfast cpu, lossless, level is kinda like version
:: -preset veryfast -qp 0
:: 60fps, keyframe every 2s
ffmpeg -loglevel panic -i %3 -i %4 -map 0:v -map 1:a -vb %BITRATE% -minrate %BITRATE% -maxrate %BITRATE% -bufsize %BITRATE% -aspect %RATIO% -s %RATIO% -c:v libx264 -profile:v main -level 3.1 -r 60 -g 120 -keyint_min 120 -x264opts "keyint=120:min-keyint=120:no-scenecut" -c:a aac -ab 48000 -ac 2 -f avi -ss %1 -to %2 %OUT%.avi
#!/bin/bash
OUT=`basename "$PWD"`.avi
BITRATE=10000000
RATIO=1920:1080
# x264 main profile, veryfast cpu, lossless, level is kinda like version
# -preset veryfast -qp 0
# 60fps, keyframe every 2s
ffmpeg -i "$3" -i "$4" \
-map 0:v -map 1:a \