- Encrypted root partition
- AES-256 bit cipher
- Argon2id variant for PBKDF
- Sha3-512 bit hash
- rEFInd bootloader
- With dreary theme
- Optimal Settings (optimized for aesthetics, and boot time)
- Boot into backups thanks to refind-btrfs
# This can be built with nixos-rebuild --flake .#myhost build | |
{ | |
description = "the simplest flake for nixos-rebuild"; | |
inputs = { | |
nixpkgs = { | |
# Using the nixos-unstable branch specifically, which is the | |
# closest you can get to following the equivalent channel with flakes. | |
url = "github:NixOS/nixpkgs/nixos-unstable"; | |
}; |
#!/bin/bash | |
# Switch the current audio output device. | |
# Without options: Toggle between two sinks. | |
# This script works for PulseAudio; pactl must be installed. | |
printUsage() { | |
cat <<EOF | |
usage: $PROGNAME [options] | |
options: |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
#Use this URL to get your client authorized for Instafeed.JS plugin for Instagram.
- First login into your Instargam account
- Then go to https://www.instagram.com/developer/
- At the top click on the Button that says "Manage Clients".
- If you have not Register a new client.
- Fill out everything and where it says redirect url put this url: http://instafeedjs.com
- Then on the security tab make sure you uncheck "Disable implicit OAuth"
- Finally use this link to authoruize Instafeed. Where it says "[Client ID]" replace that including the brackets with your clientID from instagram:
- https://instagram.com/oauth/authorize/?client_id=[Client ID]&redirect_uri=http://instafeedjs.com&response_type=token
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |
/* | |
* I add this to html files generated with pandoc. | |
*/ | |
html { | |
font-size: 100%; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100%; | |
} |
#!/bin/sh | |
cd /tmp | |
curl http://pypi.python.org/packages/source/C/Cheetah/Cheetah-2.4.4.tar.gz -o cheetah.tar.gz | |
tar -zxvf cheetah.tar.gz | |
cd Cheetah-2.4.4 | |
sudo python setup.py install |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |