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
makenova / Add_Simulators.md
Created Sep 26, 2019
FInding Simulators after upgrading to XCode 11
View Add_Simulators.md

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 Aug 15, 2019
a description of a flow default value gotcha
View flow_default_parameter_gotcha.md

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

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 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
makenova / NoRootFileAccess.md
Last active Mar 3, 2016
How to access files in the Android root file system without root
View NoRootFileAccess.md

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 Nov 6, 2019
move pritunl between servers
View pritunlMigration.md

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 Jan 25, 2016
.NET Vagrant development
View Vagrantfile
# -*- 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 '#########################'
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
makenova / index.js
Created Aug 31, 2015
messing with this and node module.exports
View index.js
pt = require('./thisy');
pt.printthis();
You can’t perform that action at this time.