Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Csaba Babos cbabos

🏠
Working from home
View GitHub Profile
View installdotfiles.sh
#!/bin/bash
git clone https://github.com/cbabos/dotfiles ~/dotfiles
cd dotfiles
./setup.sh
View keybase.md

Keybase proof

I hereby claim:

  • I am cbabos on github.
  • I am cbabos (https://keybase.io/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
cbabos / gpg-import-and-export-instructions.md
Last active Aug 29, 2015 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys
View gpg-import-and-export-instructions.md

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
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
cbabos / gist:f7c8696aaf7ec9d2a6a3
Last active Aug 29, 2015
Some once-show modal window with localStorage
View gist:f7c8696aaf7ec9d2a6a3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<!-- js, css includes -->
<style>
html, body {
height: 100%;
View useful-osx-commands.md

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

  1. App Store Debug menu

    Show

    defaults write com.apple.appstore ShowDebugMenu -bool true