This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!php | |
<?php | |
$files = array(); | |
exec('git diff-index --cached --diff-filter=ACMRTUXB --name-only HEAD', $files ); | |
$exitcode = 0; | |
// dont redirect stderr to stdin, we will get the errors twice, redirect it to dev/null | |
if ( PHP_OS == 'WINNT' ) | |
$redirect = ' 2> NUL'; | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/opt/perlbrew/perls/current/bin/perl | |
use utf8; | |
use strict; | |
use warnings; | |
use v5.16; | |
use Algorithm::Permute; | |
use Data::Validate::IP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php > $foo = []; | |
php > $foo[0] = 'zero'; | |
php > $foo[1] = 'first'; | |
php > $foo[0] = 'second'; | |
php > var_dump($foo); | |
array(2) { | |
[0] => | |
string(6) "second" | |
[1] => | |
string(5) "first" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
male | |
---- | |
model-002.jpg model-012.jpg model-023.jpg model-033.jpg model-045.jpg | |
model-003.jpg model-014.jpg model-025.jpg model-035.jpg model-047.jpg | |
model-004.jpg model-016.jpg model-026.jpg model-036.jpg model-049.jpg | |
model-006.jpg model-017.jpg model-027.jpg model-041.jpg model-050.jpg | |
model-007.jpg model-019.jpg model-031.jpg model-043.jpg | |
model-010.jpg model-021.jpg model-032.jpg model-044.jpg | |
female |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/ruby | |
grep = `git grep -n #{ARGV[0]} #{ARGV[1]}` | |
interrupt = false | |
grep.split("\n").each do |file_with_line| | |
exit if interrupt | |
file, line_number, line = file_with_line.split(':', 3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~]% pip install twisted (arkadiy@sodium:~) | |
Downloading/unpacking twisted | |
Downloading Twisted-14.0.2.tar.bz2 (4.3MB): 4.3MB downloaded | |
Running setup.py (path:/private/var/folders/sm/38kkrt9n5z5524hmxqn3h8yh0000gq/T/pip_build_arkadiy/twisted/setup.py) egg_info for package twisted | |
Downloading/unpacking zope.interface>=3.6.0 (from twisted) | |
Downloading zope.interface-4.1.1.tar.gz (864kB): 864kB downloaded | |
Running setup.py (path:/private/var/folders/sm/38kkrt9n5z5524hmxqn3h8yh0000gq/T/pip_build_arkadiy/zope.interface/setup.py) egg_info for package zope.interface | |
warning: no previously-included files matching '*.dll' found anywhere in distribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0ff3a49...//src]% git remote -v (arkadiy@sodium:~/src/) | |
origin https://chromium.googlesource.com/chromium/src.git (fetch) | |
origin https://chromium.googlesource.com/chromium/src.git (push) | |
[0ff3a49...//src]% git shortlog -sn | wc -l (arkadiy@sodium:~/src/) | |
3385 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source | target | value | |
---|---|---|---|
Harry | Sally | 100 | |
Harry | Sally | 100 | |
Harry | Sally | 100 | |
Harry | Mario | 1.3 | |
Sarah | Alice | 0.2 | |
Eveie | Alice | 0.5 | |
Peter | Alice | 1.6 | |
Mario | Alice | 0.4 | |
James | Alice | 0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this replaces https://github.com/tpope/heroku-surrogate for docker containers (sort of) | |
docker-compose run `heroku config -a $APPNAME | tail +2 | tr -s " " | sed -E "s/^([^ ]+): (.+)/-e \1=\2/" | tr "\\n" " "` api rails c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying I am +arkadiy on my passcard. https://onename.com/arkadiy |
OlderNewer