Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
$RECYCLE.BIN | |
# ---- Apps ---- | |
*.vscode\extensions* | |
*Discord\app-* | |
# ---- Windows ---- | |
*Windows\* | |
#*Windows\INF* | |
#*Windows\SystemApps\* | |
*\AppData\Roaming\* |
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach Debug", |
// ==UserScript== | |
// @name HVT | |
// @namespace https://tranghv.blogspot.com/ | |
// @version 0.1 | |
// @description Add Turbo script | |
// @author Tráng Hà Viết | |
// @include http://* | |
// @include https://* | |
// @exclude *mail.google.com/* |
#!/bin/bash | |
sudo apt install jq -y | |
APP_VERSION=$(curl -s https://api.github.com/repos/massalabs/massa/releases/latest | jq -r ".tag_name") | |
echo "Newest version: $APP_VERSION" | |
LINK="https://github.com/massalabs/massa/releases/download/${APP_VERSION}/massa_${APP_VERSION}_release_linux.tar.gz" | |
wget -c "$LINK" -O - | tar -xz -C ./ | |
echo "Enter staking keys password:" |
ZSH_THEME="fletcherm" | |
HIST_STAMPS="dd.mm.yyyy" | |
HISTSIZE=10000 | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=( |
# This compose file defines an Aptos Fullnode deployment. | |
# Read the README.md files for instruction on how to install aptos-node | |
version: "3.8" | |
services: | |
fullnode: | |
image: "${VALIDATOR_IMAGE_REPO:-aptoslabs/validator}:${IMAGE_TAG:-testnet}" | |
networks: | |
shared: | |
volumes: |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
# Permission for laravel project | |
# sudo chgrp -R www-data storage bootstrap/cache | |
# sudo chmod -R ug+rwx storage bootstrap/cache | |
# OR: sudo chown -R <user>:www-data storage bootstrap/cache | |
# Allow current user edit file | |
# sudo usermod -a -G www-data <username> | |
# sudo chmod 775 -R storage | |
# After created, enable this configuration |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
server { | |
listen 80; | |
server_name domain.com.br; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $host; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_pass http://127.0.0.1:8181; |