Skip to content

Instantly share code, notes, and snippets.

View sheikhwaqas's full-sized avatar

Waqas Ashraf sheikhwaqas

View GitHub Profile
@sheikhwaqas
sheikhwaqas / .vimrc
Created October 2, 2024 09:08
My VIM Editor Configuration
" General Indentation Options
set autoindent " New lines inherit the indentation of previous lines
set expandtab " Convert tabs to spaces
set shiftwidth=4 " When shifting, indent using four spaces
set tabstop=4 " Indent using four spaces
set softtabstop=4 " The amount of space added or removed by Tab or Backspace key
set smartindent " Auto-indent intelligently
set smarttab " Insert 'tabstop' number of spaces when the Tab keys is pressed
" Visual Formatting
@sheikhwaqas
sheikhwaqas / application-name.service
Created October 2, 2024 09:19
Linux SystemD Service Creation Syntax
[Unit]
Description=Service Description
After=network.target
[Service]
User=user-to-run-service-as
Group=group-to-run-service-as
WorkingDirectory=absolute-path-for-application
ExecStart=absolute-path-for-binary-runtime-file
Restart=on-failure
@sheikhwaqas
sheikhwaqas / lets-encrypt-ssl-installation-on-iis.md
Created October 16, 2024 10:58
Procedure to install Let's Encrypt SSL Certificate on IIS / Windows

How to Install Let's Encrypt SSL Certificate on IIS

  1. Open the following link in your browser Win-Acme
  2. Click on the Download link in the menubar and download the latest version
  3. Extract the ZIP file to a folder on your server, (e.g. C:\win-acme)
  4. Open Command Prompt or PowerShell as an Administrator
  5. Navigate to the directory where you extracted win-acme (e.g. C:\win-acme)
  6. Run the following command to start the win-acme client wacs.exe
  7. It will present you with options to create a New SSL Certificate or Renew existing SSL Certificate
  8. Ideally, Select More Options and Add a Scheduled Task that can automatically renew the SSL Certificate
@sheikhwaqas
sheikhwaqas / test-email-via-telnet.md
Created December 12, 2024 11:28
How to Test Email Deliverability via SMTP Server using Telnet

Step 1: Ensure Telnet is Installed

  • On Windows:
    • Go to Control Panel > Programs > Turn Windows Features On or Off
    • Enable "Telnet Client"
  • On macOS / Linux: Telnet is usually pre-installed. It can be used by using the telnet command

Step 2: Open telnet

  1. Open your command line / terminal
  2. Connect to the SMTP server using:
  • telnet