find ./ -type f -exec sed -i 's/string1/string2/g' {} ;
find ./ -type f -exec sed -i 's/string1/string2/gI' {} ;
find . -type f -exec sed -i 's+http://example.com+https://example.com+g' {} +
composer global require laravel/installer | |
composer global require cpriego/valet-linux | |
nano ~/.bashrc | |
export PATH="$PATH:~/.config/composer/vendor/bin" | |
source ~/.bashrc |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc | |
source ~/.bashrc |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/home/montanabay/Postman/files/Icons/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; |
#!/bin/bash | |
cd /tmp || exit | |
echo "Downloading Postman ..." | |
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz | |
tar -xzf postman.tar.gz | |
rm postman.tar.gz | |
echo "Installing to opt..." | |
if [ -d "/opt/Postman" ];then | |
sudo rm -rf /opt/Postman |
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-object-storage-server-using-minio-on-ubuntu-16-04 |
mysql_config_editor set --login-path=local --host=localhost --user=root --password | |
mysqldump --login-path=local --no-data --skip-triggers microfinance > microfinance.sql | |
mysqldump --login-path=local --no-create-db --no-create-info --skip-triggers microfinance >> microfinance.sql | |
mysqldump --login-path=local --no-create-db --no-create-info --no-data --routines --triggers --skip-opt microfinance >> microfinance.sql |
df -h | |
dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024 | |
mkswap /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
echo 'echo "/swapfile none swap defaults 0 0" >> /etc/fstab' | sudo sh | |
free -m |
server { | |
server_name server_name example-live.com www.example-live.com; | |
set $mobile_rewrite do_not_perform; | |
# this regex string is actually much longer to match more mobile devices | |
if ($http_user_agent ~* "|android|ip(ad|hone|od)|kindle") { | |
set $mobile_rewrite perform; | |
} |
find ./ -type f -exec sed -i 's/string1/string2/g' {} ;
find ./ -type f -exec sed -i 's/string1/string2/gI' {} ;
find . -type f -exec sed -i 's+http://example.com+https://example.com+g' {} +