I hereby claim:
- I am jeremyworboys on github.
- I am jeremyworboys (https://keybase.io/jeremyworboys) on keybase.
- I have a public key whose fingerprint is 0736 97FD 69CB 1DE3 53FE F640 3EE1 8861 E834 E7AE
To claim this, I am signing this object:
| #!/bin/bash | |
| # Get project name | |
| if [[ $1 == "" ]] | |
| then | |
| echo -n "Enter project name (or domain): " | |
| read -e PROJECT_NAME | |
| if [[ $PROJECT_NAME == "" ]] | |
| then |
| alias c='clear' | |
| alias l="ls -FlAGh" | |
| alias lo="ls -FlAGh | awk '{k=0;for(i=0;i<=8;i++)k+=((substr(\$1,i+2,1)~/[rwx]/)*2^(8-i));if(k)printf(\"%0o \",k);print}'" | |
| alias server="php -S 0.0.0.0:8080" | |
| alias clearcache="sudo killall -HUP mDNSResponder" | |
| alias pubkey="/bin/cat ~/.ssh/id_rsa.pub | pbcopy" | |
| alias name="uname -n | tee /dev/ttys001 | pbcopy" | |
| alias art="php artisan" | |
| alias test="clear && phpunit" |
| export ZSH=$HOME/.oh-my-zsh | |
| ZSH_THEME="pure" | |
| DISABLE_AUTO_TITLE="true" | |
| ENABLE_CORRECTION="true" | |
| COMPLETION_WAITING_DOTS="true" | |
| plugins=(bower composer cp git laravel4 npm common-aliases pip python virtualenv) | |
| source $ZSH/oh-my-zsh.sh |
| <?php | |
| namespace Domain\Entities\Traits; | |
| /** | |
| * Annotated entity trait | |
| */ | |
| trait AnnotatedEntityTrait | |
| { | |
| /** @var array */ |
I hereby claim:
To claim this, I am signing this object:
| $provision_v8js = <<SCRIPT | |
| apt-get install -y libv8-dev | |
| yes | pecl install v8js-0.1.3 | |
| echo "extension=v8js.so" > /etc/php5/mods-available/v8js.ini | |
| php5enmod v8js | |
| SCRIPT | |
| config.vm.provision "shell", inline: $provision_v8js |
| function is_blog () { | |
| global $post; | |
| $posttype = get_post_type($post); | |
| return (($posttype == 'post') && ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag()))); | |
| } | |
| Usage: | |
| <?php if (is_blog()) { echo 'You are on a blog page'; } ?> |
| .ir { | |
| border: 0; | |
| color: transparent; | |
| font: 0/0 a; | |
| text-shadow: none; | |
| } |
| (function(d) { | |
| var dl, pl, ps = d.querySelectorAll('.large.player, .medium.player'); | |
| for (var i = ps.length - 1; i >= 0; i--) { | |
| pl = ps[i]; | |
| dl = d.createElement('a'); | |
| dl.innerText = 'Download MP3'; | |
| dl.href = "http://media.soundcloud.com/stream/"+pl.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1]; | |
| dl.download = pl.querySelector('.info-header h1, .info-header h3').innerText+'.mp3'; | |
| pl.querySelector('.primary').appendChild(dl); | |
| dl.style.marginLeft = '10px'; |
| <?php | |
| error_reporting(E_ALL); | |
| /* | |
| Plugin Name: PLUGIN_NAME | |
| Plugin URI: PLUGIN_URI | |
| Description: PLUGIN_DESCRIPTION | |
| Version: 1.0 | |
| Author: Jeremy Worboys |