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
https://stackoverflow.com/questions/50652808/apache-shutdown-couldnt-grab-mutex | |
Create the following file: /etc/apache2/conf-available/mutex-file.conf | |
Add Mutex file:${APACHE_LOCK_DIR} default inside the newly created file | |
Enable new configuration file with a2enconf mutex-file | |
Restart Apache with systemctl restart apache2 |
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
Helm create mychart | |
cd mychart | |
ls | |
Chart - folder | |
charts.yaml - details about chart | |
values.yaml - the parameters | |
template - helper yaml |
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
Create a new repository on GitHub. You can also add a gitignore file, a readme and a licence if you want | |
Open Git Bash | |
Change the current working directory to your local project. | |
Initialize the local directory as a Git repository. | |
git init | |
Add the files in your new local repository. This stages them for the first commit. | |
git add . | |
Commit the files that you’ve staged in your local repository. | |
git commit -m "initial commit" | |
Copy the https url of your newly created repo |
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
publich ober ssh plugin | |
useradd dockeradmin | |
passwd dockeradmin | |
check the group | |
cat /etc/group | |
usermod -aG docker dockeradmin |
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
#!/usr/bin/env python | |
# coding: utf-8 | |
## Generate HTML reports with D3 graphs using Python, Plotly, and Pandas | |
# You can download the example report that this script generate from this link. | |
# <a href="d3.js">d3.js</a> is an amazing JavaScript library for creating interactive, online graphics and charts. Plotly lets you create d3.js charts using Python, R, or MATLAB. This IPython notebook shows you how to embed these charts in an HTML report that you can then share by email or <a href="">host on a website</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
# | |
# A CORS (Cross-Origin Resouce Sharing) config for nginx | |
# | |
# == Purpose | |
# | |
# This nginx configuration enables CORS requests in the following way: | |
# - enables CORS just for origins on a whitelist specified by a regular expression | |
# - CORS preflight request (OPTIONS) are responded immediately | |
# - Access-Control-Allow-Credentials=true for GET and POST requests |
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
Linux Series part 2: File & Folder Permission Management: | |
To see file list, their crrent permission level and much more, you can run: | |
ls -la -lh -lt | |
(To know more on ls commands check tutorial: https://www.youtube.com/watch?v=h6sDtGN5hYs) | |
chmod <specification> filename : Change the file permissions. Specifications = u user/owner, g group, o other, + add permission, - remove, r read, w write,x execute. | |
chmod -R <specification> dir-name: Change the permissions of a directory recursively. To change permission of a directory and everything within that directory, use this command. |
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
import sys | |
import smtplib | |
from email.MIMEMultipart import MIMEMultipart | |
from email.MIMEText import MIMEText | |
name = "Ruan" | |
from_address = "[email protected]" | |
to_address = "[email protected]" | |
subject = "Test" |
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
chromium-browser --product-version |
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
Automating Infrastructure Requirements | |
Provisioning Resources | |
Planning Updates | |
Using Source Control | |
Reusing Templates | |
Build Usind Go Lang | |
Install chocolaty and no need to set the path | |
Terraform Basics |
NewerOlder