Skip to content

Instantly share code, notes, and snippets.

View zhuangya's full-sized avatar
🧛‍♂️
only silver bullet is silver bullet.

Ya Zhuang zhuangya

🧛‍♂️
only silver bullet is silver bullet.
View GitHub Profile
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pbkdf2;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;
IP Addresses of Google Global Cache
www.kookle.co.nr
Bulgaria 93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6 93.123.23.7 93.123.23.8 93.123.23.9
93.123.23.10 93.123.23.11 93.123.23.12 93.123.23.13 93.123.23.14 93.123.23.15 93.123.23.16 93.123.23.17 93.123.23.18 93.123.23.19
93.123.23.20 93.123.23.21 93.123.23.22 93.123.23.23 93.123.23.24 93.123.23.25 93.123.23.26 93.123.23.27 93.123.23.28 93.123.23.29
93.123.23.30 93.123.23.31 93.123.23.32 93.123.23.33 93.123.23.34 93.123.23.35 93.123.23.36 93.123.23.37 93.123.23.38 93.123.23.39
93.123.23.40 93.123.23.41 93.123.23.42 93.123.23.43 93.123.23.44 93.123.23.45 93.123.23.46 93.123.23.47 93.123.23.48 93.123.23.49
93.123.23.50 93.123.23.51 93.123.23.52 93.123.23.53 93.123.23.54 93.123.23.55 93.123.23.56 93.123.23.57 93.123.23.58 93.123.23.59
Egypt 197.199.253.1 197.199.253.2 197.199.253.3 197.199.253.4 197.199.253.5 197.199.253.6 197.199.253.7 197.199.253.8 197.199.253.9
/* ==UserStyle==
@name 2023/1/20 15:30:39
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Expand kibana filter dropdown items width
@author Ya Zhuang
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp("https?://kibana\\..+") {
.euiPanel.euiComboBoxOptionsList.euiComboBoxOptionsList {
var x = {};
x["\
#the '\0xf5f5f5 word' here\
"]="space";
console.log(x["\
#the '\0xf5f5f5 word' here\
"]);
@zhuangya
zhuangya / id.coffee
Created March 26, 2012 05:35
ID card verify
verify = (idcard) ->
factor = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2]
mask = [1, 0, 'X', 9, 8, 7, 6, 5, 4, 3, 2]
idcard[idcard.length - 1] is mask[((x * factor[i] for x, i in idcard[0...idcard.length - 1]).reduce (x, y) -> x + y) % mask.length].toString()
@zhuangya
zhuangya / its.detect.openItunes.js
Created October 22, 2013 18:47
its.detect.openItunes.js
function (t) {
t || (t = window.location.href);
var n = its.detect.currentPageIsMacAppStore() || its.url.queryParamValue("mt", t) == "12" || t.indexOf("associateVPPUserWithITSAccount") !== -1 || t.indexOf("vpp-associate") !== -1,
r = its.detect.currentPageIsMacBookStore(),
i = !1,
s;
n ? (i = its.detect.macAppStoreDetected(), s = "macappstore") : r && its.detect.macBookStoreDetected() ? (i = !0, s = "itms-books") : (i = its.detect.itunesDetected(), s = "itms");
if (i) {
t = t.replace(/^http/, s);
var o = t.indexOf("#");
<style>
video {
position: fixed;
top: 50%;
left: 50%;
min-width: 100%;
min-height: 100%;
width: auto;
height: auto;
z-index: -100;
@zhuangya
zhuangya / .tmux.conf
Created July 24, 2017 07:43
t in shell
new-session
> mongolass@2.1.0 test /Users/nos/Developer/mongolass
> node --harmony ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha
Types.js
✓ ObjectId wrong
✓ ObjectId