Skip to content

Instantly share code, notes, and snippets.

Working from home

Csaba Babos cbabos

Working from home
View GitHub Profile
git clone ~/dotfiles
cd dotfiles

Keybase proof

I hereby claim:

  • I am cbabos on github.
  • I am cbabos ( on keybase.
  • I have a public key whose fingerprint is F3E3 A291 6212 5F76 42FB A68C 8B5D 34FE 3FD7 F1B5

To claim this, I am signing this object:

cbabos /
Last active Aug 29, 2015 — forked from chrisroos/
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
# or, instead of backing up trustdb...
cbabos / .xinitrc
Last active Aug 29, 2015
Linux (right)cmd btn swap
View .xinitrc
# Right CMD && Super_R swap
xmodmap -e "keycode 134 = ISO_Level3_Shift"
xmodmap -e "keycode 108 = Super_R"
# Whatever DM you want to use...
cbabos / gist:f7c8696aaf7ec9d2a6a3
Last active Aug 29, 2015
Some once-show modal window with localStorage
View gist:f7c8696aaf7ec9d2a6a3
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<!-- js, css includes -->
html, body {
height: 100%;

###Useful OS X commands ####(initially by iharosi's Useful OS X commands)

  1. App Store Debug menu


    defaults write ShowDebugMenu -bool true