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
""" | |
HexByteConversion | |
Convert a byte string to it's hex representation for output or visa versa. | |
ByteToHex converts byte string "\xFF\xFE\x00\x01" to the string "FF FE 00 01" | |
HexToByte converts string "FF FE 00 01" to the byte string "\xFF\xFE\x00\x01" | |
""" | |
#------------------------------------------------------------------------------- |
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
wget http://download.redis.io/releases/redis-2.8.4.tar.gz | |
tar xzf redis-2.8.4.tar.gz | |
cd redis-2.8.4 | |
make | |
sudo make install | |
cd utils | |
sudo ./install_server |
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
74.125.128.102 golang.org | |
54.234.135.251 get.docker.io | |
54.234.135.251 cdn-registry-1.docker.io |
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 os | |
import shlex | |
import struct | |
import platform | |
import subprocess | |
__func = None | |
def get_terminal_size(): |
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 os | |
import shlex | |
import struct | |
import platform | |
import subprocess | |
def get_terminal_size(): | |
""" getTerminalSize() |
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
package main | |
import ( | |
eventsource "github.com/antage/eventsource/http" | |
redis "github.com/vmihailenco/redis" | |
"log" | |
"net/http" | |
) | |
func haltOnErr(err error){ |
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 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |
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
/* | |
* Copyright (C) 2012, xp@renzhi.ca | |
* All rights reserved. | |
* | |
* Ported to rust 0.4 by kevin@sb.org | |
*/ | |
extern mod std; | |
use task::*; |
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
go get github.com/codegangsta/martini | |
go get github.com/codegangsta/martini-contrib/... |
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
%% from https://erlangcentral.org/wiki/index.php/Process_Ring_Across_Nodes | |
%% | |
%% Written by Mazen Harake | |
%% GPLv3 License -> http://www.gnu.org/licenses/gpl-3.0.txt | |
-module(nodeloop). | |
-compile(export_all). | |
start(N) when N > 0 -> | |
erlang:register(head, proc_lib:spawn_link(?MODULE, head_proc, [nil, nil])), | |
create_links(N). |