ssh-keygen -p -N "" -f ~/.ssh/id_rsa -m pem
ssh-keygen -e -m PKCS8 -f ~/.ssh/id_rsa
public static IQueryable<T> WhereAny<T>(this IQueryable<T> source, params Expression<Func<T, bool>>[] predicates) | |
{ | |
Expression<Func<T, bool>> filter = t => false; | |
foreach (var predicate in predicates) | |
filter = filter.Combine(Expression.OrElse, predicate); | |
return source.Where(filter); | |
} |
# ffmpeg -i steep_turn_corrected.MOV -acodec copy -vcodec copy steep_turn_corrected.mp4 | |
# exiftool -ProjectionType="equirectangular" photo.jpg | |
ffmpeg -i hatcher_birthday1.MOV -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate0.ts | |
ffmpeg -i hatcher_birthday2.MOV -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts | |
ffmpeg -i "concat:intermediate0.ts|intermediate1.ts" -c copy -bsf:a aac_adtstoasc hatcher_birthday.mp4 |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/syntastic' | |
Plug 'vim-airline/vim-airline' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-rails' | |
Plug 'tpope/vim-commentary' | |
Plug 'slim-template/vim-slim' | |
Plug 'kchmck/vim-coffee-script' |
[core] | |
safecrlf = true | |
pager = "less -FX" | |
excludesFile = ~/.gitignore | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
pr = pull --rebase |
@mixin media-specific-styles($class) { | |
%#{$class} { @content; } | |
@each $size, $dim in $mq-sizes { | |
@include breakpoint($size) { | |
%#{$class}--#{$size} { @content; } | |
.#{$class}--#{$size} { @extend %#{$class}--#{$size}; } | |
} | |
} | |
} |
module LoginHelper | |
def sign_in(user) | |
@signed_in_user = user | |
visit root_path | |
fill_in "Username", with: user.username | |
fill_in "Password", with: user.password | |
click_on "Log in" | |
end |
<script>alert('');</script> |
// Usage examples | |
// | |
// Calls the default asp.net event for the control | |
// OnClientClick = "return confirmAction('Are you sure?', this);" | |
// | |
// Uses your own function | |
// OnClientClick = "return confirmAction('Are you sure?', function() { window.alert('No Way!'); });" | |
// | |
// Uses built in browser confirmation | |
// OnClientClick = "return confirmAction('Are you sure?');" |
// basic example | |
$('span').filter(function() { | |
return this.innerHTML.match(/\b(fire|aqua|elec|wood)\b/gi); | |
}).css("border", "1px solid red"); | |
// styling each individual word | |
var fire = "<span style='border: 3px solid red;'>fire</span>"; | |
var aqua = "<span style='border: 3px solid blue;'>aqua</span>"; | |
var elec = "<span style='border: 3px solid gray;'>elec</span>"; |