This file contains 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 argparse | |
import json | |
import os | |
import requests | |
ORG_SLUG = "..." | |
SLACK_WORKSPACE_ID = "..." | |
OWNER_TEAM = "..." | |
SLACK_RULES = { |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Luigi Montanez's Ruby Feeds</title> | |
</head> | |
<body> | |
<outline title="ruby" text="ruby"> | |
<outline text="Aaron Patterson" title="Aaron Patterson" | |
type="rss" xmlUrl="http://tenderlovemaking.com/feed/" htmlUrl="http://tenderlovemaking.com"/> | |
<outline text="Aaron Quint" title="Aaron Quint" type="rss" |
This file contains 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
.highlight { color: #666 } | |
.highlight .hll { background-color: #EFEFEF } | |
.highlight .c { color: #929292 } | |
.highlight .err { background: #C82829; color: #FFF } | |
.highlight .k { color: #C82829 } | |
.highlight .l { color: #F5871F } | |
.highlight .n { color: #666 } | |
.highlight .o { color: #545454 } | |
.highlight .p { color: #666 } | |
.highlight .cm { color: #929292 } |
This file contains 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
# Clear existing task so we can replace it rather than "add" to it. | |
Rake::Task["deploy:compile_assets"].clear | |
namespace :deploy do | |
desc 'Compile assets' | |
task :compile_assets => [:set_rails_env] do | |
# invoke 'deploy:assets:precompile' | |
invoke 'deploy:assets:precompile_local' | |
invoke 'deploy:assets:backup_manifest' |
This file contains 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
8.8.8.8 | |
8.8.4.4 | |
1114.114.114.114 | |
202.181.224.2 | |
216.146.36.36 |
This file contains 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
H.l(Build.BOARD, "BOARD"); | |
H.l(Build.BOOTLOADER, "BOOTLOADER"); | |
H.l(Build.BRAND, "BRAND"); | |
H.l(Build.CPU_ABI, "CPU_ABI"); | |
H.l(Build.CPU_ABI2, "CPU_ABI2"); | |
H.l(Build.DEVICE, "DEVICE"); | |
H.l(Build.DISPLAY, "DISPLAY"); | |
H.l(Build.FINGERPRINT, "FINGERPRINT"); | |
H.l(Build.HARDWARE, "HARDWARE"); | |
H.l(Build.HOST, "HOST"); |
This file contains 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
(function($){ | |
var CK = $('a[href^=http://www.douban.com/accounts/logout]').attr('href').match(/ck=\w+/)[0].substr(3), | |
USER = 'SOME_FUCKER'; // http://www.douban.com/people/SOME_FUCKER/ | |
$('#group-topics tr:has(td a[href=http://www.douban.com/people/'+user+'/])').each(function(idx, el){ | |
var jTr = $(el), | |
topicId = jTr.find('[href^=http://www.douban.com/group/topic/]').attr('href').match(/\d+/)[0]; | |
$.post("http://www.douban.com/group/topic/"+topicId+"/admin_remove?ck="+CK, { | |
reason: 4 |
This file contains 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
http://webcache.googleusercontent.com/search?q=cache:<your url without "http://"> |
This file contains 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
[alias] | |
co = checkout | |
s = status -s | |
c = commit | |
p = push -u | |
a = add | |
d = diff | |
l = log --color --pretty=format:'%C(yellow)%h%Creset -%Cred%d%Creset %s %C(bold blue)(%cn %cr)%Creset' --no-merges --stat | |
[core] | |
editor = vim |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="language" content="zh_cn" /> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="c/common.css" /> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script type="text/javascript" src="s/jquery.min.js"></script> |