Skip to content

Instantly share code, notes, and snippets.

Parnell Springmeyer ixmatus

Block or report user

Report or block ixmatus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ixmatus
ixmatus / gist:9a8dd88c167aa030196e1f3547f1e86d
Created Aug 14, 2019
Migrate one git repository into another (e.g. migration into a monorepo)
View gist:9a8dd88c167aa030196e1f3547f1e86d
# 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 Aug 10, 2017 — forked from anonymous/uninstall-nix-1.11.13-darwin.txt
Instructions to delete Nix-1.11.13 from a Darwin system
View uninstall-nix-1.11.13-darwin.txt
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 Jul 30, 2017 — forked from techhazard/Readme.md
Nixos with ZFS on encrypted LUKS as root filesystem
View Readme.md
View gist:76a4ab51db3fabab6f2240326dc85121
{ 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";
View what-i-wish-id-known-about-equity-before-joining-a-unicorn.md

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

View rebar.config.script
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 Dec 23, 2015
PropER test timingout EUnit case
View test.erl
{inparallel, [ { "Property test network block construction"
, { timeout
, 30
, ?assertEqual( true
, proper:quickcheck( wifi:prop_set_network()
, [ {to_file, user}
, {numtests, 1000}
, {spec_timeout, 360000}
]))}},
...
View gist:675b6fb85f5224fc5c72
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)
View gist:dd90261cc163a8341b55
ip-10-0-0-9% sudo apt-get install datadog-agent
Reading package lists... Done
Building dependency tree
Reading state information... Done
datadog-agent is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up datadog-agent (1:5.2.1-1) ...
View relup.(45|46|47|).48
{"1.0.48",
[
{"1.0.45",[],
[{load_object_code,{bluetooth,"1.1.0",
[bluetooth,bluetooth_app,bluetooth_sup]}},
{load_object_code,{psoc,"1.1.1",
[pobox,pobox_handler,psoc,psoc_app,
psoc_config_change_sync,psoc_dets_sync,
psoc_pobox_dimmer,psoc_pobox_power,
psoc_pobox_sup,psoc_pobox_temperature,psoc_sup]}},
You can’t perform that action at this time.