.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
| @echo off | |
| REM Check if PowerShell Get-WmiObject is available | |
| powershell -Command "Get-WmiObject Win32_ComputerSystem" >nul 2>&1 | |
| if %errorlevel% equ 0 ( | |
| hostname | |
| powershell -Command "Get-WmiObject Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber, OSArchitecture" | |
| powershell -Command "Get-WmiObject Win32_BaseBoard | Select-Object Product" | |
| powershell -Command "Get-WmiObject Win32_Processor | Select-Object Name" | |
| powershell -Command "Get-WmiObject Win32_PhysicalMemory | Select-Object BankLabel, Capacity, MemoryType, TypeDetail, Speed" |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.IO; | |
| using System.Text; | |
| using System; | |
| using Newtonsoft.Json; | |
| namespace CIS | |
| { | |
| public class GradleConfig |
.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 |
| #! /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 ---" |