Skip to content

Instantly share code, notes, and snippets.

View pdostal's full-sized avatar
:octocat:

Pavel Dostál pdostal

:octocat:
View GitHub Profile
@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 / .gemrc
Last active August 29, 2015 14:10
How to remove ri and rdoc ruby documentation pernamently
# 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
@pdostal
pdostal / VirtualHost
Last active August 29, 2015 14:10
Apache HTTPS
<VirtualHost *:444>
ServerAdmin pdostal@pdostal.cz
ServerName pdostal.cz
ServerAlias pdostal.cz *.pdostal.cz
DocumentRoot /home/pavel/www/pdostal.cz/current/public
<Location /home/pavel/www/pdostal.cz/current>
PassengerAppRoot /home/pavel/www/pdostal.cz/current
RackBaseURI /
@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
@pdostal
pdostal / main.tex
Last active August 29, 2015 14:07
TeX subfiles
\documentclass{article}
\usepackage{subfiles}
\begin{document}
\subfile{section_01}
\end{document}
@pdostal
pdostal / keybase.md
Created August 22, 2014 14:26
keybase.md

Keybase proof

I hereby claim:

  • I am pdostal on github.
  • I am pdostal (https://keybase.io/pdostal) on keybase.
  • I have a public key whose fingerprint is CEC9 A9AA B7F6 9CE8 4136 D67A 65BD CDAB 7097 4BA9

To claim this, I am signing this object:

@pdostal
pdostal / jekyll
Created August 10, 2014 11:33
OSX Jekyll installation
sudo gem install jekyll
sudo gem install rdiscount # markdown process
sudo easy_install Pygments # code snippets
@pdostal
pdostal / ~ .gemrc
Created April 21, 2014 09:11
Ruby configuration
gem: --no-document # skip installation of all documentation
# Or add these to skip either ri or rdoc documentation
# gem: --no-ri
# gem: --no-rdoc