Skip to content

Instantly share code, notes, and snippets.

@zeta709
zeta709 / !_cpp_code_completion.md
Last active February 10, 2023 04:54
Setup ccls and coc.vim (Ubuntu 20.04.3 LTS)

⚠️ This guide is a WIP.

You can use either ccls or clangd. You don't need both. See ccls.md or clangd.md for ccls or clangd, respectively.

@zeta709
zeta709 / language-tool.md
Created February 5, 2022 10:13
LanguageTool

LanguageTool:

$ sudo apt update
$ sudo apt install default-jre

$ cd /your-path
# https://languagetool.org/download/
$ wget https://languagetool.org/download/LanguageTool-stable.zip
$ unzip LanguageTool-stable.zip
@zeta709
zeta709 / selenized.dark.json
Created February 2, 2022 13:22
Windows Terminal Selenized color scheme
{
"name": "Selenized Dark",
"background": "#103c48",
"selectionBackground": "#325b66",
"foreground": "#adbcbc",
"cursorColor": "#cad8d9",
"black": "#174956",
"red": "#fa5750",
"green": "#75b938",
"yellow": "#dbb32d",
@zeta709
zeta709 / terminal-settings.md
Last active February 2, 2022 13:30
Terminal settings
@zeta709
zeta709 / git-filter-branch-example.sh
Created March 20, 2018 14:40
git filter-branch example
#!/bin/bash
git filter-branch --index-filter \
'git rm --cached -qr --ignore-unmatch -- . &&
git reset -q $GIT_COMMIT --
bin/post-slack
zsh/functions/post-slack'
--prune-empty -- --all
git filter-branch -f --tree-filter \
@zeta709
zeta709 / fontlink.reg
Last active March 14, 2018 12:19
FontLink registry
@zeta709
zeta709 / Selenized_dark.reg
Last active February 1, 2022 03:35
putty settings
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\SimonTatham\PuTTY\Sessions\Selenized%20Dark]
"Colour0"="173,188,188"
"Colour1"="202,216,217"
"Colour2"="16,60,72"
"Colour3"="23,73,86"
"Colour4"="16,60,72"
"Colour5"="202,216,217"
"Colour6"="23,73,86"
@zeta709
zeta709 / Troubleshooting.md
Created February 18, 2018 00:54
Upgrade GCC

Error:

configure: error: C compiler cannot create executables
error: unrecognized command line option ‘-V’
error: unrecognized command line option '-qversion'

Solution:

@zeta709
zeta709 / wireless.sh
Created February 16, 2018 15:44
Wireless network (Realtek 8812/8821)
#!/bin/sh
modprobe cfg80211
modprobe rtl8812au
wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhcpcd wlan0
@zeta709
zeta709 / grub.cfg
Created February 16, 2018 15:32
GRUB
menuentry "Windows 10" {
insmod part_gpt
insmod fat
set root=(hostdisk//dev/sda,gpt*)
search --no-floppy --fs-uuid --set ****-****
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}