Skip to content

Instantly share code, notes, and snippets.

Working from home

makenova makenova

Working from home
Block or report user

Report or block makenova

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
makenova /
Created Sep 26, 2019
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 /
Last active Aug 15, 2019
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 /
Last active Jul 23, 2018
Places to update addresses when moving
  • Amazon
  • Bank
  • Electric
  • Google
  • Insurance
  • Invesment & Retirement
  • Mail Forwarding (USPS)
  • Medical
  • Paypal
  • Phone
makenova /
Last active Dec 15, 2019
Install ImageMagick from source on Ubuntu 14.04

Install ImageMagick from source on Ubuntu 14.04


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 / main.js
Created Aug 29, 2016
Common JS objects
View main.js
// 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 /
Last active Mar 3, 2016
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 /
Last active Nov 6, 2019
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(, 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 / Vagrantfile
Created Jan 25, 2016
.NET Vagrant development
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config| = "ubuntu/trusty64"
config.vm.synced_folder ".", "/home/vagrant/projects"
config.vm.provision "shell", privileged:false, inline: <<-SHELL
echo '#########################'
View xorleft.js
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])) // => []
makenova / index.js
Created Aug 31, 2015
messing with this and node module.exports
View index.js
pt = require('./thisy');
You can’t perform that action at this time.