See also:
| Service | Type | RAM | Storage | Limitations |
|---|---|---|---|---|
| 👉 Adaptable | PaaS | 256 MB | Non-persistent? (1 GB database storage available) | |
| AWS EC2 | IaaS | 1 GB |
| // Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf | |
| // Remove any duplicates from an array of primitives. | |
| const unique = [...new Set(arr)] | |
| // Sleep in async functions. Use: await sleep(2000). | |
| const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms))); | |
| // or | |
| const sleep = util.promisify(setTimeout); |
| # Create a global gitignore for macOS | |
| cat https://raw.githubusercontent.com/github/gitignore/master/Global/macOS.gitignore >> ~/.gitignore_global | |
| git config --global core.excludesfile ~/.gitignore_global | |
| # Send screenshots to a directory that isn't the desktop | |
| mkdir -p ~/Screenshots | |
| defaults write com.apple.screencapture location ~/Screenshots | |
| # Show all hidden files (like dotfiles) | |
| defaults write com.apple.finder AppleShowAllFiles YES; killall Finder; |
| #!/usr/bin/env bash | |
| ## | |
| # Collection of git commands I found usefull in day to day work | |
| # | |
| # Comprehensive tutorial about git commands can be found: | |
| # @link https://www.kernel.org/pub/software/scm/git/docs/ | |
| # | |
| # @author Vladimir Kadic <vladimir.kadic.06@gmail.com> | |
| ## |
| require('font-awesome/css/font-awesome.css'); | |
| document.body.innerHTML = '<i class="fa fa-fw fa-question"></i>'; |
| # Path to your oh-my-zsh configuration. | |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="lambda-inhji" | |
| # Example aliases |