Skip to content

Instantly share code, notes, and snippets.

View pdostal's full-sized avatar
:octocat:

Pavel Dostál pdostal

:octocat:
View GitHub Profile
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/api 0.584s
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact 0.013s
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact/digest 0.011s
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact/oci 0.012s
[ 143s] ok github.com/cli/cli/v2/pkg/cmd/attestation/download 0.086s
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/io [no test files]
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/test [no test files]
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/test/data [no test files]
[ 144s] ok github.com/cli/cli/v2/pkg/cmd/attestation/inspect 0.050s
[ 144s] --- FAIL: TestTUFRootVerify (0.02s)
@pdostal
pdostal / .bashrc
Last active December 24, 2023 23:03
Mac OS X WIFI advanced settings
alias airport='sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport'
@pdostal
pdostal / spam
Created December 25, 2014 21:41
Spamassassin bug GPG validation failed
# http://krischan.eu/index.php/2014/04/21/spamassassin-bug-gpg-validation-failed/
wget http://spamassassin.apache.org/updates/GPG.KEY
sa-update --import GPG.KEY
chown -R spamd:root /var/lib/spamassassin/sa-update-keys
chmod -R 775 /var/lib/spamassassin/sa-update-keys
sa-update -D
@pdostal
pdostal / gist:2b4f374468ee0c0168864d535abb54c3
Created February 10, 2023 09:43
neofetch @ grandcentral
[?25l[?7l ......
.,cdxxxoc,. .:kKMMMNWMMMNk:.
cKMMN0OOOKWMMXo. ; ;0MWk:. .:OMMk.
;WMK;. .lKMMNM, :NMK, .OMW;
cMW; 'WMMMN ,XMK, oMM'
.MMc ..;l. xMN: KM0
'MM. 'NMO oMM
.MM, .kMMl xMN
KM0 .kMM0. .dl:,.. .WMd
.XM0. ,OMMK, OMMMK. .XMK
@pdostal
pdostal / mount_qcow2.md
Last active January 8, 2023 13:47 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@pdostal
pdostal / 122.168.192.in-addr.arpa.zone
Last active March 6, 2021 08:50
RancherOS infrastructure
$TTL 86400
@ IN SOA host.pdostal.sh.cvut.cz. p.dostal.sh.cvut.cz. (
2021030200 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
@ IN NS host.pdostal.sh.cvut.cz.
@pdostal
pdostal / create.sh
Created July 16, 2015 19:53
SwapFile
dd if=/dev/zero of=/swapfile bs=1M count=512
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
@pdostal
pdostal / GPG cheat sheet
Created March 1, 2014 03:40
GPG cheat sheet
$ gpg --gen-key
# 1) RSA and RSA (default)
# RSA keys may be between 1024 and 8192 bits long.
# You can set 'default-key $ID' in ~/.gnupg/gpg.conf
$ gpg --list-keys
$ gpg --list-secret-keys
$ gpg --export -a $ID > gpg-pubkey.asc
$ gpg --keyserver keys.gnupg.net --send-keys $ID
@pdostal
pdostal / Ubuntu server interfaces config
Created January 19, 2016 17:15
Ubuntu server interfaces config
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1 eth1:0
iface eth1 inet static
address 10.100.100.2
netmask 255.255.255.0
@pdostal
pdostal / process.sh
Last active December 27, 2015 13:33
Current OpenSSH release on OS X
# From: Dctr Watson
# How to Update OpenSSH on Mac OS X
# http://www.dctrwatson.com/2013/07/how-to-update-openssh-on-mac-os-x/
brew tap homebrew/dupes
brew install openssh --with-brewed-openssl --with-keychain-support
launchctl stop org.openbsd.ssh-agent
launchctl unload -w /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist
sudo vi /System/Library/LaunchAgents/org.openbsd.ssh-agent.plist