In 3 simple steps.
Continue readingYearly Archives: 2018
How to Auto-Deploy to Server on Git Push
Goal:
- If
git push
onmaster
branch - Then sync files onto server and deploy (e.g., running
yarn run build
or any other scripts)
I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue readingMac: How to Find Out Which App Is Blocking a Hotkey
If some hotkey doesn’t work for you, it’s likely that it got blocked by some other app in the background.
Continue readingDigitalOcean: ssh Permission denied (publickey) when SSH as Created User
Allowing password login will undermine the safety of server, so instead we can set up SSH login for each user.
Continue readingWebpack: New Resolve Root Path
- src
|- components
||- CatComponent.js
||- DogComponent.js
- node_modules
/* src/components/DogComponent.js */
import CatComponent from 'components';
For importing from another directive to work like imports from node_modules
like above, configure webpack.
jsPlumb: Reconnection after Removing Element
If you encounter a bug where all the re-established connections of a deleted div going to the top left of the screen: at the moment there’s no better solution than to delete all connections and repaint everything.
I’m using jsPlumb community version with React.
Continue readingReactJS: Property Not Being Passed Down to Child
This is a funny one, coming from Anguar:
Marketing 101 for Developers
I came across an interesting line while I was reading The Geography of Bliss – Search For The Happiest Places In The World. The section was talking about Icelander’s admiration for failure, and it ends with, “We Americans like to think that we, too, embrace failure, and it’s true, up to a point. We love a good failure story as long as it ends with success.”
Tab Forever Loading
If you find the loading spinner in browser tab spinning forever, it might be due to the use of document.write()
.