- Install Brew
- Install zsh latest
- Set Zsh to be default terminal
- Install oh my zsh
- Install Visual Studio Code, asdf
- Install nodejs, python, go, rust asdf plugins
- Install latest version of nodes, pytho, go and rust using asdf
- Install jumpcut, rectangle
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
#!/opt/homebrew/bin/zsh | |
# List of folders to exclude | |
excluded_folders=( | |
"node_modules" | |
"dist" | |
"coverage" | |
"assets" | |
".git" | |
) |
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/zsh | |
# Install Brew | |
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; | |
# add Brew to path | |
echo "export $PATH=$PATH:/opt/homebrew/bin" >> .zshrc | |
# source | |
source ~/.zshrc |
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 | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
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
{ | |
"AN":"Andaman and Nicobar Islands", | |
"AP":"Andhra Pradesh", | |
"AR":"Arunachal Pradesh", | |
"AS":"Assam", | |
"BR":"Bihar", | |
"CG":"Chandigarh", | |
"CH":"Chhattisgarh", | |
"DN":"Dadra and Nagar Haveli", |
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 chokidar = require('chokidar'); | |
const util = require('util'); | |
var sharp = require('sharp'); | |
const fs = require('fs'); | |
const paths = require('path'); | |
const copy = util.promisify(fs.copyFile); | |
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 chokidar = require('chokidar'); | |
const util = require('util'); | |
var sharp = require('sharp'); | |
const fs = require('fs'); | |
const paths = require('path'); | |
const copy = util.promisify(fs.copyFile); | |
const del = util.promisify(fs.unlink); | |
const watcher = chokidar.watch('./uploads', { |
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
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
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 | |
mysqldump -u username -p password –all-databases –routines| gzip > /root/MySQLDB_`date ‘+\%m-\%d-\%Y’`.sql.gz | |
mysqldump -h your-ip -u username -p password –all-databases –routines | gzip > /root/MySQLDB.3_`date ‘+\%m-\%d-\%Y’`.sql.gz | |
#now create cron script smth like this | |
#crontab -e | |
#30 15 * * * /root/MySQLdump.sh 2>&1>> /root/MySQLdump.log | |
#The above will dump the database every day at 15:30. | |