
在磁盘中创建备份目录 mkdir /media/usbdisk/mactimebak 推荐使用ext4分区(打开notime)
安装nettalk
| import com.android.volley.toolbox.HurlStack; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
| * uses OkHttp as its transport. | |
| */ |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:0.4' | |
| } | |
| } | |
| apply plugin: 'android' |
| #!/bin/bash | |
| sudo apt-get update | |
| # Now let's install all the required ubuntu packages | |
| sudo apt-get install build-essential uwsgi nginx uwsgi-plugin-python python-pip | |
| # PS! If you are doing this stuff for fun I do recommend to install nginx from PPA repository | |
| # that you can find here https://launchpad.net/~nginx/+archive/development |
| history | awk '{CMD[$2]++;count++;} END { for (a in CMD )print CMD[a] " " CMD[a]/count*100 "% " a }' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10 | |
| # (陈皓注:有点复杂了,history|awk ‘{print $2}’|awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c|sort -rn|head -10) | |
| # 这行脚本能输出你最常用的十条命令,由此甚至可以洞察你是一个什么类型的程序员。 |
| require 'json' | |
| require 'spreadsheet' | |
| if ARGV.size < 2 | |
| puts 'Usage: ruby trello_to_csv.rb input.json output.xls' | |
| exit 1 | |
| end | |
| @json_file = ARGV[0] | |
| @xls_file = ARGV[1] |
| """ | |
| RSS Extension | |
| ============= | |
| Summary | |
| ------- | |
| An extension to Python-Markdown that outputs a markdown document as RSS. | |
| Each item in the RSS document is the content following a heading (`<h1-6>`) | |
| with the "title" being the heading itself. |

在磁盘中创建备份目录 mkdir /media/usbdisk/mactimebak 推荐使用ext4分区(打开notime)
安装nettalk
| data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div> | |
| <script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"> | |
| </script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script> |
| #!/usr/bin/env python | |
| # -*- encoding: utf-8 -*- | |
| # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: | |
| # Author: Binux<1@binux.me> | |
| # http://binux.me | |
| # Created on 2013-01-14 10:29:51 | |
| import re | |
| import cPickle | |
| import requests |
| #!/usr/bin/env php | |
| <?php | |
| function fetch_page($url, $timeout = 5) { | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL, $url); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
| curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); | |
| $data = curl_exec($ch); | |
| curl_close($ch); |