Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
fanzeyi / fetch.py
Created April 5, 2012 18:10
备份饭否消息。 非API
# -*- coding: utf-8 -*-
# AUTHOR: Zeray Rice <fanzeyi1994@gmail.com>
# FILE: main.py
# CREATED: 01:15:37 06/04/2012
# MODIFIED: 01:57:15 06/04/2012
import requests
import datetime
from jinja2 import Environment, FileSystemLoader
from BeautifulSoup import BeautifulSoup
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@riophae
riophae / deleteweibo.js
Created February 26, 2015 15:09
Delete all weibo with FaWave
/*!
* 借助 FaWave 自动删除所有微博消息
*
* FaWave 登入微博账号后(如果同时登录了多个,请先切换到需要删除消息的账号),
* 右击 FaWave 图标,点击 "Inspect Popup",在 console 里贴入所有代码运行即可
* 如需中止,直接关掉 Chrome DevTools 窗口即可
*
* 2015/2/16
* Coded by Riophae Lee (http://riophae.com)
*/
@tianyuf
tianyuf / baidu-as-a-network-utility.css
Created May 14, 2016 15:03
BaaN: Baidu as a Network Utility - 百度的实用主义方法论.
@-moz-document domain("baidu.com") {
body {
display: none;
}
html {
margin: 30px;
}
html::after {
@keelii
keelii / vimrc
Last active July 21, 2024 07:21
vimrc for window
" ------------------------------
" Name: vimrc for windows
" Author: keelii
" Email: keeliizhou@gmail.com
" ------------------------------
" Startup {{{
filetype indent plugin on
augroup vimrcEx
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
@Sg4Dylan
Sg4Dylan / viewer_image_0.1.8_2018-02-09.js
Last active July 17, 2024 14:56
bookwalker.com.tw online reader DRM
This file has been truncated, but you can view the full file.
/**
Open Source Software Licenses
PUBLUS
Copyright(c) 2013-2014 ACCESS CO., LTD. All rights reserved.
This software includes all or part of the following open source software which is available under each license terms and conditions as follows:
* Backbone.js 0.9.2
(c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
@BenjaminPoncet
BenjaminPoncet / ffmpeg-wrapper
Last active June 21, 2024 11:40
Synology VideoStation ffmpeg wrapper with DTS, EAC3 and TrueHD support. This project is no longer maintained: Please see the following projects: https://github.com/darknebular/Wrapper_VideoStation/ - https://github.com/AlexPresso/VideoStation-FFMPEG-Patcher
#!/bin/bash
rev="12"
_log(){
echo "$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - $1" >> /tmp/ffmpeg.log
}
_log_para(){
echo "$1" | fold -w 120 | sed "s/^.*$/$(date '+%Y-%m-%d %H:%M:%S') - ${streamid} - = &/" >> /tmp/ffmpeg.log