These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
# to compile: | |
# gcc gaston.S -nostdlib -no-pie | |
#define SYS_WRITE 1 | |
#define SYS_OPEN 2 | |
#define SYS_CLOSE 3 | |
#define SYS_LSEEK 8 | |
#define SYS_SENDFILE 40 | |
#define SYS_SOCKET 41 | |
#define SYS_ACCEPT 43 |
These are my notes on instaling NixOS 16.03 on a Lenovo ThinkPad X1 Carbon (4th generation) with an encrypted root file system using UEFI.
Most of this is scrambled from the following pages:
Setup your user environment just the way you want with Nix.
Add packageOverrides
to the attrset returned by your ${HOME}/.nixpkgs/config.nix
(see my example above).
Then with one command you can setup your whole environment: nix-env -i desktop-mbbx6spp
.
Then all you need is a simple ~/.bash_profile
script like so:
#!/usr/bin/env bash | |
# depends: dmenu slop xdotool | |
# assumes next spawned window will be floating/moveable by xdotool. | |
# get program name to launch using dmenu cache: | |
cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"} | |
if [ -d "$cachedir" ]; then | |
cache=$cachedir/dmenu_run | |
else | |
cache=$HOME/.dmenu_cache # if no xdg dir, fall back to dotfile in ~ |
#!/bin/bash | |
DESTINATION="/Backup" | |
SOURCE="/var/www" | |
#Todays date in ISO-8601 format: | |
DAY0=`date -I` | |
#Previous backup date: |
by xero updated 10.29.24
See https://github.com/romainl/vim-rnb for an up-to-date version.
#!/usr/bin/env python | |
# Made by 'Mirko van der Waal' | |
# Distributed under terms of the MIT license. | |
from random import randint | |
from sys import argv, exit | |
import getopt | |
mews = [ | |
# 3 |
Custom recipe to get OS X 10.11 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a fresh install. On average, I reinstall each computer from scratch just... whenever, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
#!/usr/bin/ruby | |
# JSONfs - the JSON file system | |
# (c) 2014 nilsding | |
# License: GPLv2 | |
# | |
# Requires RFuse, install it via `gem install rfuse` | |
# | |
# Based on the RFuse sample file system: | |
# https://github.com/lwoggardner/rfuse/blob/master/sample/test-ruby.rb | |
# (c) 2014 lwoggardner |