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 btoa = (text) => Buffer.from(text, 'binary').toString('base64'); | |
const atob = (base64) => Buffer.from(base64, 'base64').toString('binary'); |
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
sudo cloud-init clean | |
sudo rm -rf /var/lib/cloud/instances | |
sudo truncate -s 0 /etc/machine-id | |
sudo rm /var/lib/dbus/machine-id | |
sudo ln -s /etc/machine-id /var/lib/dbus/machine-id | |
sudo poweroff |
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
# Set default theme and keyboard settings (you may not want this): | |
cat << EOF > ~/.local/share/code-server/User/settings.json | |
{ | |
"workbench.colorTheme": "Default Dark Modern", | |
"keyboard.layout": "com.apple.keylayout.USInternational-PC" | |
} | |
EOF | |
sudo apt update | |
sudo apt install -y software-properties-common ca-certificates lsb-release apt-transport-https |
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
# save this file as ~/.config/neovim/coc-settings.json and remove this line | |
{ | |
"eslint.autoFixOnSave": true, | |
"eslint.filetypes": ["javascript", "javascriptreact", "typescript", "typescriptreact"], | |
"coc.preferences.formatOnSaveFiletypes": [ | |
"javascript", | |
"javascriptreact", | |
"typescript", | |
"typescriptreact" | |
], |
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
sudo apt-get update | |
sudo apt-get install \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release | |
sudo mkdir -m 0755 -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ |
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
version: "3" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host" | |
ports: | |
- "53:53/tcp" |
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
sudo apt-get update | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common zip unzip wget | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-key fingerprint 0EBFCD88 | |
sudo add-apt-repository \ |
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 | |
directory[0]="/Users/erick/folder_1" | |
#directory[1]="/Users/erick/folder_2" | |
#directory[2]="/Users/erick/folder_3" | |
#directory[3]="/Users/erick/folder_4" | |
export IFS=$'\n' | |
for x in ${directory[@]} | |
do |
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
# OS updates and upgrades, PHP + Apache2 in FCGI | |
sudo apt update && sudo apt upgrade | |
sudo apt install -y php7.2-cli php7.2-fpm php7.2-mbstring php7.2-opcache php7.2-curl php7.2-mysql php7.2-bz2 php7.2-soap php7.2-xml php7.2-gd php7.2-intl php-imagick php-redis php7.2-pgsql php7.2-sqlite3 php7.2-readline php7.2-json php7.2-zip apache2 wget curl git zip unzip | |
sudo a2enmod proxy_fcgi setenvif rewrite | |
sudo a2enconf php7.2-fpm | |
sudo systemctl reload apache2 | |
# Composer | |
wget https://raw.githubusercontent.com/composer/getcomposer.org/5eb0614d3fa7130b363698d3dca52c619b463615/web/installer -O - -q | php -- --quiet | |
chmod +x composer.phar |
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 | |
sudo port selfupdate | |
sudo port upgrade outdated | |
sudo port uninstall inactive | |
sudo port uninstall leaves |
NewerOlder