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 / httpd.conf (passenger)
Last active August 29, 2015 13:56
OS X development environment
RailsEnv development
<Location /rubyapp>
PassengerAppRoot /Users/quick/www/rubyapp
RackBaseURI /rubyapp
Options -MultiViews
</Location>
@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
LogDir = /var/log
#LogFile = messages
TmpDir = /var/cache/logwatch
#HostLimit = Yes
Output = mail
# file stdout
Format = text
# html
#Encode = base64
Encode = none
@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
@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 / 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 / main.tex
Last active August 29, 2015 14:07
TeX subfiles
\documentclass{article}
\usepackage{subfiles}
\begin{document}
\subfile{section_01}
\end{document}
@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 / 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 /