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/bin/env bash | |
EMAIL="" | |
API_TOKEN="" | |
DOMAIN_ID="" | |
RECORD_ID="" | |
EXTERNAL_IP="`curl http://rqst.io/ip | jgrep -s "ip"`" | |
curl -H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ |
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 jp -d "Open default editor with date prepended filename and specified title for jekyll posts." | |
set title (date +"%Y-%m-%d") | |
switch (count $argv) | |
case 0 | |
echo "No post title was specified." | |
return 1 | |
case 1 | |
set lower_arg (echo $argv[1] | tr A-Z a-z) |
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/bin/env ruby | |
require 'rubygems' | |
require 'stathat' | |
api_key = "" | |
# strip any leading text up to and including the equals symbol, | |
# and strip the specified number of trailing characters | |
def stripcruft(string, trailingchars) |
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
import QtQuick 2.0 | |
Rectangle { | |
id: scene | |
width: 1280 | |
height: 800 | |
color: "white" | |
PathView { | |
anchors.fill: parent |
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
sudo yum install libevent-devel | |
wget http://downloads.sourceforge.net/tmux/tmux-1.6.tar.gz | |
tar -xvzf tmux-1.6.tar.gz | |
cd tmux-1.6 | |
./configure | |
make | |
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
NSSavePanel *savePanel = [NSSavePanel savePanel]; | |
[savePanel setPrompt:@"Save"]; | |
[savePanel setNameFieldStringValue:@"Test.txt"]; | |
[savePanel beginSheetModalForWindow:[self window] completionHandler:^(NSInteger returnCode) | |
{ | |
if (returnCode == NSOKButton) | |
{ | |
// respond to button click | |
} |
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
psql: could not connect to server: No such file or directory | |
Is the server running locally and accepting | |
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? |
NewerOlder