Skip to content

Instantly share code, notes, and snippets.

View cbabos's full-sized avatar
🏠
Working from home

Csaba Babos cbabos

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

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 August 29, 2015 14:26 — forked from chrisroos/gpg-import-and-export-instructions.md
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
cbabos / .xinitrc
Last active August 29, 2015 14:16
Linux (right)cmd btn swap
# 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 August 29, 2015 14:10
Some once-show modal window with localStorage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<!-- js, css includes -->
<style>
html, body {
height: 100%;

###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