Skip to content

Instantly share code, notes, and snippets.

View ianhattendorf's full-sized avatar

Ian Hattendorf ianhattendorf

View GitHub Profile
@ianhattendorf
ianhattendorf / arch-brother-dcp-j4120dw-installation.md
Created April 20, 2019 10:14 — forked from sieste/arch-brother-dcp-j4120dw-installation.md
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yaourt brother-dcpj4120dw
@ianhattendorf
ianhattendorf / mount-encrypted.sh
Created June 26, 2017 01:20
LUKS helper scripts
#!/bin/sh
set -e
set -u
FILENAME="${1-encrypted.img}"
FILESIZE="${2-32M}"
# Create encrypted volume if it doesn't exist
if [ ! -f "$FILENAME" ]; then
@ianhattendorf
ianhattendorf / decrypt-symmetric.sh
Last active July 26, 2017 19:21
Offline Encryption Helper Scripts
#!/bin/sh
set -eu
# Usage: ./decrypt-symmetric.sh [input-file] [output-file] [passphrase]
gpg2 --passphrase "$3" --batch --yes --no-tty --output $2 --decrypt $1
@ianhattendorf
ianhattendorf / keybase.md
Created June 6, 2017 22:40
Keybase proof

Keybase proof

I hereby claim:

  • I am ianhattendorf on github.
  • I am ianhattendorf (https://keybase.io/ianhattendorf) on keybase.
  • I have a public key ASCvgiAytoM5Aw0hGqOe0DJfEf6aS7AQ_VCma5ZSBcR1cAo

To claim this, I am signing this object: