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
#!/bin/sh | |
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` | |
git push gh-coornail $CURRENT_BRANCH | |
echo | |
echo "https://github.com/Coornail/WalkHub/compare/$CURRENT_BRANCH?expand=1" | |
echo |
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
#!/bin/sh | |
USERNAME='' | |
PASSWORD='' | |
BUCKET='' | |
AUTH_RESPONSE=`curl -s -X POST "https://api.zenobase.com/oauth/token" -d "grant_type=password&username=${USERNAME}&password=${PASSWORD}"` | |
echo $AUTH_RESPONSE | |
TOKEN=`echo ${AUTH_RESPONSE} | json -a access_token` && echo "Got token: $TOKEN" |
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
# Install node and packages. | |
cd /tmp/ | |
git clone https://github.com/joyent/node.git --depth=100 | |
cd node | |
git checkout v0.10.28 | |
./configure | |
make -j2 | |
sudo make install |
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
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA2Tl/TCpIc7t0VYgmA2kbtTHCjS1zWJq6hxF456IlfkFIOZSqUosaXViWcbSlwQxjGLAlQpzj2wUlZy320bAvu9zHw3u7bfn9GM95mpfpvCfnAlxRJbRe2DvXDGZGHma/6UUrFr4xG11VZP7G6vPKeglnuSAP0lKa7I24rmAOg5yO++6pLnDEMhXP1JdRw0sCyflE0JvxF6rV9ulDcZ9Rd5mHEJnMkXeu9GVbx8v22o661hQnA3vHSB1ax2D0vm3TfkI2IAqu8ux/wLny91/u4t1wrWf2/VHtdYVpXX/sqjVDu+GQ2VgI+XdZQJOdVmUf1V4y4diFA8Siro60zFrGFQ== coornail@slash |
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
function serverReachable() { | |
// Cross-browser XHR creation | |
var request = new ( window.ActiveXObject || XMLHttpRequest )( "Microsoft.XMLHTTP" ), | |
status_code; | |
request.open( | |
// requesting the headers is faster, and just enough | |
"HEAD", | |
// append a random string to the current hostname, | |
// to make sure we're not hitting the cache |
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
#!/bin/sh | |
HOUR=`date +%H | sed -e 's/^0//g'` | |
DAY=`date +%A` | |
# Don't list work related tasks... | |
FILTER='-+Pronovix' | |
# ... Except at work time. | |
if [[ $HOUR -gt 8 && $HOUR -lt 18 ]]; then |
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
#!/bin/bash | |
ALL_TASKS=`cat ~/todo.txt | wc -l` | |
COMPLETED_TASKS=`cat ~/todo.txt | grep '^x\ ' | wc -l` | |
echo -n '[' | |
for i in $(seq 1 $COMPLETED_TASKS); do | |
echo -n '=' | |
done; |
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
Host * | |
Compression=yes | |
CompressionLevel=9 | |
ControlMaster auto | |
ControlPath /tmp/%r@%h:%p | |
ServerAliveInterval 100 | |
Host bastion | |
HostName bastion-21.network.hosting.acquia.com | |
User attilafekete |
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
#,Episode,"User | |
Rating","User | |
Votes",,Season | |
1.1,Pilot,8.8,3339,1 2 3 4 5 6 7 8 9 10 8.8/10 X,1 | |
1.2,Cat's in the Bag...,8.5,2313,1 2 3 4 5 6 7 8 9 10 8.5/10 X,1 | |
1.3,...And the Bag's in the River,8.6,2154,1 2 3 4 5 6 7 8 9 10 8.6/10 X,1 | |
1.4,Cancer Man,8.3,2019,1 2 3 4 5 6 7 8 9 10 8.3/10 X,1 | |
1.5,Gray Matter,8.3,1976,1 2 3 4 5 6 7 8 9 10 8.3/10 X,1 | |
1.6,Crazy Handful of Nothin',9.1,2249,1 2 3 4 5 6 7 8 9 10 9.1/10 X,1 | |
1.7,A No-Rough-Stuff-Type Deal,8.7,1972,1 2 3 4 5 6 7 8 9 10 8.7/10 X,1 |
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
library(ggplot2) | |
# Load and format data. | |
bb <- read.csv("bb.csv") | |
fr <- data.frame(idx=as.numeric(1:57), rating=bb$User.Rating, season=factor(bb$Season)) | |
# Print graph. | |
png("/tmp/bb.png", width=1280, height=768) | |
gplot(data=fr, aes(x=fr$idx, y=fr$rating, color=season)) + geom_point(size=3) + geom_smooth(aes(group=fr$season), method="lm") + labs(x="", y="User rating", color="Season", title="Breaking Bad episode rating") | |
dev.off() |
OlderNewer