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 characters
| ## create empty environment | |
| conda create -n py37 | |
| ## activate | |
| conda activate py37 | |
| ## use x86_64 architecture channel(s) | |
| conda config --env --set subdir osx-64 | |
| ## install python, numpy, etc. (add more packages here...) |
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 characters
| #docker stack deploy -c swarm.yml runner | |
| version: '3.7' | |
| secrets: | |
| # Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token) | |
| # Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN` | |
| GITLAB_REGISTRATION_TOKEN: | |
| external: true | |
| # Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api) |
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 characters
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
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 characters
| #!/bin/sh | |
| # size of swapfile in megabytes | |
| swapsize=1024 | |
| # does the swap file already exist? | |
| grep -q "swapfile" /etc/fstab | |
| # if not then create it | |
| if [ $? -ne 0 ]; then |
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 characters
| #!/bin/bash | |
| # | |
| # Docker + Portainer + Let's Encrypt | |
| # Author: Daniel M. Hendricks | |
| # Web Site: https://www.danhendricks.com/ | |
| # Feedback: https://daniel.hn/contact/ | |
| # | |
| # IMPORTANT: Once deployed, visit https://{host}:9000 to change the default admin password! | |
| # | |
| # <UDF name="hostname" label="Hostname" example="Example: docker01" /> |
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 characters
| #!/bin/bash | |
| # SIMPLE WAYS TO MAKE LIFE EASIER | |
| # Better Performance use Linode 2 GB | |
| # Ubuntu 21.10 , Ubuntu 21.04 , Ubuntu 20.04 , Ubuntu 18.04 , Ubuntu 16.04 , Debian 11 , Debian 10 , Debian 9 | |
| # Cockpit + Docker + Docker-Compose + Portainer + Portainer-Agent + Nginx-Proxy-Manager + ctop | |
| # | |
| # Fixed repo full update and upgrade - REBOOT after upgrade | |
| # UPGRADE disable if not need line 141 # not upgrade first or not working all ubuntu releases ,tested | |
| # UPGRADE take some time about 3 min after that there is a reboot,Don't be surprised if the connection is lost for a while. | |
| # All Docker Official Images |
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 characters
| let jspdf = document.createElement("script"); | |
| jspdf.onload = function () { | |
| let pdfDocumentName = "Document-GDrive.VIP"; | |
| let doc; | |
| function generatePDF (){ | |
| let imgTags = document.getElementsByTagName("img"); | |
| let checkURLString = "blob:https://drive.google.com/"; | |
| let validImgTagCounter = 0; | |
| for (i = 0; i < imgTags.length; i++) { | |
| if (imgTags[i].src.substring(0, checkURLString.length) === checkURLString){ |
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 characters
| #!/bin/bash | |
| WP_OWNER=root # <-- wordpress owner | |
| WP_GROUP=root # <-- wordpress group | |
| WS_GROUP=www-data # <-- webserver group | |
| # reset to safe defaults | |
| find . -exec chown ${WP_OWNER}:${WP_GROUP} {} \; | |
| find . -type d -exec chmod 755 {} \; | |
| find . -type f -exec chmod 644 {} \; | |
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 characters
| #!/bin/sh | |
| # This script will install a new BookStack instance on a fresh Ubuntu 18.04 server. | |
| # This script is experimental and does not ensure any security. | |
| # Fetch domain to use from first provided parameter, | |
| # Otherwise request the user to input their domain | |
| DOMAIN=$1 | |
| if [ -z $1 ] | |
| then | |
| echo "" |
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 characters
| #!/bin/bash | |
| # This will remove Apache | |
| sudo service apache2 stop | |
| sudo apt-get purge apache2 apache2-utils apache2.2-bin | |
| sudo apt remove apache2.* | |
| sudo apt-get autoremove | |
| whereis apache2 | |
| sudo rm -rf /etc/apache2 |
NewerOlder