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 ( | |
"testing" | |
"sync/atomic" | |
) | |
func sumI(nums... interface{}) interface{} { | |
var s uint64 | |
for _, n := range nums { |
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
<?php | |
/** | |
* Plugin Name: OneOfOne's NoSpam | |
* Plugin URI: http://limitlessfx.com/php/nospam-wp | |
* Description: Simple transparent no-spam plugin | |
* Version: 0.4 | |
* Author: OneOfOne | |
* Author URI: http://limitlessfx.com/ | |
* License: Apache-2 | |
*/ |
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 ( | |
"fmt" | |
"unsafe" | |
) | |
//#include "xxhash_9p.c" | |
//import "C" //uncomment this and comment the next line for the cgo version | |
func XXH32_test(in unsafe.Pointer, l uint32, seed uint32) uint32 |
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
set nocompatible | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'bling/vim-airline' |
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
{ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg"], | |
"brace_style": "collapse", | |
"end_with_newline": true, | |
"indent_char": "\t", | |
"indent_handlebars": false, | |
"indent_inner_html": false, | |
"indent_scripts": "keep", | |
"indent_size": 1, |
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 ( | |
"bufio" | |
"fmt" | |
"os" | |
"os/exec" | |
"strings" | |
"time" | |
) |
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 | |
IFS=$(echo -en "\n\b") | |
if [ -e /opt/arch32 ]; then | |
CDIR="$(pwd)" arch32 $0 ${@}; exit | |
else | |
if [ -d "$CDIR" ]; then | |
cd "$CDIR" | |
fi | |
unset CDIR |
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/sh | |
# | |
# this script is under public domain, go nuts. | |
# originally posted by OneOfOne at https://gist.github.com/OneOfOne/6598fd2f79145200b512 | |
# | |
if [ "$#" -lt 2 ]; then | |
echo "usage: $0 files... [sftp args] host:/path" > /dev/stderr | |
exit 1 |
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/sh | |
BRANCH=$(git symbolic-ref --short HEAD) | |
if echo $BRANCH | grep -q master; then | |
echo no master pushing | |
exit 1 | |
fi | |
if git remote show -n origin | grep -q $BRANCH; then | |
git push "$@" | |
else |
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
client | |
dev tun | |
proto udp | |
remote remote-server.com 1194 | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
ca /etc/openvpn/pki/ca.crt | |
cert /etc/openvpn/pki/issued/myclienthost.crt |
OlderNewer