Skip to content

Instantly share code, notes, and snippets.

View vadimstasiev's full-sized avatar

AName* name("Vadim"); vadimstasiev

View GitHub Profile
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
@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

#!/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 / 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
@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
# Some prerequisites
`sudo apt-get install build-essential dkms`
# Install the driver
```
git clone https://github.com/gnab/rtl8812au
mv rtl8812au /usr/src/8812au-4.2.3
sudo dkms add -m 8812au -v 4.2.3
@vadimstasiev
vadimstasiev / .readme.md
Last active July 30, 2022 15:50
Ubuntu 22 Biased Installation, aka, How I like things to be

Preview:

image

BTRFS

When installing on BTRFS, make sure that @ (as /) and @home (as /home) subvolumes are created, otherwise Timeshift won't work.

My custom mount options for BTRFS, can be added after installation.

In my case I'm using an Intel 660p NVME SSD, but it is probably a good idea to read up and decide on the individual options yourself as different options will work better or worse, or in some cases much worse depending on the disks used.

@vadimstasiev
vadimstasiev / .readme.md
Last active July 8, 2022 22:26
pihole + unbound

ARM (raspberry / other arm device) docker-compose config to set up pihole + unbound with no need for any extra configuration

docker-compose up -d

version: "2"

services:
 pihole: