Skip to content

Instantly share code, notes, and snippets.

View frank0718's full-sized avatar

frank0718

  • tencent
  • beijing
View GitHub Profile
@frank0718
frank0718 / SimpleHTTPServerWithUpload.py
Created December 5, 2016 04:18 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
for i in {1..227};do curl -qs http://www.kammerl.de/ascii/AsciiSignature.php -X POST -F 'figlettext=CPO' -F figletfont=$i -F "Style=2" -x 127.0.0.1:8118 |pup 'small'; done > banner.txt
curl -qs http://www.kammerl.de/ascii/AsciiSignature.php -X POST -F 'figlettext=HELLO WORLD' -F figletfont=20 -F "Style=2" -x 127.0.0.1:8118 |pup 'small'
denpend pup
@frank0718
frank0718 / goquery-example.go
Created October 13, 2016 11:17 — forked from adrianmoses/goquery-example.go
goquery example
package main
/*
* Script that scrapes google front page
* Usage: ./google [<query>]
* e.g. ./google hacker news
*/
import (
"fmt"