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 / SSH Key - Gitlab.md
Last active October 11, 2024 09:50
SSH Key - Gitlab

To resolve the "Permission denied (publickey)" error when trying to clone a Git repository on Windows, follow these steps:

Check SSH Key Configuration

  1. Verify Existing SSH Keys:
    • Open Git Bash.
    • Navigate to the SSH directory:
      cd ~/.ssh
@vishnumitraha
vishnumitraha / Windows RDP login prompt.md
Last active September 2, 2024 10:16
Dell Thin Client to boot directly into a Windows RDP login prompt

To configure a Dell Thin Client to boot directly into a Windows RDP login prompt, you need to adjust the settings in the wnos.ini file and ensure the correct configuration for Remote Desktop connections. Here are the steps to achieve this:

1. Edit the wnos.ini File

The wnos.ini file is used to configure various settings for the Dell Thin Client. You need to modify this file to enable direct RDP login.

  1. Access the wnos.ini File:

    • You can edit the wnos.ini file using the Wyse Management Suite or by manually editing it if you have access to the file system of the thin client.
  2. Add Necessary Settings:

@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
திரு அருட்பா
உடற்பிணி அனைத்தையும் உயிர்ப்பிணி அனைத்தையும்
அடர்ப்பறத் தவிர்த்த அருட்சிவ மருந்தே !
இருநிதி, எழுநிதி, இயல் நவநிதி முதல் 
திருநிதி எல்லாம் தரும் ஒரு நிதியே