Skip to content

Instantly share code, notes, and snippets.

😐
stop making github a social network

A.I. merrickluo

😐
stop making github a social network
Block or report user

Report or block merrickluo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@merrickluo
merrickluo / cvimrc
Last active May 8, 2019
My cvim config
View cvimrc
unmap b
unmap B
map b :buffer<Space>
map B :bookmark<Space>
View wireguard.sh
#!/bin/bash
set -e
[[ $UID != 0 ]] && exec sudo -E "$(readlink -f "$0")" "$@"
up() {
# setup wg0
ip link add dev wg0 type wireguard
ip addr add dev wg0 10.0.200.13/32
wg setconf wg0 /etc/wireguard/wg0.conf
@merrickluo
merrickluo / gist:fd5f28b05c5032f35a8599d2adefe3f2
Created Jul 3, 2018
OpenCorsair Debug output commit 83e167b71f734e24df6193b651c0eddad52be437
View gist:fd5f28b05c5032f35a8599d2adefe3f2
usb device 0
corsair device 0
corsair device 1
corsair device 2
corsair device 3
corsair device 4
corsair device 5
corsair device 6
corsair device 7
corsair device 8
@merrickluo
merrickluo / gist:77c8b25ddb473c4d55274419431eaf15
Created Jul 3, 2018
OpenCorsair Debug output (testing branch)
View gist:77c8b25ddb473c4d55274419431eaf15
Checking USB device 0 (1d6b:0003)...
Checking USB device 1 (1d6b:0002)...
Checking USB device 2 (1d6b:0003)...
Checking USB device 3 (046d:c539)...
Checking USB device 4 (04b4:0101)...
Checking USB device 5 (05e3:0608)...
Checking USB device 6 (05fc:0231)...
Checking USB device 7 (045e:02d1)...
Checking USB device 8 (0b05:1825)...
Checking USB device 9 (1b1c:0c03)...
@merrickluo
merrickluo / 4gamer.js
Created Jan 15, 2018
4gamer sales screenshot
View 4gamer.js
const puppeteer = require('puppeteer')
const run = async function () {
const browser = await puppeteer.launch({
args: ['--no-sandbox'],
})
const page = await browser.newPage()
await page.goto('http://www.4gamer.net/games/117/G011794/20180111081/')
const games = await page.$("table.SALES_RANKING")
View number.js
const isAllzero = function (num) {
return (num.toString().replace(/0/g, '') === '1')
}
const nextNumber = function (current, limit) {
const longer = parseInt(`${current}0`)
if (longer <= limit) {
return longer
}
const bigger = current + 1
@merrickluo
merrickluo / psn.conf
Created Mar 8, 2017
psn 深圳 speed up
View psn.conf
address=/gs2.ww.prod.dl.playstation.net/183.61.63.147
@merrickluo
merrickluo / stacktrace
Created Feb 27, 2017
bot npe stacktrace
View stacktrace
#error {
:cause nil
:via
[{:type java.lang.NullPointerException
:message nil
:at [java.net.URLEncoder encode "URLEncoder.java" 204]}]
:trace
[[java.net.URLEncoder encode "URLEncoder.java" 204]
[java.net.URLEncoder encode "URLEncoder.java" 170]
[animeshotbot.core$search_shots invokeStatic "core.clj" 16]
View open_with_emacs.reg
REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&Open With Emacs"
"Icon"="C:\\Program Files\\Emacs\\bin\\emacs.exe,0"
# The above value appears in the global context menu,
# i.e., when you right click on a file.
# (The '&' makes the next character a shortcut.)
View rxjs_operators_by_example.md
You can’t perform that action at this time.