generated via plantuml
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 | |
# From Victor (zoph) Grenu from zoph.io - https://zoph.io | |
# Twitter: @zoph | |
TARGET_ROLE_NAME="AdministratorAccess" | |
## Get list of AWS accounts using SSO | |
AWS_ACCESS_TOKEN=$(cat $(ls -1d ~/.aws/sso/cache/* | grep -v botocore) | jq -r "{accessToken} | .[]") | |
ACCOUNTS_IDS=($(aws sso list-accounts --access-token $AWS_ACCESS_TOKEN | jq -r '.accountList[] | .accountId')) |
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 script basically automates the official Postman installation guide for Linux: | |
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux | |
# 32 or 64-bit? | |
BIT=$(getconf LONG_BIT) | |
# Download the appropriate version | |
wget -O ~/postman.tar.gz "https://dl.pstmn.io/download/latest/linux${BIT}" | |
# Extract the archive in /opt |
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
1. Go to the Postman app download page at https://www.getpostman.com/apps. You can choose the os version from the drop-down. x64 for 64 bit Operating System and x84 for the 32 bit based Linux | |
2. Open the terminal and go to the directory where you have downloaded the tar file. If you have downloaded on the Downloads folder | |
cd ~/Downloads/ | |
3. Run the following commands, | |
sudo rm -rf /opt/Postman/ | |
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
const greeters = { | |
'en': 'english', | |
'fr': 'french' | |
}; | |
const promise = (async () => { | |
const greeter = greeters[navigator.language.split('-')[0]]; | |
if (!greeter) { | |
throw new Error('No greeter for you!'); |
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
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted | |
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted | |
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted |
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
[Unit] | |
Description=Metabase server | |
After=syslog.target | |
After=network.target | |
[Service] | |
WorkingDirectory=/home/data/tools/metabase | |
ExecStart=/usr/bin/java -jar /home/data/tools/metabase/metabase.jar | |
Environment=MB_JETTY_PORT=8080 | |
User=data |
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
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
#cd /etc/caddy/Caddyfile | |
example.com { | |
root /usr/share/nginx/html | |
gzip | |
log /var/log/caddy/access.log | |
#fastcgi / unix:/var/run/php-fpm/php-fpm.sock php # Fast CGI php interpreter | |
#fastcgi / fastcgi / 127.0.0.1:9000 php # Fast CGI php interpreter | |
#using with laravel | |
fastcgi / unix:/var/run/php-fpm/php-fpm.sock php { | |
index index.php |
NewerOlder