Skip to content

Instantly share code, notes, and snippets.

@sainak
sainak / using-multiple-github-accounts-with-ssh-keys.md
Last active January 27, 2023 07:23 — forked from oanhnn/using-multiple-github-accounts-with-ssh-keys.md
Using multiple github accounts with ssh keys
@sainak
sainak / 10-quirks.conf
Last active May 9, 2021 06:27 — forked from jgkim2020/10-quirks.conf
Fix for MSI laptop random screen brightness bug(Xorg only)
# MSI laptop random screen brightness bug
# https://askubuntu.com/questions/777754/brightness-randomly-up-and-down-on-msi-laptop/808785#808785
# /etc/X11/xorg.conf.d/10-quirks.conf
Section "InputClass"
Identifier "Spooky Ghosts"
MatchProduct "Video Bus"
Option "Ignore" "on"
EndSection
@sainak
sainak / check_github_repo_size
Last active October 14, 2020 06:11 — forked from dingzeyuli/check_github_repo_size
Check the size of a github repo before downloading
# http://webapps.stackexchange.com/questions/39587/view-estimated-size-of-github-repository-before-cloning
curl -s https://api.github.com/repos/torvalds/linux | jq '.size' | numfmt --to=iec --from-unit=1024
# output:
# "size": 1746294,
edit the file /etc/pulse/daemon.conf
resample-method = src-sinc-best-quality
default-sample-format = s24le
default-sample-rate = 96000