Skip to content

Instantly share code, notes, and snippets.

View vishnumitraha's full-sized avatar
💭
நீடகத்தில் காயவித்தை யாலக் கடவுள் இயற்றுமிந்த மாயவித்தை மெய்யெனநீ வாழ்ந்தனையே

Va$anth $riNarayan vishnumitraha

💭
நீடகத்தில் காயவித்தை யாலக் கடவுள் இயற்றுமிந்த மாயவித்தை மெய்யெனநீ வாழ்ந்தனையே
  • Health Care
  • India
View GitHub Profile
@vishnumitraha
vishnumitraha / gist:7c4fa85bf09e8c5a9384c875468420cb
Last active July 24, 2024 06:07
Let's Encrypt SSL certificate to an Amazon S3 static site

To add a Let's Encrypt SSL certificate to an Amazon S3 static site, you will need to use Amazon CloudFront as an intermediary, since S3 does not support SSL certificates directly. Here are the detailed steps to achieve this:

Step 1: Set Up Your S3 Bucket

  1. Create an S3 Bucket:

    • Go to the AWS Management Console.
    • Create a new S3 bucket with a unique name (this will be your static website).
    • Enable static website hosting in the bucket properties.
  2. Upload Your Website Files:

@vishnumitraha
vishnumitraha / Securing tmp directory.md
Last active December 8, 2021 09:10
Securing tmp directory.md

Securing /tmp directory

Step 1: Backup /etc/fstab

cp -a /etc/fstab /etc/fstab.bak

Step 3: Make a 3GB file and format it with ext3:

@vishnumitraha
vishnumitraha / Securing tmp on a linux server.md
Last active December 8, 2021 08:33
Securing /tmp on a linux server .md

URL = https://itsyndicate.org/blog/securing-tmp-on-a-linux-server/

One of the first things we do here at ITsyndicate is to secure /tmp /var/tmp and /dev/shm to prevent common exploits and rootkits from having their way with a server. This method doesn’t prevent users from uploading content to those directories but it disables their direct execution and the suid buffer overflow exploit. Securing /tmp directory

This directory is used by Apache, MySQL and PHP, among others, to store temporary data as well as lock files and sockets. You have probably seen a lot of session files and the mysql.sock file under it but sometimes attackers can upload and execute exploits with a PHP injection via apache. Step 1: Backup /etc/fstab

cp -a /etc/fstab /etc/fstab.bak
@vishnumitraha
vishnumitraha / Some Com.md
Last active November 18, 2021 05:31
some

MongoDB Table Scan

mongodump --forceTableScan -h 127.0.0.1 --port 3001 -d meteor 
@vishnumitraha
vishnumitraha / MEAN in AWS.md
Last active October 21, 2021 05:30
MEAN stack for CAP Admin - Debian10 Buster

Install NodeJS,Meteor JS, MongoDB and Nginx with CAP admin packages.

Noda Js

sudo apt update
sudo apt install nodejs npm

mongodb

sudo apt install dirmngr gnupg apt-transport-https software-properties-common ca-certificates curl
@vishnumitraha
vishnumitraha / Implement CSP frame-ancestors
Created December 9, 2020 04:13
Implement CSP frame-ancestors
Let’s take a look at the following implementation procedure.
Apache HTTP
mod_headers is the pre-requisite to inject any headers in Apache. Depending on the OS and version but if you are using Ubuntu and Apache 2.4 then you can use a2enmod headers to enable it.
root@geekflare:/etc/apache2# a2enmod headers
Enabling module headers.
To activate the new configuration, you need to run:
systemctl restart apache2
root@geekflare:/etc/apache2# systemctl restart apache2
@vishnumitraha
vishnumitraha / InstallingMoodleonAWSLightSail.md
Created December 1, 2020 04:28 — forked from nanusdad/InstallingMoodleonAWSLightSail.md
Installing Moodle on AWS LightSail

Installing Moodle on AWS LightSail

Start with a new LightSail Instance running Ubuntu 20.04

  • Update
sudo apt update
  • Install Apache
sudo apt-get install apache2
@vishnumitraha
vishnumitraha / திருஅருட்பா
Last active November 28, 2020 04:15
திரு அருட்பா
உடற்பிணி அனைத்தையும் உயிர்ப்பிணி அனைத்தையும்
அடர்ப்பறத் தவிர்த்த அருட்சிவ மருந்தே !
இருநிதி, எழுநிதி, இயல் நவநிதி முதல் 
திருநிதி எல்லாம் தரும் ஒரு நிதியே
@vishnumitraha
vishnumitraha / இட்ட பெயர்
Created November 28, 2020 04:08
இட்ட பெயர்
பெறுவார் பிள்ளை ஆளுக்கொரு பெயர் சூட்டுவார் ஆனால்
கடைநாள் வரை நிலைக்கும் ஒரு பெயர்
அது நாரணன் கருதனை கருவறைதன்னில்  இட்ட பெயர் என உணர்க
நாராயணன் ஒரு ஆத்துமா உலகத்துல கருவிலே போடுற போது என்ன பேர் வைக்கிறானோ எத்தனை ஜென்ம ஆனாலும் அதுக்கு சம்பந்தமான பேர் தான் வந்துட்டே இருக்கும்
@vishnumitraha
vishnumitraha / Windows Desktop Explorer refresh issue.md
Last active November 27, 2020 05:17
Windows Desktop Explorer refresh issue

Use the DISM tool and System File Checker for repairing any missing or corrupted system files:

System File Checker (SFC)/DISM is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.

Right click on the Start Menu and select Command Prompt (Admin).

If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.

Type or copy paste the below command lines into it and hit Enter: