sudo apt-get install build-essential libssl-dev libcurl4-openssl-dev libexpat-dev gettext
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
gnome-shell -r --display=:0 |
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
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
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
geo $limited { | |
default 1; | |
# Wordpress Jetpack ranges: | |
192.0.0.0/16 0; | |
66.135.0.0/16 0; | |
66.155.0.0/16 0; | |
76.74.0.0/16 0; | |
} |
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
/* | |
* @author Senorsen <[email protected]> | |
*/ | |
var jquery_url = 'http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.11.2.min.js', | |
script = document.createElement("script"); | |
var stop_flag = false; | |
script.src = jquery_url; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
function start_fetch(lessonid, verify, auto) { |
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
#!/bin/sh | |
# Originally from http://stackoverflow.com/questions/24538632/githubs-git-bash-msysgit-showing-wrong-timezone-on-windows | |
# and modified by Senorsen | |
# Are we running on Windows? | |
isWindows() { [[ -n "$WINDIR" ]]; } | |
# Get time, cross-platform. | |
getTime() { |
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
// 先加载 jQuery | |
loadScript('http://code.jquery.com/jquery-2.2.2.js', function () { | |
var users = []; | |
$('.member_li').each(function () { | |
var userArr = $(this).attr('action-data').split('&'); | |
for (var i in userArr) { | |
userArr[i] = userArr[i].split('='); | |
} |
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
#!/bin/sh | |
# Author: Senorsen <[email protected]> | |
# Prerequisites: adb, fastboot, unzip | |
# Flash Nexus Device (especially approriate for unlocked & rooted devices), which cannot be upgraded with OTA | |
# First download nexus factory image from: | |
# https://developers.google.com/android/nexus/images | |
set -e | |
FILE="$1" |
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
#!/bin/sh | |
# Usage: winprog ping 8.8.8.8 | |
# Hint: you can write a shell: ~/bin/ping, and call this script | |
iconv -f utf-8 -t gbk | $@ | iconv -f gbk -t utf-8 |
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
{ | |
"files.trimTrailingWhitespace": true, | |
"files.eol": "\n" | |
} |
OlderNewer