Skip to content

Instantly share code, notes, and snippets.

@maxdgt
maxdgt / postman_installation.md
Last active April 29, 2025 10:44 — forked from Akhil-Suresh/postman_installation.md
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@maxdgt
maxdgt / upgrade.sh
Created October 17, 2024 09:02 — forked from bocharsky-bw/upgrade.sh
Shell Script for Upgrade Ubuntu via APT in one step
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[0;33m'
TEXT_RED_B='\e[1;31m'
sudo apt-get update
echo -e $TEXT_YELLOW
echo 'APT update finished...'
echo -e $TEXT_RESET
@maxdgt
maxdgt / _0__ssl_certbot_letsencrypt.md
Created August 22, 2024 07:44 — forked from maxivak/_0__ssl_certbot_letsencrypt.md
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@maxdgt
maxdgt / mysqld.service
Created July 18, 2024 13:41 — forked from thomasfr/mysqld.service
mysqld.service file for systemd
[Unit]
Description=MySQL Server
After=syslog.target
After=network.target
[Service]
Type=simple
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/run/mysqld
ExecStartPre=/bin/chown mysql:mysql -R /var/run/mysqld
@maxdgt
maxdgt / Dockerfile
Created June 12, 2024 13:52 — forked from david-molnar-oculai/Dockerfile
MongoDB with SSL in Docker
FROM mongo:6.0-jammy
COPY mongodb.pem /etc/mongodb.pem
COPY mongod.conf /etc/mongod.conf
CMD ["--config", "/etc/mongod.conf"]
@maxdgt
maxdgt / README.md
Created June 6, 2024 06:16 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.
@maxdgt
maxdgt / keycloak.html
Last active May 31, 2024 14:36 — forked from thomasdarimont/keycloak.html
Keycloak JS Only public client example
<html>
<head>
<script src="http://localhost:8081/auth/js/keycloak.js" type="text/javascript">
</script>
</head>
<body>
<h1>js-demo-app</h1>
@maxdgt
maxdgt / sysctl.conf
Created May 15, 2024 18:51 — forked from voluntas/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
@maxdgt
maxdgt / inventory.tf
Created April 5, 2024 19:38 — forked from hectorcanto/inventory.tf
Produce an Ansible inventory from a Terraform template
data "template_file" "inventory" {
template = "${file("inventory.tpl")}"
vars {
backend_ip = "${aws_instance.backend.public_ip}"
frontend_ip = "${aws_instance.frontend.public_ip}"
landing_ip = "${aws_instance.landing.public_ip}"
key_path = "${var.instance_key_path}"
}
}
@maxdgt
maxdgt / Mongodb_Letsencrypt.md
Created April 5, 2024 19:24 — forked from j0e1in/Mongodb_Letsencrypt.md
Setup mongodb TSL/SSL with letsencrypt.

Setup Mongo 3.6 TSL/SSL with Letsencrypt

Install certbot

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot