Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Pavel Dostál pdostal

:octocat:
View GitHub Profile
@pdostal
pdostal / 122.168.192.in-addr.arpa.zone
Last active Mar 6, 2021
RancherOS infrastructure
View 122.168.192.in-addr.arpa.zone
$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 / Ubuntu server interfaces config
Created Jan 19, 2016
Ubuntu server interfaces config
View 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 / gist:17573df4b4748590d30d
Created Nov 10, 2015
onename.com verification
View gist:17573df4b4748590d30d
Verifying that +pdostal is my blockchain ID. https://onename.com/pdostal
@pdostal
pdostal / draw.sh
Created Sep 18, 2015
Fill whole terminal by alphabet.
View draw.sh
#!/bin/bash
lins=`tput lines`
cols=`tput cols`
printf '\033c'
for x in {a..z}; do
for ((l=0; l<=lins; l++)); do
for ((c=0; c<=cols-1; c++)); do
View create.sh
dd if=/dev/zero of=/swapfile bs=1M count=512
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
@pdostal
pdostal / syslog-ng
Created May 30, 2015
Remote logging
View syslog-ng
destination zenoss {
udp("172.127.127.3" port(514));
};
log {
source(src);
destination(zenoss);
};
View rvm2rbenv.txt
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################
@pdostal
pdostal / .bashrc
Last active Jan 29, 2021
Mac OS X WIFI advanced settings
View .bashrc
alias airport='sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport'
@pdostal
pdostal / spam
Created Dec 25, 2014
Spamassassin bug GPG validation failed
View spam
# 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 / .gemrc
Last active Aug 29, 2015
How to remove ri and rdoc ruby documentation pernamently
View .gemrc
# http://stackoverflow.com/a/3740720
:update_sources: true
:sources:
- http://gems.rubyforge.org/
- http://gems.github.com
:benchmark: false
:bulk_threshold: 1000
:backtrace: false
:verbose: true
gem: --no-ri --no-rdoc