Skip to content

Instantly share code, notes, and snippets.

@hhnr
hhnr / security_practices.md
Created January 30, 2018 16:52 — forked from arshiamufti/security_practices.md
good security practices

Online Accounts

  1. Move all your login credentials to a password manager. Do a security audit. Update any weak passwords, change any duplicate passwords. If you've saved any passwords in the browser, delete them (and maybe even change your passwords for those accounts for good measure).
  2. If you're using biometric login (fingerprints, voice unlock) for any important accounts (such as online bank accounts), don't.
  3. Use keybase to authenticate yourself. They have really good setup instructions.
    • You'll need to generate a public key. You can have Keybase do this for you, but it's better to generate one yourself on your machine and upload it to Keybase. The public key can now be used by anyone if they want to securely communicate with you!
  4. Set up 2-factor authentication for all your important accounts. I've done this for (so far) Google, Facebook, Twitter, Digital Ocean, and Github. It's best to use an authenticator app (like Authy or Google Authenticator) instead of SMS.
  • Also download recovery
@hhnr
hhnr / .emacs.el
Created August 17, 2017 19:04
sample emacs.el
(require 'package)
(setq load-prefer-newer t
package-enable-at-startup nil)
(setq package-archives '(("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
;; Bootstrap `use-package'
@hhnr
hhnr / gist:24f5ecf0f3c0d47a63caedc0f4c185e2
Created May 12, 2017 16:25 — forked from dimitri/gist:6031799
Emacs Workshop for first time users discovering Emacs, file in org-mode format.
* An Emacs Workshop for Beginners
It's all about discovering Emacs Really
** Install
*** Emacs 24.3
http://emacsformacosx.com/
http://emacs.naquadah.org/
http://ftp.gnu.org/pub/gnu/emacs/windows/
** Conventions and docs
@hhnr
hhnr / build-emacs.sh
Created January 29, 2017 14:39 — forked from favadi/build-emacs.sh
Compile latest emacs version (24.5) in Ubuntu 14.04
#!/bin/bash
# Build latest version of Emacs, version management with stow
# OS: Ubuntu 14.04 LTS
# version: 24.5
# Toolkit: lucid
# Warning, use updated version of this script in: https://github.com/favadi/build-emacs
set -e
emacs[0x54ec61]r n) y
emacs[0x5752d6]
emacs[0x566b29] core)? (y or n) y
emacs[0x5668fb]
emacs[0x5748e8]
emacs[0x56691a]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11670)[0x7f156b2e4670]
/lib/x86_64-linux-gnu/libc.so.6(pselect+0xac)[0x7f156aae6f7c]
emacs[0x691a1f]
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
(package-install 'helm-gtags)
(require 'helm-config)
(helm-mode 1)
(global-set-key (kbd "C-x C-f") 'helm-find-files)
@hhnr
hhnr / emacs24.5_build_intructions.txt
Created July 26, 2016 03:11 — forked from aizquier/emacs24.5_build_intructions.txt
Build emacs 24.5 in linux Mint
sudo apt-get remove \
emacs emacs24 emacs24-bin-common \
emacs24-common emacs24-common-non-dfsg emacsen-common
wget -c http://gnu.mirror.vexxhost.com/emacs/emacs-24.5.tar.xz
tar vxf emacs-24.5.tar.xz
cd emacs-24.5/
sudo apt-get install libxml2-dev libgtk-3-dev \
libtiff5-dev libgif-dev libXpm-dev libncurses-dev
./configure
make
@hhnr
hhnr / .screenrc
Created July 10, 2016 09:16 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@hhnr
hhnr / about.md
Created November 25, 2015 09:52 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
/***********************************************************************
* This programs plots histograms.
* Input is fed through the console/command-line/terminal.
* To compile issue :
* gcc -o hist <name_you_saved>.c
* Ignore warnings... (Remove them if you can. :) )
* Run as ./hist with options.
*
* Options :
* 1. -c<space><character> specifies the character which will be used to