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 static ip | |
DEVICE=eth0 | |
HWADDR=00:0C:29:2D:08:6D | |
TYPE=Ethernet | |
UUID=551f9054-0ded-4ff0-a77a-387effe5924b | |
ONBOOT=yes | |
NM_CONTROLLED=yes | |
BOOTPROTO=static | |
IPADDR=10.1.12.81 | |
NETMASK=255.255.255.0 |
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 | |
HOST_IP_1="10.0.10.10" | |
HOST_IP_2="10.0.20.10" | |
HOST_IP_3="10.0.30.10" | |
###### DO NOT TOUCH BELOW HERE ######## | |
SCRIPT=`basename "$0"` |
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
post "/newtest/:filename/:title" do | |
image = Magick::Image.from_blob(request.body.read).first | |
puts image.inspect | |
@title = params[:title] | |
@filename = params[:filename] | |
n = VideoThread.new | |
n.title = @title | |
n.created_at = Time.now | |
n.updated_at = Time.now | |
n.save |
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
# Configurations for haproxy | |
global | |
maxconn 4096 | |
chroot /var/haproxy | |
user haproxy | |
group haproxy | |
log 127.0.0.1 local0 alert |
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
heat_template_version: 2014-10-16 | |
description: Deploy a CoreOS cluster | |
parameters: | |
count: | |
description: Number of CoreOS machines to deploy | |
type: number | |
default: 3 | |
constraints: |
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 ( | |
"github.com/codegangsta/martini" | |
"net/http/pprof" | |
) | |
func main() { | |
m := martini.Classic() |
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 ( | |
"os" | |
"fmt" | |
"code.google.com/p/go.crypto/ssh" | |
) | |
type password 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
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace YourProject.Security | |
{ | |
public static class Cryptography<E> | |
where E : Encoding, new() | |
{ |
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" | |
"bytes" | |
"flag" | |
"fmt" | |
"github.com/golang/groupcache" | |
"github.com/ha/doozer" | |
"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
// A simple sub command parser based on the flag package | |
package subcommand | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
) | |
type subCommand interface { |
OlderNewer