Skip to content

Instantly share code, notes, and snippets.

View ixmatus's full-sized avatar

Parnell Springmeyer ixmatus

View GitHub Profile
#! /usr/bin/env nix-shell
#! nix-shell -i python3.5 --packages python35 python35Packages.lxml python35Packages.beautifulsoup4
import updateHostsFile
updateHostsFile.main()
@ixmatus
ixmatus / gist:9a8dd88c167aa030196e1f3547f1e86d
Created August 14, 2019 15:52
Migrate one git repository into another (e.g. migration into a monorepo)
# 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
@ixmatus
ixmatus / uninstall-nix-1.11.13-darwin.txt
Created August 10, 2017 14:17 — forked from anonymous/uninstall-nix-1.11.13-darwin.txt
Instructions to delete Nix-1.11.13 from a Darwin system
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
@ixmatus
ixmatus / Readme.md
Created July 30, 2017 18:10 — forked from techhazard/Readme.md
Nixos with ZFS on encrypted LUKS as root filesystem
{ 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";

What I Wish I'd Known About Equity Before Joining A Unicorn

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

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")}]}}],
@ixmatus
ixmatus / test.erl
Last active December 23, 2015 18:45
PropER test timingout EUnit case
{inparallel, [ { "Property test network block construction"
, { timeout
, 30
, ?assertEqual( true
, proper:quickcheck( wifi:prop_set_network()
, [ {to_file, user}
, {numtests, 1000}
, {spec_timeout, 360000}
]))}},
...
ip-10-0-0-9% systemctl status datadog-agent.service
● datadog-agent.service - LSB: Start and stop dd-agent
Loaded: loaded (/etc/init.d/datadog-agent)
Active: failed (Result: exit-code) since Wed 2015-03-04 16:56:50 UTC; 1min 14s ago
Process: 20791 ExecStart=/etc/init.d/datadog-agent start (code=exited, status=3)