Skip to content

Instantly share code, notes, and snippets.

@janlay
janlay / README.md
Last active August 28, 2024 09:44
Yet another config for Surge.app

Install

  1. Modify index.txt with your output path and proxy info
  2. Use Text Builder to build configuration for Surge: $ text-builder -index /path/to/index.txt Or run $ sh build-all to build all your index files.
  3. Import configuration via AirDrop/iTunes/Dropbox/iCloud

本人不提供任何保证和技术支持,使用者自负风险。
There are no guarantees, no any support. Use it at your own risk.

@ipconfiger
ipconfiger / get_member2.py
Last active January 1, 2016 08:39
抽奖用的
import requests
import datetime
from BeautifulSoup import BeautifulSoup
import random
import time
def get_page(url):
r=requests.get(url)
print url
return BeautifulSoup(r.text)
@timonwong
timonwong / gist:6570051
Created September 15, 2013 11:48
Batch convert to .spx (through ffmpeg)
# -*- coding: utf-8 -*-
import os
import subprocess
import logging
import multiprocessing
import shutil
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)