$ ./bin/psql template1
Welcome to psql 8.1.4, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
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
// Setup instructions | |
// | |
// Copy and paste into a Google Apps Script project. Make sure you set the source calendar id constant | |
// below. It should be set to the email address of the source calendar. | |
// | |
// Add a trigger to run the syncUpdatedEventsIncremental function the on the "Calendar - Changed" event | |
// of the source calendar. | |
// | |
// The first time you run this, you might want to select the "resyncEvents" function, and manually run | |
// it in the Apps Script editor. |
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
// Setup instructions | |
// | |
// Copy and paste into a Google Apps Script project. Feel free to change the colors below. | |
// | |
// Add a trigger to run the colorUpdatedCalendarEvents function the on the "Calendar updated" event of | |
// your calendar. | |
const PERSONAL_COLOR = CalendarApp.EventColor.GRAY; | |
const IN_PERSON_COLOR = CalendarApp.EventColor.BLUE; | |
const EXTERNAL_COLOR = CalendarApp.EventColor.RED; |
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 "socket" | |
require "timeout" | |
if ARGV.length < 2 | |
puts "usage: tcping HOST PORT" | |
exit 1 | |
end |
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 python | |
import sys | |
import urllib2 | |
import json | |
import webbrowser | |
import BaseHTTPServer | |
import threading | |
markdown = sys.stdin.read() |
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
$ echo "source 'https://rubygems.org'\ngem 'rails', '4.2.0'" > Gemfile && bundle install | |
[truncated] | |
Using rails 4.2.0 | |
Your bundle is complete! | |
It was installed into ./.bundle | |
$ bundle exec ruby routing_issue.rb | |
Run options: --seed 9548 | |
# Running: |
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
CREATE OR REPLACE FUNCTION base32_encode(n bigint, min_width int DEFAULT 8) RETURNS text AS $$ | |
DECLARE | |
alphabet CONSTANT text := '0123456789abcdefghjkmnpqrstvwxyz'; | |
output text := ''; | |
BEGIN | |
IF n < 0 THEN | |
RAISE EXCEPTION 'base32_encode called with negative value'; | |
END IF; | |
WHILE n != 0 LOOP |
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
$ touch ${HOME}/foobar; time sync | |
real 0m2.956s | |
user 0m0.000s | |
sys 0m0.012s | |
$ touch ${HOME}/foobar; time sync | |
real 0m0.286s | |
user 0m0.000s | |
sys 0m0.004s |
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
use std::io::{print}; | |
use std::cmp::{min,max}; | |
use std::time::Duration; | |
#[deriving(Clone,Show,PartialEq)] | |
enum Cell { | |
Alive, | |
Dead, | |
} |
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
Your Gemfile lists the gem elasticsearch-extensions (>= 0) more than once. | |
You should probably keep only one of them. | |
While it's not a problem now, it could cause errors if you change the version of just one of them later. | |
Starting 2 Elasticsearch nodes............. | |
-------------------------------------------------------------------------------- | |
Cluster: elasticsearch_test | |
Status: green | |
Nodes: 2 | |
+ node-2 | version: 1.1.1, pid: 79902, address: inet[/0:0:0:0:0:0:0:0%0:9251] | |
- node-1 | version: 1.1.1, pid: 79901, address: inet[/0:0:0:0:0:0:0:0:9250] |
NewerOlder