So case when you want to add a new user to your new AWS organisation, typically Billing manager, Accountant.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# see: https://developers.facebook.com/docs/sharing/webmasters/crawler/ | |
# | |
# Run the whois command and store the output in a variable | |
whois_output=$(whois -h whois.radb.net -- '-i origin AS32934') | |
# Use grep to extract lines starting with "route" |
Remember: Terminal app is your friend, not enemy.
- install the app
- click on plus icon in the bottom left corner
- create a new server: name, version, other form fields left with default values
- click to
Initialize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export ASSETS_FOLDER="../.next/static" | |
export GCP_BUCKET="eu.apps.trisbee.com/pay" | |
export VERSION="test-gzip-3" | |
TIME_START=$(date +%s) | |
gsutil -m -q \ | |
cp -r -z "js,css,html,json" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// this is my wanna be database | |
// | |
// a) I can turn off/on every faq item for each individual country | |
// b) all locales are by default handled via lingui, and there are no duplicates | |
// c) it can be easily refactored to API response in future :) | |
// | |
export const faqItems = [ | |
{ | |
id: 'whenMoney', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function compress () { | |
if [ -z "$1" ]; then | |
# display usage if no parameters given | |
echo "Usage: compress <path/folder-or-file> <new-file.tar.gz>" | |
return 1 | |
fi | |
tar cf - $1 -P | pv -s $(du -sb $1 | awk '{print $1}') | gzip > $2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gmail typos | |
gmall.com,gmail.com | |
gmeil.com,gmail.com | |
gmaol.com,gmail.com | |
gnail.com,gmail.com | |
gmaii.com,gmail.com | |
gmail.comm,gmail.com | |
gmail.con,gmail.com | |
gmaiiil.com,gmail.com | |
gmil.com,gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# system | |
alias apt='echo "apt"' | |
alias sudo='echo "sudo"' | |
alias apt-get='echo "apt-get"' | |
alias uname='echo "uname"' | |
alias service='echo "service"' | |
alias du='echo "du"' | |
alias df='echo "df"' | |
alias btrfs='echo "btrfs"' | |
alias shred='echo "shred"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deployment | |
*Build action* process: | |
``` | |
# copy database parameters | |
cp "$DPSETTINGSPATH" docroot/sites/default/settings.production.php | |
# fix chmods | |
chmod 644 docroot/sites/default/settings.production.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo amazon-linux-extras install docker -y | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo service docker start | |
DOCKER_COMPOSE_VERSION=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | sed -n 's/.*tag_name":\s"\(.*\)".*/\1/p' | head -1) | |
sudo curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose |
NewerOlder