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
// Simple script that exports a users "Saved For Later" list out of Feedly | |
// as a JSON string. | |
// | |
// This was intended for use in the Google Chrome's "Inspector" tool so your | |
// mileage may vary if used in other contexts. | |
// | |
// Format of JSON is as follows: | |
// [ | |
// { | |
// title: "Title", |
#! /usr/bin/env ruby | |
# usage: | |
# $ das_download.rb email password [download_directory] | |
require 'mechanize' | |
# gem 'mechanize-progressbar' | |
email = ARGV[0] or raise('Please provide the email address for your account') | |
password = ARGV[1] or raise('Please provide the password for your account') | |
path = (ARGV[2] || './').gsub /\//,'' |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$script = <<SCRIPT | |
set -e | |
set -x | |
cd | |
sudo apt-get update -y | |
sudo apt-get install \ |
/*.swp | |
/*.png | |
.DS_Store |
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 |
// 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 | |
} |
/** | |
* 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; |
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" |