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:
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. | |
# Inspired by https://github.com/malob/nixpkgs I highly recommend looking at malob's repo for a more thorough configuration | |
# | |
# Let's get started | |
# | |
# Let's install nix (at the time of writing this is version 2.5.1 | |
curl -L https://nixos.org/nix/install | sh | |
# I might not have needed to, but I rebooted |
#!/usr/bin/env bash | |
# Author: Ned Letcher | |
# | |
# This bash script is designed to configure a clean Ubuntu installation (eg new | |
# EC2 instance) with a somewhat opionated set of packages and tools for working | |
# on Python projects. In addition to installing a range of packages for dev | |
# work, it installs pyenv for the current user, overwriting the current .profile | |
# and modifying the existing .bashrc to make sure pyenv is configured correctly. |
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:
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "sc3-plugins-3.7.0-beta"; | |
src = fetchgit { | |
url = "https://github.com/supercollider/sc3-plugins"; | |
rev = "a963ecb"; | |
sha256="0840jwh7ljmhg34zblahqx3abk42a3y3gvgb740r558rphbp1p19"; | |
fetchSubmodules = true; |
Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?
Add the project to your repo:
git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking
or something to that effect.
Say, you want to save your D3 application in a CouchDB database. This is just a proof of concept that this is possible. I use the »Focus + Context« diagram by Mike Bostock (http://bl.ocks.org/1667367) as an example.
Prerequisites:
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: