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 | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt dist-upgrade -y | |
sudo apt autoremove -y |
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 | |
read -p $'What should the new nextcloud mysql user account be called?\n' mysql_nextcloud_user | |
read -sp $'What would you like the new nextcloud MySQL password to be?\n' mysql_nextcloud_pass | |
read -p "What is the domain for the Nextcloud server? [Example: cloud.mydomain.com]\n" nextcloud_server_name | |
read -sp $'What is the current MySQL password? (If no password is entered MySQL will prompt for password)\n' mysql_curr_pass | |
sudo mysql -u root -p$mysql_curr_pass -e "CREATE DATABASE IF NOT EXISTS nextcloud; USE nextcloud; CREATE USER IF NOT EXISTS '"$mysql_nextcloud_user"'@'localhost' IDENTIFIED BY '"$mysql_nextcloud_pass"'; GRANT ALL ON nextcloud.* TO '"$mysql_nextcloud_user"'@'localhost' IDENTIFIED BY '"$mysql_nextcloud_pass"' WITH GRANT OPTION; FLUSH PRIVILEGES;" | |
sudo apt install zip unzip -y | |
mkdir temp | |
cd temp | |
wget https://download.nextcloud.com/server/releases/nextcloud-14.0.3.zip |
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 | |
docker stats -a |
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 | |
docker service logs glamsquad_web -f --since 30m |
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 | |
docker stack deploy -c /var/www/html/bin/docker-compose.yml glamsquad |
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
Show hidden characters
{ | |
"folders": [ | |
// Artist App | |
{ | |
"name": "Artist" | |
"path": "Glam-Squad-Artist-App" | |
}, | |
// Client App | |
{ | |
"name": "Client" |
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
cipher /w:C: |
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
html, body, .class, #id { | |
overflow: auto; | |
scrollbar-width: none; | |
-ms-overflow-style: none; | |
} | |
::-webkit-scrollbar { | |
width: 0; | |
} |
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
php artisan key:generate | |
php artisan cache:clear | |
php artisan migrate | |
php artisan passport:install | |
php artisan serve |
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
SELECT id, address, datetime, price, ROUND(6371 * acos(cos(radians(1.329380)) * cos(radians(event_lat)) * cos(radians(event_lng) - radians(103.775595)) + sin(radians(1.329380)) * sin(radians(event_lat))), 3) as distance | |
FROM jobs | |
WHERE (6371 * acos(cos(radians(1.329380)) * cos(radians(event_lat)) * cos(radians(event_lng) - radians(103.775595)) + sin(radians(1.329380)) * sin(radians(event_lat)))) < 50 | |
ORDER BY distance DESC; |
OlderNewer