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 | |
#------------------------------------------------------------------------------- | |
# Wrapper script that can specify an ssh-key file with the Git command | |
# | |
# The MIT License (MIT) - http://opensource.org/licenses/MIT | |
# Copyright (c) 2013 Alvin Abad | |
#------------------------------------------------------------------------------- | |
if [ $# -eq 0 ]; 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
#!/usr/bin/env ruby | |
# | |
## Brute code stolen form: https://gist.github.com/petehamilton/4755855 | |
# | |
@domain = 'contoso.com' | |
def result?(sub) | |
results = %x(dig +noall #{sub}.#{@domain} +answer) |
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 | |
while true; do pstree | grep "|-java" | awk -F* '{print $1}' | sed -e 's/|-java---//g' | sed -e 's/ //g' | tr "\\n" ","; date +"%D %T"; sleep 10; 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
// replace hex string in url with char, replace %2F with / | |
url = "http://www.58.com%2Fserver%2Fserver.xml"; | |
url.replace(/%([0-9A-Fa-f]{2})/g, function() { | |
return String.fromCharCode(parseInt(arguments[1], 16)); | |
}); |
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
// gcc -o no_main no_main.c -nostartfiles | |
#include <stdio.h> | |
extern void _exit (register int code); | |
_start() | |
{ | |
int retval; | |
retval = my_main (); |
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 os | |
import time | |
document = open("My Clippings.txt","r") | |
data = "".join(document.readlines()) | |
notes = [] | |
try: | |
clippings = data.split('==========') | |
for clip in clippings: |
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
#include <sys/param.h> | |
uint64_t htonll(uint64_t n) | |
{ | |
#if __BYTE_ORDER == __BIG_ENDIAN | |
return n; | |
#else | |
return (((uint64_t)htonl(n)) << 32) + htonl(n >> 32); | |
#endif | |
} |
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 split(str,delim) | |
local i,j,k | |
local t = {} | |
k = 1 | |
while true do | |
i,j = string.find(str,delim,k) | |
if i == nil then | |
table.insert(t,string.sub(str,k)) | |
return t | |
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
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted | |
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick main restricted | |
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted | |
deb-src http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted | |
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu | |
## team. Also, please note that software in universe WILL NOT receive any | |
## review or updates from the Ubuntu security team. | |
deb http://old-releases.ubuntu.com/ubuntu/ maverick universe |