Skip to content

Instantly share code, notes, and snippets.

View mijoharas's full-sized avatar

Michael Hauser-Raspe mijoharas

View GitHub Profile
@mijoharas
mijoharas / ARCH_INSTALL.MD
Created February 7, 2018 20:50 — forked from heppu/ARCH_INSTALL.MD
Installing Arch with GPT, LUKS, LVM and systemd-boot

Create bootable USB

dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync

Boot from USB and set prepare system

loadkeys <your-keymap>

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@mijoharas
mijoharas / README.md
Last active August 29, 2015 13:57 — forked from JoelBesada/README.md
OpenSpritz

This is a wrapper for the OpenSpritz bookmarklet from here

========================== This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################
@mijoharas
mijoharas / README.md
Last active December 27, 2015 16:09 — forked from JoelBesada/README.md
Backtick command for is it down.

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.