This file contains hidden or 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
| services: | |
| fileserver: | |
| image: sigoden/dufs | |
| command: /srv --allow-search --allow-archive --compress none -p 80 | |
| volumes: | |
| # dir to share | |
| - /downloads:/srv:ro | |
| tunnel: | |
| image: alpine:latest |
This file contains hidden or 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 python | |
| # fixes: 2to3 syntax, assertions for int(d1/d2) value | |
| from __future__ import print_function | |
| import getopt, posixpath, signal, struct, sys | |
| import os, copy | |
| import binascii | |
| sparse_file_list = { | |
| "super":"super.img", | |
| "cust":"cust.img", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
| // env GOOS=linux GOARCH=arm go build -ldflags="-s -w" -v a.go | |
| // upx --best --ultra-brute main | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/cloudflare/cloudflare-go" |
This file contains hidden or 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
| (ns doubanbook-cralwer.core | |
| (:require [clj-http.client :as http] | |
| [clojure.core.async :refer [go-loop chan <! >!! <!!] :as a] | |
| [taoensso.carmine :as car :refer (wcar)]) | |
| (:gen-class)) | |
| (def ua "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36") | |
| (def redis-opts {:pool {} :spec {:uri "redis://127.0.0.1:6379/0"}}) | |
| (defmacro wcar* [& body] `(car/wcar redis-opts ~@body)) | |
| (def seen (atom (into #{} (wcar* (car/keys "*"))))) |
This file contains hidden or 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 python3 | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| see: https://gist.github.com/UniIsland/3346170 | |
| """ | |
This file contains hidden or 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
| import json | |
| import requests | |
| import random | |
| import socket | |
| import socks | |
| import time | |
| from subprocess import call | |
| # Mount Tor proxy into requests |
This file contains hidden or 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
| from weibo import Client | |
| from twitter import * | |
| import json | |
| import re | |
| import requests | |
| import Image | |
| from StringIO import StringIO | |
| import sys | |
| reload(sys) | |
| sys.setdefaultencoding("utf-8") |
This file contains hidden or 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
| # ssxy | |
| import random | |
| from twitter import * | |
| from pymongo import MongoClient | |
| client = MongoClient('localhost', 27017) | |
| db = client.Shishuoxinyu | |
| ''' | |
| k = oauth_dance('twitter_username', |