Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |
/** | |
* A simple socket.io client for performance benchmark | |
* | |
* Created by redism on 2014. 4. 22.. | |
*/ | |
var SocketIO = require('socket.io-client'), | |
argv = require('optimist').argv; | |
var n = argv.n || 10; |
// download zipfile | |
func ZipHandler(w http.ResponseWriter, r *http.Request) { | |
vars := mux.Vars(r) | |
token := vars["token"] | |
db, err := sql.Open("mysql", config.DSN) | |
if err != nil { | |
panic(err.Error()) // Just for example purpose. You should use proper error handling instead of panic | |
} |
// download zipfile | |
func ZipHandler(w http.ResponseWriter, r *http.Request) { | |
vars := mux.Vars(r) | |
token := vars["token"] | |
db, err := sql.Open("mysql", config.DSN) | |
if err != nil { | |
panic(err.Error()) // Just for example purpose. You should use proper error handling instead of panic | |
} |
<?xml version='1.0' encoding='UTF-8'?> | |
<hudson.tasks.Shell_-DescriptorImpl> | |
<shell>/tmp/jenkins/citman_shell_wrapper</shell> | |
</hudson.tasks.Shell_-DescriptorImpl> |
class WebkitToPng | |
def self.create(urls, options={}) | |
urls.each do |url| | |
puts "convert #{url} to #{options[:dir]}" | |
url.sub!('//', "//#{options[:auth]}@") if options[:auth] | |
op = "-F -D #{options[:dir]} -o #{url.split('/').last}" | |
op += " --user-agent='#{user_agent}'" if options[:mobile] | |
exec(url, op) | |
end |
/*.swp | |
/*.png | |
.DS_Store |
server { | |
listen 80; | |
server_name localhost; | |
rewrite_log on; | |
location / { | |
autoindex on; | |
alias /var/www/blsite/; | |
} |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
set -e | |
set -x | |
cd | |
sudo apt-get update -y | |
sudo apt-get install \ |