Last active
          October 12, 2022 17:39 
        
      - 
      
 - 
        
Save angstarfish/16fe20bf25e4dd1aae2abbc529a136a4 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -78,9 +78,14 @@ mkdir -p ~/Sites && cd ~/Sites && valet park sudo apt remove apache2 -y && sudo apt autoremove ``` ### Set root password for mysql ```bash mysqladmin --user=root password "" ``` ### Allow Root - no password access on localhost for database ```bash sudo mysql -u root -e "grant all on *.* to 'root'@'localhost' identified by '';" ``` ### Restart database server  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -80,7 +80,7 @@ sudo apt remove apache2 -y && sudo apt autoremove ### Allow Root - no password access on localhost for database ```bash sudo mysql -u root -e "grant all privileges on *.* to 'root'@'localhost' identified by ''; flush privileges;" ``` ### Restart database server  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -82,3 +82,8 @@ sudo apt remove apache2 -y && sudo apt autoremove ```bash sudo mysql -u root -e "grant all privileges on *.* to 'root'@'localhost' identified by '';" ``` ### Restart database server ```bash sudo systemctl restart mysql ```  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -57,7 +57,7 @@ composer global require laravel/installer ``` ### Install laravel valet ```bash composer global require cpriego/valet-linux --with-all-dependencies ``` ### Add composer bin and npm bin and yarn bin to path ```bash  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -67,6 +67,9 @@ echo 'export PATH=$PATH:/home/$USER/.local/bin' | tee -a ~/.zshrc \ && source ~/.zshrc ``` ```bash valet install ``` ```bash mkdir -p ~/Sites && cd ~/Sites && valet park ``` ### Cleanup  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -57,7 +57,7 @@ composer global require laravel/installer ``` ### Install laravel valet ```bash composer global require cpriego/valet-linux ``` ### Add composer bin and npm bin and yarn bin to path ```bash  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -62,7 +62,7 @@ composer global require laravel/valet ### Add composer bin and npm bin and yarn bin to path ```bash echo 'export PATH=$PATH:/home/$USER/.local/bin' | tee -a ~/.zshrc \ && echo 'export PATH=$PATH:/home/$USER/.yarn/bin' | tee -a ~/.zshrc \ && echo 'export PATH=$PATH:/home/$USER/.config/composer/vendor/bin' | tee -a ~/.zshrc \ && source ~/.zshrc ```  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -75,4 +75,7 @@ mkdir -p ~/Sites && cd ~/Sites && valet park sudo apt remove apache2 -y && sudo apt autoremove ``` ### Allow Root - no password access on localhost for database ```bash sudo mysql -u root -e "grant all privileges on *.* to 'root'@'localhost' identified by '';" ```  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ### Setup terminal ```bash sudo apt install zsh software-properties-common curl git network-manager libnss3-tools jq xsel ```  - 
        
angstarfish revised this gist
Apr 12, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Setup terminal ```bash sudo apt install zsh software-properties-common curl git network-manager libnss3-tools jq xsel ```  - 
        
angstarfish revised this gist
Apr 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -72,7 +72,7 @@ mkdir -p ~/Sites && cd ~/Sites && valet park ### Cleanup ``` sudo apt remove apache2 -y && sudo apt autoremove ```  - 
        
angstarfish revised this gist
Apr 9, 2022 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ ### Setup terminal ```bash sudo apt install zsh software-properties-common curl git network-manager libnss3-tools jq xsel ``` @@ -11,10 +12,12 @@ git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugi && source ~/.zshrc ``` ### sign in as root ```bash sudo su -- ``` ### Install programs ```bash apt-get update \ && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 \ @@ -56,6 +59,7 @@ composer global require laravel/installer ```bash composer global require laravel/valet ``` ### Add composer bin and npm bin and yarn bin to path ```bash echo 'export PATH=$PATH:/home/$USER/.local/bin' | tee -a ~/.zshrc \ && echo 'export 'PATH=$PATH:/home/$USER/.yarn/bin' | tee -a ~/.zshrc \  - 
        
