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' {} +
| 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' {} +
| #!/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 |
| [Desktop Entry] | |
| Encoding=UTF-8 | |
| Name=Postman | |
| Exec=postman | |
| Icon=/home/montanabay/Postman/files/Icons/icon.png | |
| Terminal=false | |
| Type=Application | |
| Categories=Development; |
| sudo wget --mirror --page-requisites --convert-links --adjust-extension --no-if-modified-since --no-check-certificate --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36" -e robots=off -np https://www.edelman.com |
| sudo apt-get update && sudo apt-get upgrade | |
| sudo apt-get install postgresql postgresql-contrib | |
| sudo adduser postgres | |
| sudo passwd postgres | |
| usermod -a -G sudo postgres | |
| su - postgres | |
| psql -d template1 -c "ALTER USER postgres WITH PASSWORD 'Rtcv39$$';" | |
| createuser montanabay --pwprompt |
| ___ ___ _ _ _ _____ _ | |
| | \/ | | | (_) | | |_ _| | | |
| | . . | __ _| |_ ___ _ __ _ __ _| | | | | |__ ___ _ __ ___ ___ | |
| | |\/| |/ _` | __/ _ \ '__| |/ _` | | | | | '_ \ / _ \ '_ ` _ \ / _ \ | |
| | | | | (_| | || __/ | | | (_| | | | | | | | | __/ | | | | | __/ | |
| \_| |_/\__,_|\__\___|_| |_|\__,_|_| \_/ |_| |_|\___|_| |_| |_|\___| | |
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, |
| <?php | |
| preg_match_all("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", | |
| "Call 555-1212 or 1-800-555-1212", $phones); | |
| ?> |
| https://www.linode.com/docs/databases/postgresql/how-to-install-postgresql-on-ubuntu-16-04/ | |
| http://devopspy.com/linux/allow-remote-connections-postgresql/ |
| heroku login | |
| heroku git:clone -a egranary | |
| cd egranary | |
| git remote add egranary git@github.com:alkarimlalani/egranary.git | |
| git fetch egranary master | |
| git reset --hard egranary/master | |
| git push heroku master --force |