Skip to content

Instantly share code, notes, and snippets.

@makenova
makenova / trash-cli_on_M1_hardware.md
Last active December 15, 2021 06:23
making `trash-cli` work on M1 hardware

I got the follwing error trying to use trash on my laptop(Apple M1 Pro).

Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:412:11)
    at spawn (node:child_process:698:9)
    at execFile (node:child_process:325:17)
    at node:child_process:235:21
    at chunkedExec ...
    ...
@makenova
makenova / Add_Simulators.md
Created September 26, 2019 14:38
FInding Simulators after upgrading to XCode 11

After upgrading Xcode to version 11, I found that some of the simulators that I commonly use were missing. I used the following steps to restore them.

  • In Xcode the Window menu, select "Devices & Simulators"
  • Make sure the Simulators tab is selected
  • Use the "+" in the bottom left to add simulators that are missing
  • A modal will pop up with "Create a new simulator"
  • Use the second drop down to select the device type
  • The rest of it can be left as default or you can give it a unique name and select the OS version
  • Click "Create"
@makenova
makenova / flow_default_parameter_gotcha.md
Last active August 15, 2019 13:09
a description of a flow default value gotcha

With in JS you can define default parameters and with flow you can type them. I wasn't careful and the following bug crept into production.

  const somefunc = ({ hasExpiredToken = false }: { hasExpiredToken: boolean }) => {
      doSomething({ hasExpiredToken, navigation });
  };

It is not obvious but when the above function is called without arguements it will cause an error because even though

@makenova
makenova / Change_of_address.md
Last active March 1, 2020 04:49
Places to update addresses when moving
  • Amazon
  • Bank Account(s)
  • Car
  • Electric
  • Google
  • Insurance
  • Invesment Account(s)
  • Internet
  • Mail Forwarding (USPS)
  • Medical
@makenova
makenova / IMfromsource.md
Last active November 3, 2020 22:33
Install ImageMagick from source on Ubuntu 14.04

Install ImageMagick from source on Ubuntu 14.04

Note

These notes were for a job I am no longer at and are very dated. Please go to the imagemagick website for updated instructions.

The version of ImageMagick that is installed when you run apt-get install imagemagick on Ubuntu 14.04 is older than I would like.

$ convert --version
@makenova
makenova / main.js
Created August 29, 2016 18:00
Common JS objects
// if other is not required for it's side effect, singleton will not have a color property.
var other = require('./other');
var singleton = require('./singleton');
console.log(JSON.stringify(singleton)); // => {"color":"red"}
@makenova
makenova / NoRootFileAccess.md
Last active February 12, 2024 23:21
How to access files in the Android root file system without root

Access root file system with custom recovery

This describes how to access files and directories on the Android OS that are usually not accessible with a file explorer. All my machines are running OSX so these instructions should work similarly for *nix derivatives. Windows users will require a bit more research on their own. A lot of assumptions are made, so if you require clarification on anything, ask and I'll do my best to answer and update this gist.

Download appropriate Android system tools

@makenova
makenova / pritunlMigration.md
Last active April 20, 2024 21:50
move pritunl between servers

Migrating your pritunl install between servers

This is a small write up about how to migrate your pritunl install between servers. It's not especially detailed because I'm lazy and your migration story will most likely be different. All this can be avoided by using a remote/hosted mongo instance(compose.io, mongolab, etc.) and simply pointing your pritunl instance at that. If you want more details ask, and I'll do my best to answer and update this write-up accordingly. Also, feel free to criticize my grammar and spelling.

@makenova
makenova / Vagrantfile
Created January 25, 2016 02:24
.NET Vagrant development
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/home/vagrant/projects"
config.vm.provision "shell", privileged:false, inline: <<-SHELL
echo '#########################'
@makenova
makenova / xorleft.js
Last active September 29, 2015 16:23
function xorleft (array0, array1){
return array0.filter(array0element=>{
return !array1.some(array1element=>{
return array1element === array0element;
});
});
}
console.log(xor([1,2,3], [1,3])) // => [2]
console.log(xor([1,3], [1,2,3])) // => []