Skip to content

Instantly share code, notes, and snippets.

View tskxz's full-sized avatar

Tanjil tskxz

View GitHub Profile
@tskxz
tskxz / gist:07f8f8eb1a7816942b4bc18ff5bea5fb
Created March 28, 2025 10:47
fix: gpg: signing failed: No secret key and gpg: signing failed: Timeout?
git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"
gpg --list-keys
gpg --edit-key <key>
expire
0
y
save
@tskxz
tskxz / gist:4689b79a7f4048dad91c3b6bc437b518
Created September 15, 2024 13:03
spotify without ads
curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client
curl https://sh.rustup.rs -sSf | sh
git clone https://github.com/abba23/spotify-adblock.git
cd spotify-adblock
make
sudo make install
LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify
# installs fnm (Fast Node Manager)
winget install Schniz.fnm
# Restart your powershell
# download and install Node.js
fnm use --install-if-missing 20
# If you get error, enter these commands
sudo wget https://packages.microsoft.com/keys/microsoft.asc -O /etc/apt/keyrings/mssql2022.key
sudo wget https://packages.microsoft.com/config/ubuntu/22.04/mssql-server-2022.list -O /etc/apt/sources.list.d/mssql-server-2022.list
sudo wget https://packages.microsoft.com/config/ubuntu/22.04/prod.list -O /etc/apt/sources.list.d/msprod.list
sudo nano /etc/apt/sources.list.d/mssql-server-2022.list
# add setting like follows
deb [signed-by=/etc/apt/keyrings/mssql2022.key arch=amd64,armhf,arm64] https://packages.microsoft.com/ubuntu/22.04/mssql-server-2022 jammy main
sudo nano /etc/apt/sources.list.d/msprod.list
# add setting like follows
@tskxz
tskxz / gist:d5c4442dc1114d0f85b4044fc74a5ab7
Created February 15, 2024 20:25
fix discord black screen debian
sudo nano /etc/gdm3/daemon.conf
Uncomment the following line
#WaylandEnable=false
To
WaylandEnable=false
And then restart your machine
@tskxz
tskxz / gist:0db6b0f3960edee0b8369bf489506042
Created February 15, 2024 20:24
fix discord black screen debian
sudo nano /etc/gdm3/daemon.conf
Uncomment the following line
#WaylandEnable=false
To
WaylandEnable=false
------------------
System Information
------------------
Time of this report: 9/20/2023, 16:02:58
Machine name: DESKTOP-A0KNSJT
Machine Id: {61750709-1678-44DD-95A1-F8A3ACE0D885}
Operating System: Windows 10 Home 64-bit (10.0, Build 19045) (19041.vb_release.191206-1406)
Language: Portuguese (Regional Setting: Portuguese)
System Manufacturer: HP
System Model: HP Pavilion Notebook
@tskxz
tskxz / sysinformation.txt
Created April 23, 2023 13:28
system information from steam
Computer Information:
Manufacturer: HP
Model: 80A4
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
CPU Family: 0x6
@tskxz
tskxz / fix.sh
Created April 23, 2023 12:50
Hotline Miami - Controls completely not working in Ubuntu
sudo rm /dev/input/js0
➜ ~ steam
steam.sh[7915]: Running Steam on ubuntu 18.04 64-bit
steam.sh[7915]: STEAM_RUNTIME is enabled automatically
setup.sh[8063]: Steam runtime environment up-to-date!
steam.sh[7915]: Steam client's requirements are satisfied
[2023-04-17 19:55:42] Startup - updater built Mar 24 2023 17:19:53
[2023-04-17 19:55:42] Startup - Steam Client launched with: '/home/tanjil/.local/share/Steam/ubuntu12_32/steam'
Installing breakpad exception handler for appid(steam)/version(1679680416)/tid(8169)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-04-17 19:55:42] Loading cached metrics from disk (/home/tanjil/.local/share/Steam/package/steam_client_metrics.bin)