Skip to content

Instantly share code, notes, and snippets.

View mamun67's full-sized avatar

SK MAMUN ARFIN mamun67

  • INDIA (WEST BENGAL)
View GitHub Profile
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
@mamun67
mamun67 / HelmGist
Created April 24, 2020 17:46
HelmGist
Helm create mychart
cd mychart
ls
Chart - folder
charts.yaml - details about chart
values.yaml - the parameters
template - helper yaml
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
@mamun67
mamun67 / useradd
Created April 14, 2020 16:35
Add Docker user for jenking
publich ober ssh plugin
useradd dockeradmin
passwd dockeradmin
check the group
cat /etc/group
usermod -aG docker dockeradmin
@mamun67
mamun67 / reports.py
Created October 18, 2019 09:57 — forked from jackparmer/reports.py
Python script to autogen. HTML reports with Plotly graph embeds
#!/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>.
@mamun67
mamun67 / nginx-cors.conf
Created September 26, 2019 11:22 — forked from algal/nginx-cors.conf
nginx configuration for CORS (Cross-Origin Resource Sharing), with an origin whitelist, and HTTP Basic Access authentication allowed
#
# 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
@mamun67
mamun67 / Linux Series part 2: File & Folder Permission Management.txt
Created September 4, 2019 15:54 — forked from sd031/Linux Series part 2: File & Folder Permission Management.txt
This Gist contains basics Linux File & Folder Permission Management Commands and their meaning, this gist's sole purpose is to help students learn basic file management commands.
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.
@mamun67
mamun67 / python_mailer_smtplib.py
Created August 26, 2019 12:06 — forked from ruanbekker/python_mailer_smtplib.py
Python SMTP Mailer using Amazon SES (smtplib)
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"
@mamun67
mamun67 / Chrome Version
Created August 19, 2019 16:57
Check Chrome Version
chromium-browser --product-version
@mamun67
mamun67 / Terraform Notes
Last active August 20, 2019 06:06
Terraform Notes on getting started with terraform
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