Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| public class BlockingQueue implements Queue { | |
| private java.util.Queue queue = new java.util.LinkedList(); | |
| /** | |
| * Make a blocking Dequeue call so that we'll only return when the queue has | |
| * something on it, otherwise we'll wait until something is put on it. | |
| * | |
| * @returns This will return null if the thread wait() call is interrupted. | |
| */ |
| --- /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py.orig 2011-09-15 14:28:14.000000000 -0400 | |
| +++ /opt/vertica/oss/python/lib/python2.7/site-packages/vertica/network/SystemProfileFactory.py 2011-09-15 14:29:51.000000000 -0400 | |
| @@ -142,8 +142,14 @@ | |
| if (res[0] == '0'): | |
| opsys = DBinclude.OS_DEBIAN | |
| return opsys, host | |
| + | |
| + (status, res) = ssh.execute("grep \"squeeze\" /etc/debian_version", hide=True) | |
| + if (res[0] == '0'): | |
| + opsys = DBinclude.OS_DEBIAN |
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| tell application "System Events" | |
| -- get current clipboard contents as a string | |
| set CurrentClipboard to the clipboard as string | |
| -- set the clipboad to your password | |
| set the clipboard to "Y0urVPNPa$$w0rd" | |
| -- start playing with the VPN | |
| tell current location of network preferences | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.concurrent.Callable; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Future; | |
| import java.util.concurrent.LinkedBlockingQueue; | |
| import java.util.concurrent.ThreadPoolExecutor; | |
| import java.util.concurrent.TimeUnit; |
| (function () { | |
| function c() { | |
| var e = document.createElement("link"); | |
| e.setAttribute("type", "text/css"); | |
| e.setAttribute("rel", "stylesheet"); | |
| e.setAttribute("href", f); | |
| e.setAttribute("class", l); | |
| document.body.appendChild(e) | |
| } | |
| function h() { |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| # Copyright (c) 2014 Lukas Fittl <[email protected]> | |
| # | |
| # Released in the public domain - fork as you wish. | |
| require 'rubygems' | |
| require 'mixlib/cli' | |
| require 'pg' | |
| require 'pg_query' | |
| require 'curses' |
| // How to use: | |
| // 1. Open "Script Editor" (requires OS X 10.10 Yosemite) | |
| // 2. Change the language from "AppleScript" to "JavaScript" | |
| // 3. Paste the code below and replace the safari example. | |
| // | |
| // More info: | |
| // https://developer.apple.com/library/mac/releasenotes/InterapplicationCommunication/RN-JavaScriptForAutomation/index.html | |
| var sys_events = Application("System Events"); |
| /** | |
| * To get started: | |
| * git clone https://github.com/twitter/algebird | |
| * cd algebird | |
| * ./sbt algebird-core/console | |
| */ | |
| /** | |
| * Let's get some data. Here is Alice in Wonderland, line by line | |
| */ |