Skip to content

Instantly share code, notes, and snippets.

View yatyricky's full-sized avatar
💭
I may be slow to respond.

Rick Sun yatyricky

💭
I may be slow to respond.
  • Rogue Encampment
View GitHub Profile
@yatyricky
yatyricky / GradleConfig.cs
Created July 29, 2021 01:25 — forked from zcyemi/GradleConfig.cs
Single file C# gradle file parser
using System.Collections.Generic;
using UnityEngine;
using System.IO;
using System.Text;
using System;
using Newtonsoft.Json;
namespace CIS
{
public class GradleConfig
@yatyricky
yatyricky / Git Alias.md
Created December 20, 2019 01:59
Git shortcuts

.gitconfig

[alias]
	aa = add -A
	st = status
	sh = stash save temp
	ush = stash pop stash@{0}
	ll = log --pretty=format:'%h - %an, %ar : %s'
	rb = pull --rebase
curl -s https://gist.githubusercontent.com/yatyricky/6a807f98175e13d837c08ccf34c46b6d/raw/e0f42d99e2010507bdd9cee5f120b903d99d0d46/ss1.sh > ~/ss1.sh ; sh ~/ss1.sh
curl -s https://gist.githubusercontent.com/yatyricky/758e592f823cf14ae0103cbf3137203b/raw/cd828a445fd78656127469af11e1e5654c120e90/ss2.sh > ~/ss2.sh ; sh ~/ss2.sh
#! /bin/sh
uname -r >> ~/log
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p >> ~/log
sysctl net.ipv4.tcp_available_congestion_control >> ~/log
sysctl net.ipv4.tcp_congestion_control >> ~/log
lsmod | grep bbr >> ~/log
@yatyricky
yatyricky / ss1.sh
Last active September 17, 2019 02:57
#! /bin/sh
echo "--- Installing shadowsocks ---"
apt update
yes | apt install shadowsocks-libev
yes | apt install nodejs
yes | apt install npm
echo "{\"server\":\"0.0.0.0\",\"server_port\":14029,\"local_port\":1080,\"password\":\"WqbeYarGNB4F\",\"timeout\":60,\"method\":\"chacha20-ietf-poly1305\"}" > /etc/shadowsocks-libev/config.json
echo "--- Enabling BBR ---"
@yatyricky
yatyricky / Unity Android Multidex.md
Last active September 27, 2019 01:35
Too many field references max is 65536 / Build-in class shrinker and multidex are not supported yet / there were duplicate class definitions

Environment

OS

Edition : Windows 10 Pro Version : 1709 OS Build : 16299.192

Unity