Skip to content

Instantly share code, notes, and snippets.

View vadimstasiev's full-sized avatar

AName* name("Vadim"); vadimstasiev

View GitHub Profile
@vadimstasiev
vadimstasiev / 99_restart_sound
Last active June 1, 2022 11:48
Ubuntu 22 - sound not working after unplugging and re plugging line in
#!/bin/sh
case "$1" in
post)
DEVICE_ID=`lspci -D |grep Audio|awk '{print $1}'`
echo 1 > /sys/bus/pci/devices/${DEVICE_ID}/remove
sleep 1
echo 1 > /sys/bus/pci/rescan
alsa force-reload
systemctl --user restart pipewire-pulse wireplumber
@vadimstasiev
vadimstasiev / update_apex.sh
Last active July 3, 2022 01:39
script to update dxvk cache from reddit post and merge it with existing user cache
#!/bin/bash
cd ~/.steam/debian-installation/steamapps/shadercache/1172470/DXVK_state_cache/
rm r5apex-old.dxvk-cache
rm r5apex-downloaded.dxvk-cache
mv r5apex.dxvk-cache r5apex-old.dxvk-cache
wget -O r5apex.dxvk-cache https://github.com/bcook254/apex-legends-cache/blob/main/r5apex.dxvk-cache?raw=true
mv r5apex.dxvk-cache r5apex-downloaded.dxvk-cache
./dxvk-cache-tool r5apex-downloaded.dxvk-cache r5apex-old.dxvk-cache -o r5apex.dxvk-cache
#!/bin/sh
#
# Place this in /conf/base/etc/ in order to have it after a reboot.
# Call: sh chkidleall.sh
# switch1 is the drive to check (passed parameter)
now=$(date)
### Run SMART Check
testidle()
@vadimstasiev
vadimstasiev / readme.md
Last active June 24, 2021 19:15
Linux mount SMB share with credentials

Linux mount SMB share with credentials

Install cifs utils

sudo apt install cifs-utils

Add the following to /etc/fstab

//10.10.10.20/vadim-media /media/vadim-media/ cifs credentials=/home/srv01/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777

adclick.g.doublecklick.net
adeventtracker.spotify.com
ads-fa.spotify.com
analytics.spotify.com
audio2.spotify.com
b.scorecardresearch.com
bounceexchange.com
bs.serving-sys.com
content.bitsontherun.com
core.insightexpressai.com
curl http://ipinfo.io/ip
curl http://ipecho.net/plain
curl icanhazip.com
@vadimstasiev
vadimstasiev / archlinux-steamlink_install.sh
Last active July 1, 2025 16:50 — forked from PlatinumMaster/archlinux-steamlink_install.sh
Arch Linux chroot installation on the Steam Link.
@vadimstasiev
vadimstasiev / Instructions
Created January 17, 2021 14:07
dummy 1080p display
sudo apt install xserver-xorg-video-dummy
sudo nano /etc/X11/xorg.conf