Skip to content

Instantly share code, notes, and snippets.

View avin's full-sized avatar
🚀

Avin Lambrero avin

🚀
View GitHub Profile
@avin
avin / client-config.json
Last active July 1, 2022 19:54
Shadowsocks quick setup
{
"server": "myserver.com",
"server_port": 10777,
"password": "ZMv5HNQ77SEkekvLJd8WYf8sRd4Z2",
"method": "chacha20-ietf-poly1305",
"local_address": "127.0.0.1",
"local_port": 15080
}
@avin
avin / foo.service
Created June 28, 2022 19:00
Systemd (systemctl) docker-compse based service
# File location: /etc/systemd/system
# Enable service to autostart: systemctl enable foo.service
[Unit]
Description=foo
Requires=docker.service
After=docker.service
[Service]
Restart=always
@avin
avin / 1
Created January 10, 2022 11:21
GLSL
break
case
continue
default
discard
do
else
for
if
return
@avin
avin / External tools.txt
Last active December 30, 2022 13:08
WebStrom/PhpStorm setup
clang-format
----
Name: clang-format
Program: C:\Program Files\LLVM\bin\clang-format.exe
Arguments: -i $FileName$
Working dir: $FileDir$
Advanced options: - Open console for tool output
prettier(wsl)
[CONFIG_1]
OPTION debug
REWIRE ` LSHF
REWIRE L\ `
OPTION FlipAltWinOnAppleKeyboards
@avin
avin / run.sh
Created December 10, 2021 05:59
@avinlab/run-shell
#!/bin/bash
npx @avinlab/run-shell <<EOF
// -----------------------
console.log('it works!');
console.log(shell.pwd().toString());
console.log(_.VERSION);
"5555555555555599".split('').reduce((acc, k) =>{acc+=`&${k}_^${k}_`; return acc;}, '').replace(/_$/, '')
@avin
avin / .clang-format
Last active October 23, 2021 18:41
C++ clang-tidy + clang-format
BasedOnStyle: LLVM
Standard: c++17
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
DerivePointerAlignment: true
PointerAlignment: Left
IndentWidth: 4
ContinuationIndentWidth: 8
@avin
avin / instructions.md
Last active October 9, 2021 11:51
Improve font render in VSCode

Add

* {
  text-shadow: transparent 0px 0px 0px,
    rgba(0, 0, 0, 0.5) 0px 0px 0px !important;
}

to

@avin
avin / force-verdana.reg
Last active October 4, 2021 19:50
Make Verdana font for Windows UI (for SegoeUI place)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
"CaptionFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,\
00,00,00,cc,00,00,00,00,56,00,65,00,72,00,64,00,61,00,6e,00,61,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
"MenuFont"=hex:f4,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,\
00,00,cc,00,00,00,00,56,00,65,00,72,00,64,00,61,00,6e,00,61,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\