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.
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.
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
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 ...
...
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
- Amazon
- Bank Account(s)
- Car
- Electric
- Insurance
- Invesment Account(s)
- Internet
- Mail Forwarding (USPS)
- Medical
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"
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
// 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"} |