Skip to content

Instantly share code, notes, and snippets.

View recolic's full-sized avatar
🏠
Working from home

Recolic recolic

🏠
Working from home
View GitHub Profile
@recolic
recolic / fuckboc.user.js
Last active March 7, 2019 05:15
[tampermonkey] SB中国银行网银购汇不用等30秒看sb购汇申请书。一键安装:https://openuserjs.org/users/recolic/scripts
// ==UserScript==
// @name FUCK BankOfChina By USD from CNY 30 seconds wait.
// @namespace https://recolic.net/
// @version 0.1
// @description If you buy other concurrency on www.boc.cn, you have to wait 30 seconds to read a document. I fucked it.
// @author Recolic Keghart <root@recolic.net>
// @match https://ebsnew.boc.cn/boc15/welcome.html*
// @grant none
// ==/UserScript==
@recolic
recolic / rlib.min.hpp
Created May 14, 2019 01:12
C++11 minified rlib. usually used while writing ALG solutions.
/*
*
* string.hpp: string process utility.
* Recolic Keghart <root@recolic.net>
* MIT License
*
* Minified version: works on C++11.
*
*/
@recolic
recolic / README.md
Last active May 21, 2019 04:09
智享校园洗澡工具dns劫持
@recolic
recolic / go-get-for-china.py
Last active August 9, 2019 03:01
go-get golang.org/x/... will run perfectly!
#!/bin/env python3
# by Recolic Keghart, Nov 16
import sys
import os
import subprocess
if len(sys.argv) < 2:
print('Error: go-get-for-china <pkg path>')
exit(1)
@recolic
recolic / README.md
Created April 10, 2020 09:32
Install ArchLinux without MONITOR

Install ArchLinux without MONITOR and SERIAL

I bought a cheap motherboard and realized that, I have no cable for 10pin(motherboard) to 15pin vga. And things went worse after I realized that my USB2TTL cable is not working for RS232 serial port.

Then... I have to install archlinux WITHOUT monitor. But, fortunately, I have a KEYBOARD!

ArchISO

I was too lazy to modify ArchISO. I just plug the ARCHISO usb stick and a blank harddisk, and boot,

@recolic
recolic / README.md
Created April 18, 2020 11:39
Fake sudo, a Script to allow normal user to launch root shell, after providing a KEY file.

fake sudo

a Script to allow normal user to launch root shell, after providing a KEY file.

In android, I don't want to root my phone, but still needs root access.

So I installed this script, instead of SuperSU.

@recolic
recolic / README.md
Last active September 29, 2020 07:30
GIST MOVED TO BLOG: https://recolic.net/blog/
#!/bin/bash
# Prevent the fucking wine to add mime file association.
# Implements https://askubuntu.com/questions/323437/how-to-prevent-wine-from-adding-file-associations
set -o xtrace
rm -f ~/.local/share/mime/packages/x-wine*
rm -f ~/.local/share/applications/wine-extension*
rm -f ~/.local/share/icons/hicolor/*/*/application-x-wine-extension*
rm -f ~/.local/share/mime/application/x-wine-extension*
This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/