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>
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 / 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 / .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
## Prepare ###################################################################
# Remove RVM
rvm implode
# Ensure your homebrew is working properly and up to date
brew doctor
brew update
## Install ###################################################################