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
# encoding: UTF-8 | |
require "nokogiri" | |
require "mechanize" | |
p "Phone number:" | |
uid = gets.chomp | |
p "Password:" | |
pw = gets.chomp | |
base_url = "http://bms.emome.net/proxy/mbms/" |
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
# Description: | |
# Attack on Hubot AT hipchat. | |
# | |
# Commands: | |
# hubot aoh help - Show rules. | |
# hubot aoh init me - Create or reset certain user. | |
# hubot aoh atk user - Attack user. | |
# hubot aoh hunt - hunt something. | |
# hubot aoh find user - Display user infomation. |
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
require 'nokogiri' | |
require 'typhoeus' | |
url = "http://tw.buy.yahoo.com/gdsale/gdsale.asp?gdid=3791541" | |
r = Typhoeus.get(url) | |
doc = Nokogiri::HTML(r.body) | |
specs = {} |
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 | |
# Pre-requisites | |
sudo apt-get -y update | |
sudo apt-get --no-install-recommends -y install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev vim | |
# Download and install rbenv | |
cd ~ | |
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile |
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
% -------------------------------------------------------------- | |
% This is all preamble stuff that you don't have to worry about. | |
% Head down to where it says "Start here" | |
% -------------------------------------------------------------- | |
\documentclass[12pt]{article} | |
\usepackage{fontspec,xltxtra,xunicode} | |
\usepackage[margin=1in]{geometry} | |
\usepackage{amsmath,amsthm,amssymb} |
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 ( | |
"bytes" | |
"fmt" | |
"github.com/golang/groupcache" | |
"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
"image/png" |
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 ( | |
//"bytes" | |
"fmt" | |
"github.com/golang/groupcache" | |
//"image" | |
_ "image/gif" | |
_ "image/jpeg" | |
//"image/png" |
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" | |
"io" | |
"net/http" |
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 ruby | |
require 'net/ssh' | |
require 'optparse' | |
require 'json' | |
if ARGV.length != 1 | |
puts "need kernel file" | |
abort | |
end |
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
diff --git a/hw3/src/Makefile.in b/hw3/src/Makefile.in | |
index 00a8a79..8036860 100644 | |
--- a/hw3/src/Makefile.in | |
+++ b/hw3/src/Makefile.in | |
@@ -23,7 +23,7 @@ CFLAGS = -g -Wall -DTA_KB_SETTING $(PKGFLAG) | |
@$(CXX) $(CFLAGS) -I$(EXTINCDIR) -c -o $@ $< | |
top: $(EXTLINK) target | |
- @echo -n | |
+ @/bin/echo -n |
OlderNewer