I hereby claim:
- I am kookxiang on github.
- I am kookxiang (https://keybase.io/kookxiang) on keybase.
- I have a public key ASCYbL9eMKBZFMhA4_L3_OE4dn2uwaH2tWkL1K3B6_NfyQo
To claim this, I am signing this object:
package main | |
import ( | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io" | |
"net/http" | |
"net/url" | |
"os" |
// ==UserScript== | |
// @name Disable Page Visibility API | |
// @namespace https://www.kookxiang.com/ | |
// @version 0.1 | |
// @description Disable Page Visibility API | |
// @author kookxiang | |
// @match https://*/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
#!/usr/bin/env bash | |
set -e | |
CF_TOKEN="********************************" | |
CF_ZONEID="*************************" | |
while true | |
do | |
sleep 10 |
I hereby claim:
To claim this, I am signing this object:
body { | |
margin: 0; | |
background: #202020; | |
} | |
body > .snow { | |
display: block; | |
position: fixed; | |
z-index: 1000; | |
top: 0; |
#!/usr/bin/env sh | |
TARGET_DIR='/home/kookxiang/.ssh' | |
GITHUB_USERNAME='kookxiang' | |
if ! [ -d ${TARGET_DIR} ]; then | |
mkdir ${TARGET_DIR} | |
chmod 0700 ${TARGET_DIR} | |
fi | |
if ! [ -f ${TARGET_DIR}/authorized_keys ]; then |
#!/system/bin/sh | |
# 使用方法: | |
# adb shell "curl -Ssl https://gist.githubusercontent.com/kookxiang/1104e898f270c9a7a0784f70979ec532/raw/hackQQ.sh | su" | |
# 使用方法 (手动): | |
# 0.确保你手机 Root 了 | |
# 1.下载这个脚本到某个地方 | |
# 2.下载 Android SDK(需要其中的 adb) | |
# 3.在命令行运行 adb devices,确保能看到你的手机 |
#!/usr/bin/env bash | |
# Usage: | |
# $(curl -sSL https://gist.githubusercontent.com/kookxiang/2fb6d9e3f811f59f0b3c2c4353161f64/raw/centos7_init.sh | bash) | |
if [[ -e /etc/redhat-release ]]; then | |
RELEASE_RPM=$(rpm -qf /etc/centos-release) | |
RELEASE=$(rpm -q --qf '%{VERSION}' ${RELEASE_RPM}) | |
if [ ${RELEASE} != "7" ]; then | |
echo "CentOS release is not 7." |
#!env bash | |
installCNMP(){ | |
if [[ -e /etc/redhat-release ]]; then | |
RELEASE_RPM=$(rpm -qf /etc/centos-release) | |
RELEASE=$(rpm -q --qf '%{VERSION}' ${RELEASE_RPM}) | |
if [ ${RELEASE} != "7" ]; then | |
echo "Not CentOS release 7." | |
exit 1 | |
fi | |
else |
#!/bin/sh | |
# Notice: hosts file is required | |
killall ss-redir > /dev/null | |
ss-redir -v -c /etc/ss-redir.json & | |
iptables -t nat -N SHADOWSOCKS > /dev/null | |
iptables -t nat -F SHADOWSOCKS > /dev/null |