I hereby claim:
- I am cjs on github.
- I am cjs (https://keybase.io/cjs) on keybase.
- I have a public key whose fingerprint is B6CF 6990 889F 641B DA8C 0C5E C970 85CF E5BA 0ED3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Io language test failures on Debian Stable:
root@97111b64e45f:/tmp/iobuild/io-2013.12.04/build# io ../libs/iovm/tests/correctness/run.io
..........EE.......................................................E..
......................................................................
......................................................................
...................
======================================================================
FAIL: DirectoryTest testWalk
# I didn't write this, I just adapted it from the lenny version: https://gist.github.com/href/54859127c183f67f947f | |
# inspired by http://askubuntu.com/a/528171 | |
# prerequisites | |
sudo apt-get install bison | |
# get bash 3.1 source | |
mkdir src && cd src | |
wget http://ftp.gnu.org/gnu/bash/bash-3.1.tar.gz | |
tar zxvf bash-3.1.tar.gz |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
--Split a string on : | |
-- Second Element: | |
select regexp_substr('First String: Second String', '[^:]+', 1, 2) | |
from dual; | |
-- Valid IP address | |
select 1 from dual | |
where regexp_like('192.168.2.254', '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$');' |
Boxen uses a bunch of shellscripts to insert itself into your environment on shell load.
These assume a POSIX shell, which fish is not.
Run this script to generate a fish-compatible config file in ~/.config/fish/boxen.fish
, which you can source at the end of your ~/.config/fish/config.fish
.
# copied from https://github.com/jkbrzt/httpie/blob/master/extras/httpie-completion.fish for fisherman install | |
function __fish_httpie_auth_types | |
echo "basic"\t"Basic HTTP auth" | |
echo "digest"\t"Digest HTTP auth" | |
end | |
function __fish_httpie_styles | |
echo "autumn" | |
echo "borland" |
/** | |
* Authorizes and makes a request to the GitHub API. | |
*/ | |
function run() { | |
var service = getService(); | |
if (service.hasAccess()) { | |
var url = 'https://cjs.sickbaylab.com/api/v3/user'; | |
var response = UrlFetchApp.fetch(url, { | |
headers: { | |
Authorization: 'Bearer ' + service.getAccessToken() |