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 | |
#Post Install for Ubuntu 14.04 LTS (Trusty) | |
#copy and paste and run - don't run this script directly | |
#you are going to need to reboot after each part. | |
echo "Don't run this script directly, copy and paste" | |
echo "the parts you will use! See the file's comments for information." | |
echo "" | |
echo "The script will run part 1 for you.. then read the file for rest!" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 random | |
import time | |
import subprocess | |
random.seed() | |
full_files = [] | |
rootdir = "/home/dbehnke/wallpapers" | |
sleeptime = 300 | |
while 1: | |
print("reading pictures from ", rootdir) |
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 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
export ORACLE_HOME=${DIR} | |
export LD_LIBRARY_PATH=${DIR}:$LD_LIBRARY_PATH |
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 | |
function addppa { | |
add-apt-repository $1 -y | |
} | |
function aptinstall { | |
apt-get install $1 -y | |
} |
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 bash | |
# | |
# Create a base CentOS Docker image. | |
# | |
# This script is useful on systems with yum installed (e.g., building | |
# a CentOS image on CentOS). See contrib/mkimage-rinse.sh for a way | |
# to build CentOS images on other systems. | |
usage() { | |
cat <<EOOPTS |
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 logging | |
import ( | |
"fmt" | |
"log" | |
) | |
const ( | |
DEBUG = 0 | |
INFO = 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 ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func pickone(ticketsize int) []int { | |
one := make([]int, ticketsize) |
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 | |
//http://play.golang.org/p/kLmBrJYchH | |
import ( | |
"fmt" | |
"time" | |
) | |
func mychan(id string, c chan string) { |
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 | |
/*test with curl | |
curl -X POST -H "Content-Type: application/json" \ | |
-d '{"method":"HelloService.Say","params":[{"Who":"Test"}], "id":"1"}' \ | |
http://localhost:10000/rpc | |
*/ | |
import ( | |
"github.com/gorilla/rpc" |