After some effort (and asking for help on the nix-dev mailing list) I installed ZFS on an encrypted partition. The relevant configuration is below.
This is an OpenPGP proof that connects my OpenPGP key to this Github account. For details check out https://docs.keyoxide.org/advanced/openpgp-proofs/
[Verifying my OpenPGP key: openpgp4fpr:5CA8E42E7329D84D3EA8CE9A6A94F02224D694D9]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env nix-shell | |
#! nix-shell -i python3.5 --packages python35 python35Packages.lxml python35Packages.beautifulsoup4 | |
import updateHostsFile | |
updateHostsFile.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To merge project-a into project-b: | |
cd path/to/cloned-project-b | |
git checkout -b my-migration-branch | |
git remote add -f project-a git@github.com:user/project-a | |
# Replace `master` below with the branch you wish to migrate but it should be your primary working branch | |
git merge --allow-unrelated-histories -s ours --no-commit project-a/master | |
# ALWAYS end the prefix path with the slash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uninstalling nix: | |
1. Delete /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist | |
2. Restore /etc/profile.backup-before-nix back to /etc/profile | |
sudo mv /etc/profile.backup-before-nix /etc/profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
# NB: I used `sudo NIXPKGS_ALLOW_UNFREE=1 nixos-rebuild switch` | |
# because Nix isnt' seeing the `allowUnfree` attribute that is already | |
# set when building Crashplan. | |
let | |
unstable-pkgs = import (pkgs.fetchFromGitHub { | |
owner = "NixOS"; | |
repo = "nixpkgs"; | |
rev = "373e40736a19437d0bc93ccd67dbf01b44c2cea6"; |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Error(Base): | |
@view_config(context=Exception, | |
renderer="curbweb:templates/errors/server_error.pt") | |
def server_error(self): | |
self.request.response.status_int = 400 | |
tbexc = tb.format_exc() | |
log.error(tbexc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parnell Springmeyer – CTO of Market Vibe, CTO of WooshTraffic and an experienced programmer that built a revenue generating startup from 2010 to Q3 of 2013. He's been through Techstars, raised venture capital, and has now joined the team at Curb to accelerate the product. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case lists:keytake(eunit_opts, 1, CONFIG) of | |
false -> CONFIG; | |
{value, {eunit_opts, Opts}, CONFIG1} -> | |
GetEnvDef = fun(Default) -> | |
case os:getenv("SUREFIRE_DIR") of | |
false -> Default; | |
V -> V | |
end | |
end, | |
NewOpts = Opts ++ [{report, {eunit_surefire, [{dir, GetEnvDef("./surefire_results")}]}}], |
NewerOlder