Skip to content

Instantly share code, notes, and snippets.

@shaief
shaief / arch-linux-install
Created November 11, 2018 12:26 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@shaief
shaief / .block
Created July 18, 2017 15:22 — forked from mbostock/.block
Hierarchical Edge Bundling
license: gpl-3.0
height: 960
border: no
@shaief
shaief / .block
Last active July 19, 2017 21:08
Learn d3 v4 + select2 - force layout
license: gpl-3.0
after: Mike Bostock's Modifying a Force Layout II
@shaief
shaief / arch-install.sh
Last active August 29, 2015 14:20 — forked from yuvadm/install.sh
# Arch Linux installation procedure on a Dell Latitude E5410
# BIOS boot (no UEFI),LVM + LUKS
# At any time during the installation. if connected with cable you can:
# ip addr
# dhcpcd <device name>
# Create GPT and partitions
# Use gdisk to ensure proper partition alignment
cgdisk /dev/sda
;; -*- mode: dotspacemacs -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()
Warning (emacs): Python shell prompts cannot be detected.
If your emacs session hangs when starting python shells
recover with `keyboard-quit' and then try fixing the
interactive flag for your interpreter by adjusting the
`python-shell-interpreter-interactive-arg' or add regexps
matching shell prompts in the directory-local friendly vars:
+ `python-shell-prompt-regexp'
+ `python-shell-prompt-block-regexp'
+ `python-shell-prompt-output-regexp'
Or alternatively in:
@shaief
shaief / keybase.md
Created March 26, 2014 22:36
keybase.md

Keybase proof

I hereby claim:

  • I am shaief on github.
  • I am shaief (https://keybase.io/shaief) on keybase.
  • I have a public key whose fingerprint is 5EAC 6134 AC70 6163 B973 DE95 1715 B990 528B 89BE

To claim this, I am signing this object:

@shaief
shaief / DOKKU_INSTALLATION.txt
Last active April 4, 2017 20:04
This set of commands used to deploy using Dokku (@yuvadm fork)
root@dokku:~#
apt-get update
apt-get upgrade
#############################################
# don't do that: apt-get install postgresql #
# this is wrong! #
#############################################
wget -qO- https://raw.github.com/yuvadm/dokku-base/master/bootstrap.sh | sudo bash
cd /home/dokku/
less VHOST
{
"libraries": [
"d3"
],
"mode": "css",
"layout": "fullscreen mode (vertical)",
"resolution": "reset"
}
// This is the core Javascript code for http://windhistory.com/
// I haven't done a full open source release, but I figured I'd put the most important
// D3 code out there for people to learn from. --nelson@monkey.org
/** Common wind rose code **/
// Function to draw a single arc for the wind rose
// Input: Drawing options object containing
// width: degrees of width to draw (ie 5 or 15)
// from: integer, inner radius