Skip to content

Instantly share code, notes, and snippets.

@zas
zas / install_intelr_graphic_linux_firmware.sh
Created September 9, 2016 00:06
Fix "W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1.bin for module i915_bpo" (Ubuntu 16.04, kernel 4.4)
#!/bin/bash
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2 && \
tar xvjf sklgucver61.tar.bz2 && cd skl_guc_ver6_1/ && sudo ./install.sh
cd
wget https://01.org/sites/default/files/downloads/intelr-graphics-linux/kbldmcver101.tar.bz2 && \
@zas
zas / README.md
Last active June 22, 2023 21:04
Klim Dash resume after suspend fix / Linux Mint 20.1 / Ubuntu 20.04
@zas
zas / renew-gpgkey.md
Last active July 4, 2022 20:39 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@zas
zas / sha256github_pubkey.sh
Created February 28, 2022 20:49
Calculate sha256 hash from a pub key to compare to github deploy key
#!/bin/bash
# calculate sha256 hash from a pub key to compare to github deploy key
KEY=$1
KEYPATH="~/.ssh/${KEY}.pub"
ssh-keygen -E sha256 -l -f "$KEYPATH"
@zas
zas / sonicping.md
Created May 17, 2021 13:04
sonar-like icmp ping

Sonic Ping

Emit a sound on each icmp reply.

Requirements

sudo apt install tcpdump sox
# Linux Mint Tricia 19.3
# Installed version was 5.50
# Headphones do not default to A2DP Sink
# fix: upgrade manually to 5.54
sudo apt install libdbus-1-dev libudev-dev libical-dev libreadline-dev
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.54.tar.xz
tar xz bluez-5.54.tar.xz
cd bluez-5.54/
./configure
@zas
zas / sysctl.conf
Created November 7, 2016 21:30
sysctl
kernel.printk = 3 4 1 3
net.ipv4.tcp_syncookies = 1
net.ipv4.ip_forward = 1
net.ipv4.conf.all.arp_filter = 1
net.ipv4.conf.all.arp_ignore = 1
net.ipv4.ip_nonlocal_bind = 1
net.netfilter.nf_conntrack_max = 262144
net.netfilter.nf_conntrack_generic_timeout = 120
net.netfilter.nf_conntrack_tcp_timeout_close = 10
net.netfilter.nf_conntrack_tcp_timeout_close_wait = 60
from PyQt5.QtCore import QStandardPaths
def get_qt_enum(cls, enum):
d = {}
for key in dir(cls):
value = getattr(cls, key)
if isinstance(value, enum):
d[key] = value
return sorted(d, key=lambda k:d[k])
DONE:
kiki
herb
lemmy
hip
burnside
cage
yehudi
wetton
bootsy
#!/bin/bash
systemctl stop ip-blacklist.service && rm -rf /etc/systemd/system/ip-blacklist.service /etc/ip-blacklist/ && systemctl daemon-reload