Skip to content

Instantly share code, notes, and snippets.

View Kanon's full-sized avatar

Canon Kanon

  • ZhaoPin Ltd
  • Beijing, China
View GitHub Profile
// ==UserScript==
// @name huya no login check
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Shiki
// @match *://www.huya.com/*
// @grant unsafeWindow
// ==/UserScript==
@Kanon
Kanon / gnome-terminal-arc-dark.sh
Created October 18, 2018 04:34
arc-dark color scheme for gnome terminal
#!/usr/bin/env bash
# Base16 - Gnome Terminal color scheme install script
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="terminal.sexy"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="terminal-dot-sexy"
[[ -z "$DCONF" ]] && DCONF=dconf
[[ -z "$UUIDGEN" ]] && UUIDGEN=uuidgen
dset() {
local key="$1"; shift
@Kanon
Kanon / chrome-secure-shell-arc-dark.js
Created October 18, 2018 04:00
arc-dark color scheme for chrome secure shell
term_.prefs_.set('color-palette-overrides', {"0":"#262b36","1":"#9c3528","2":"#61bc3b","3":"#f3b43a","4":"#0d68a8","5":"#744560","6":"#288e9c","7":"#a2a2a2","8":"#2f343f","9":"#d64937","10":"#86df5d","11":"#fdd75a","12":"#0f75bd","13":"#9e5e83","14":"#37c3d6","15":"#f9f9f9"});
term_.prefs_.set('background-color', '#2f343f');
term_.prefs_.set('cursor-color', '#f3f4f5');
term_.prefs_.set('foreground-color', '#f3f4f5');
// ==UserScript==
// @name huomao html5
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Shiki
// @match *://www.huomao.com/*
// @exclude *://www.huomao.com/outplayer/htmlfive/*
// @grant unsafeWindow
// ==/UserScript==
@Kanon
Kanon / server.js
Created July 24, 2015 07:56
nodejs redis pub sub server
var http = require('http');
var url = require('url');
var redis = require('redis');
http.createServer(function (req, res) {
var query = url.parse(req.url, true).query;
if(typeof query.channel == 'undefined'){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Invalid Request\n');
}else{
var client = redis.createClient(6379, '127.0.0.1');
@Kanon
Kanon / overtimestatistics.user.js
Created February 12, 2015 11:12
Overtime Statistics in kaoqin.zhaopin.com
// ==UserScript==
// @name OvertimeStatistics
// @namespace com.zhaopin.kaoqin
// @version 0.1
// @description Overtime Statistics in kaoqin.zhaopin.com
// @author Shiki Ryougi
// @match http://kaoqin.zhaopin.com/oa/servlet/AttendanceServlet?action=checkhistory*
// @copyright 2012+, shiki.ryougi
// @grant none
// @grant GM_xmlhttpRequest
@Kanon
Kanon / Custom.css
Last active December 22, 2015 23:29
google style scrollbar
::-webkit-scrollbar
{
height: 12px !important;
overflow: visible !important;
width: 12px !important;
}
::-webkit-scrollbar-button
{
height: 0 !important;
width: 0 !important;