Skip to content

Instantly share code, notes, and snippets.

View rm--'s full-sized avatar

René rm--

View GitHub Profile
@rm--
rm-- / search_spotify_user.md
Created December 6, 2016 19:10
search for spotify users

spotify:user:

@rm--
rm-- / headless_vbox_vms.md
Last active December 2, 2016 16:33
start virtualbox vms headless

list vms

VBoxManage list vms

<vm_name>

start vm headless

VBoxManage startvm <vm_name>--type headless

@rm--
rm-- / macOS_apps.md
Last active February 17, 2020 09:36
macOS apps

gui apps

  • 1password
  • alfred
  • brave
  • chrome
  • clipmenu
  • docker
  • filezilla
  • firefox
  • gimp
@rm--
rm-- / pg_dump_restore.md
Last active May 17, 2016 15:02
postgresql: dump and restore databases
pg_dump dbname > outfile
psql dbname < infile
@rm--
rm-- / yesod_debug.hs
Last active June 8, 2016 20:47
haskell/yesod log debug
-- pure code
import Debug.Trace
trace ("your text " ++ show value) value
-- monadic code
import Control.Monad.Logger
import Data.Text
logWarnN $ "your debug text " <> pack (show value)
@rm--
rm-- / maxs_serve_file_content.py
Created March 20, 2016 21:08
py script to serve text from file and reload automatically (written by Max)
import time
import BaseHTTPServer
HOST_NAME = '127.0.0.1'
PORT_NUMBER = 8080
class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(s):
@rm--
rm-- / keybase_proof
Created March 16, 2016 20:53
keybase proof
### Keybase proof
I hereby claim:
* I am rm-- on github.
* I am rmuhl (https://keybase.io/rmuhl) on keybase.
* I have a public key ASC7fqdefiSnMMiYUt-_DFHRnoSbL7q688IBNmS-fMxJmgo
To claim this, I am signing this object:
@rm--
rm-- / browser_notes.md
Created March 16, 2016 12:30
use your browser for notes

type into address bar:

data:text/html, <html contenteditable>
@rm--
rm-- / remove_all_py_pkges.md
Created February 23, 2016 15:23
remove all installed python packages
pip freeze | grep -v "^-e" | xargs pip uninstall -y

@rm--
rm-- / linter-hlint.md
Last active November 29, 2015 09:45
atom linter-hlint package

global installation of:

cabal install happy
cabal install ghc-mod
apm install linter
apm install language-haskell