See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| # open terminal | |
| cmd - return : open -n -a "Terminal" | |
| # open chrome | |
| cmd + shift - return : open -n -a "Google Chrome" | |
| # moves focus between windows in the current focused display | |
| alt - h : yabai -m window --focus west | |
| alt - j : yabai -m window --focus south | |
| alt - k : yabai -m window --focus north |
| tap "brewsci/bio" | |
| tap "brewsci/science" | |
| tap "heroku/brew" | |
| tap "homebrew/autoupdate" | |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/cask-fonts" | |
| tap "homebrew/cask-versions" | |
| tap "homebrew/core" | |
| tap "homebrew/services" |
| #!/bin/zsh | |
| # Script to generate thumbnails of a video and combine into one tile image. | |
| # | |
| # CAUTION: | |
| # FFprobe might fail to extract duration info from a MKV container. Use | |
| # ffmpeg -i video.mkv -c:v copy -c:a copy video.mp4 | |
| # to swap to an MP4 container. | |
| # | |
| # Dependencies: | |
| # 1. ffmpeg |
| Action | tmux | screen |
|---|---|---|
| start a new session | tmux tmux new tmux new-session |
screen |
| start a new session with a name | tmux new -s name | screen -S name |
| re-attach a detached session | tmux attach tmux attach-session |
screen -r |
| re-attach a detached session with a name | tmux attach -t name tmux a -t name |
screen -r name |
| re-attach an attached session (detaching it from elsewhere) | tmux attach -dtmux attach-session -d | screen -dr |
#Mac Setup
These are the steps I go to setup a new macbook.
Install homebrew
Packages to install: ack android-sdk bash bash-completion brew-rmtree calc colordiff cowsay docker fish git git-lfs go gradle hh htop mongodb node python python3 ruby tree unrar zsh zsh-completions fzf ngrok ctags tmux neovim
| function string_to_slug (str) { | |
| str = str.replace(/^\s+|\s+$/g, ''); // trim | |
| str = str.toLowerCase(); | |
| // remove accents, swap ñ for n, etc | |
| var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;"; | |
| var to = "aaaaeeeeiiiioooouuuunc------"; | |
| for (var i=0, l=from.length ; i<l ; i++) { | |
| str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i)); | |
| } |
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
| <?php | |
| namespace Application\Entity; | |
| /** | |
| * Class Foo | |
| * | |
| * @package Application\Entity | |
| */ | |
| class Foo | |
| { |
| #!/bin/sh | |
| # PATH TO YOUR HOSTS FILE | |
| ETC_HOSTS=/etc/hosts | |
| # DEFAULT IP FOR HOSTNAME | |
| IP="127.0.0.1" | |
| # Hostname to add/remove. | |
| HOSTNAME=$1 |