sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| FROM abiosoft/caddy:php | |
| COPY ./ /srv/ | |
| RUN sed -i 's/0\.0\.0\.0/0.0.0.0:{$PORT}/' /etc/Caddyfile | |
| RUN sed -e '$a tls off' /etc/Caddyfile |
| #!/bin/bash | |
| # Before running this script, make sure you have sysbench installed: | |
| # sudo apt-get install sysbench | |
| # | |
| # This script helps you check if your Raspberry pi is correctly powered. | |
| # You can read more about Raspberry pi powering issues here: https://ownyourbits.com/2019/02/02/whats-wrong-with-the-raspberry-pi/ | |
| # If you're pi is correctly powered (stable power supply and quality cable), after running the script, you should get something like: |
| <?php | |
| /** @noinspection ? */ | |
| // PhpUndefinedGotoLabelInspection Undefined goto label | |
| // PhpUndefinedVariableInspection Undefined variable | |
| // PhpUndefinedMethodInspection Undefined method | |
| // PhpUndefinedNamespaceInspection Undefined namespace | |
| // PhpUndefinedClassInspection Undefined class | |
| // PhpUndefinedFunctionInspection Undefined function |
| sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k | |
| wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf | |
| wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf | |
| mkdir ~/.local/share/fonts/ | |
| mv PowerlineSymbols.otf ~/.local/share/fonts/ | |
| fc-cache -vf ~/.local/share/fonts/ | |
| mkdir ~/.config/fontconfig/conf.d/ | |
| mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/ | |
| echo "Log out of your session and login again." |
Thanks to /u/zpoo32 for reporting several issues in this list!
| const echoPostRequest = { | |
| url: 'https://<my url>.auth0.com/oauth/token', | |
| method: 'POST', | |
| header: 'Content-Type:application/json', | |
| body: { | |
| mode: 'application/json', | |
| raw: JSON.stringify( | |
| { | |
| client_id:'<your client ID>', | |
| client_secret:'<your client secret>', |
| #!/bin/bash | |
| # | |
| # Backing up the OVH server, checking the archive and sending it through FTP | |
| # | |
| BACKUPHOME=/home/backups | |
| FTPUSER=ftpbackupser | |
| FTPPASS=S0m3Th1nGH4rD | |
| FTPSERVER=ftp.server.com | |
| SERVER=youservername |