Skip to content

Instantly share code, notes, and snippets.

View itsuki-hayashi's full-sized avatar
🎯
Focusing

Itsuki Hayashi itsuki-hayashi

🎯
Focusing
View GitHub Profile
@itsuki-hayashi
itsuki-hayashi / armorwidget_6393133.js
Created April 4, 2018 13:11
allow gmail for baidu
passport = passport || {}, passport.pop = passport.pop || {}, passport.pop.ArmorWidgetImp = function (e, t, n, o) {
function i(e) { this._requests = [], this._value = null, this._exception = null, this._isComplete = !1; var t = this; e(function (e) { t._fulfillPromise(e) }, function (e) { t._breakPromise(e) }) } function s(e, t) { var n = e; for (var o in t) "undefined" === (typeof n[o]).toLowerCase() && (n[o] = t[o]); return n } var a = { "http:": "http://passport.baidu.com", "https:": "https://passport.baidu.com" }, r = { bindmobile: "http://passport.baidu.com/v2/?binding&showtype=phone", bindemail: "http://passport.baidu.com/v2/?binding&showtype=email" }, l = {}, c = {}, u = window, d = u.document, m = d.body, p = d.documentElement, f = function () { }; i.prototype = { get_isComplete: function () { return this._isComplete }, get_value: function () { if (!this._isComplete) return void 0; if (this._exception) throw this._exception; return this._value }, call: function (e) { for (var t = [], n = 0, o = ar
@itsuki-hayashi
itsuki-hayashi / setup-shadowsocks.sh
Last active March 27, 2023 02:24
Ubuntu 18.04 LTS setup script for shadowsocks-libev + simple-obfs.
#!/bin/bash
# Get base packages up-to-date.
apt update -y && apt dist-upgrade -y && apt autoremove -y
# Install what we needs
apt install shadowsocks-libev simple-obfs haveged curl -y
# Enable haveged for more entropy on cloud server
systemctl enable haveged.service && systemctl restart haveged.service
# Backup /etc/sysctl.conf
mv /etc/sysctl.conf /etc/sysctl.conf.orig
# Write optimized kernel parameters
@itsuki-hayashi
itsuki-hayashi / stubby.yaml
Created April 25, 2019 08:45
Stubby configuration for macOS (CloudFlare DNS + Google Public DNS).
################################################################################
######################## STUBBY YAML CONFIG FILE ###############################
################################################################################
# This is a yaml version of the stubby configuration file (it replaces the
# json based stubby.conf file used in earlier versions of getdns/stubby).
#
# For more information see
# https://dnsprivacy.org/wiki/display/DP/Configuring+Stubby
#
# This format does not fully support all yaml features - the restrictions are:
@itsuki-hayashi
itsuki-hayashi / keybase.md
Last active July 17, 2021 15:34
Proof for Keybase.

Keybase proof

I hereby claim:

  • I am zhiyuan-lin on github.
  • I am zhiyuan (https://keybase.io/zhiyuan) on keybase.
  • I have a public key ASDIhOBFbSgOHQJCgTQg2D_0J_0kyjSM8mMHnHBrFt10ZQo

To claim this, I am signing this object:

@itsuki-hayashi
itsuki-hayashi / ntt-docomo-mail-domain-whitelist.txt
Last active December 23, 2019 11:57
NTT DOCOMO Mail Domain Whitelist
#三井住友銀行
@dn.smbc.co.jp
@ra.smbc.co.jp
@msg.smbc.co.jp
#三井住友カード
@vpass.ne.jp
@mail.vpass.ne.jp
@contact.vpass.ne.jp
@smbc-card.com
#SMBC信託銀行
# Enable Automatic Updates
sudo dnf config-manager --set-enabled PowerTools
sudo yum update -y
sudo yum install -y dnf-automatic
sudo sed -i 's/apply_updates = no/apply_updates = yes/' /etc/dnf/automatic.conf
sudo systemctl enable --now dnf-automatic.timer
# Download Shadowsocks source code
# cd /tmp
# wget https://github.com/shadowsocks/shadowsocks-libev/releases/download/v3.2.5/shadowsocks-libev-3.2.5.tar.gz
# tar -xvf shadowsocks-libev-3.2.5.tar.gz
@itsuki-hayashi
itsuki-hayashi / wireguard-centos-8.sh
Last active October 13, 2021 07:05
WireGuard VPN Server on CentOS 8
# /etc/sysctl.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 1
net.ipv4.tcp_syncookies = 1
@itsuki-hayashi
itsuki-hayashi / bank-account-for-japanese-credit-cards
Last active December 4, 2019 13:22
クレジットカード 繰り上げ返済 口座番号まとめ
JCB(株式会社ジェーシービー): カ)ジエ-シ-ビ- 三菱UFJ銀行 東京営業部 普通 4831493
三井住友カード株式会社:ミツイスミトモカ-ド (カ 三井住友銀行 あじさい支店 普通 6061440
@itsuki-hayashi
itsuki-hayashi / disabled-xperia-1-system-apps-list.txt
Created March 16, 2020 14:31
Xperia 1 SO-03L disabled system apps list
com.android.contacts
com.facebook.appmanager
com.facebook.services
com.facebook.system
com.google.android.apps.docs
com.google.android.apps.tachyon
com.google.android.apps.wellbeing
com.google.android.apps.work.oobconfig
com.google.android.music
com.google.android.projection.gearhead
@itsuki-hayashi
itsuki-hayashi / prosody.cfg.lua
Created April 23, 2020 14:14
A basic Prosody config optimized for Conversations.
-- Prosody XMPP Configuration File
--
-- Information on configuring Prosody can be found on our
-- website at https://prosody.im/doc/configure
--
-- Tip: You can check that the syntax of this file is correct
-- when you have finished by running this command:
-- prosodyctl check config
-- If there are any errors, it will let you know what and where
-- they are, otherwise it will keep quiet.