angstarfish revised this gist
Apr 9, 2022 . 1 changed file with 20 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ ```bash sudo apt install zsh software-properties-common curl git network-manager libnss3-tools jq xsel ``` ```bash sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" @@ -24,7 +24,7 @@ apt-get update \ && apt-key adv --homedir ~/.gnupg --keyserver hkps://keyserver.ubuntu.com --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C \ && echo "deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \ && apt-get update \ && apt-get install -y php8.1-fpm php8.1-cli php8.1-dev \ php8.1-pgsql php8.1-sqlite3 php8.1-gd \ php8.1-curl \ php8.1-imap php8.1-mysql php8.1-mbstring \ @@ -51,22 +51,24 @@ exit ### Install laravel installer ```bash composer global require laravel/installer ``` ### Install laravel valet ```bash composer global require laravel/valet ``` ```bash echo 'export PATH=$PATH:/home/$USER/.local/bin' | tee -a ~/.zshrc \ && echo 'export 'PATH=$PATH:/home/$USER/.yarn/bin' | tee -a ~/.zshrc \ && echo 'export PATH=$PATH:/home/$USER/.config/composer/vendor/bin' | tee -a ~/.zshrc \ && source ~/.zshrc ``` ```bash mkdir -p ~/Sites && cd ~/Sites && valet park ``` ### Cleanup ``` sudo apt remove apache2 && sudo apt autoremove ```  - 
        
angstarfish revised this gist
Apr 9, 2022 . 1 changed file with 42 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,47 @@ git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugi && source ~/.zshrc ``` ```bash sudo su -- ``` ```bash apt-get update \ && apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 \ && mkdir -p ~/.gnupg \ && chmod 600 ~/.gnupg \ && echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \ && apt-key adv --homedir ~/.gnupg --keyserver hkps://keyserver.ubuntu.com --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C \ && echo "deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu focal main" > /etc/apt/sources.list.d/ppa_ondrej_php.list \ && apt-get update \ && apt-get install -y php8.1 php8.1-common php8.1-cli php8.1-dev \ php8.1-pgsql php8.1-sqlite3 php8.1-gd \ php8.1-curl \ php8.1-imap php8.1-mysql php8.1-mbstring \ php8.1-xml php8.1-zip php8.1-bcmath php8.1-soap \ php8.1-intl php8.1-readline \ php8.1-ldap \ php8.1-msgpack php8.1-igbinary php8.1-redis php8.1-swoole \ php8.1-memcached php8.1-pcov php8.1-xdebug \ && php -r "readfile('https://getcomposer.org/installer');" | php -- --install-dir=/usr/local/bin/ --filename=composer \ && export NODE_VERSION=16 && curl -sL https://deb.nodesource.com/setup_$NODE_VERSION.x | bash - \ && apt-get install -y nodejs \ && npm install -g npm \ && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list \ && curl --silent -o - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \ && apt-get update \ && apt-get install -y yarn \ && apt-get install -y mariadb-server mariadb-client ``` ### Exit root shell ```bash exit ``` ### Install laravel installer ```bash composer global require laravel/installer @@ -28,3 +69,4 @@ git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugi ```  - 
        
angstarfish revised this gist
Apr 9, 2022 . 1 changed file with 28 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,2 +1,30 @@ ```bash sudo apt install zsh software-properties-common curl git ``` ```bash sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" ``` ```bash git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions \ && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting \ && sed -i '/plugins=(git)/c\plugins=(git zsh-autosuggestions zsh-syntax-highlighting)' ~/.zshrc \ && source ~/.zshrc ```  - 
        
angstarfish renamed this gist
Apr 9, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. - 
        
angstarfish created this gist
Apr 8, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ sudo apt install zsh software-properties-common curl git sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"