Skip to content

Instantly share code, notes, and snippets.

View notlmn's full-sized avatar

Laxman notlmn

View GitHub Profile
# nginx configuration file, mostly gathered from:
# * https://ssl-config.mozilla.org/#server=nginx&version=1.17.7&config=intermediate&openssl=1.1.1d&guideline=5.4
# * https://infosec.mozilla.org/guidelines/web_security
# * https://gist.github.com/plentz/6737338
# * https://gist.github.com/mikhailov/3052776
# starting nginx
# nginx -c $(pwd)/nginx.conf -p $(pwd)
@notlmn
notlmn / profiles.json
Last active January 28, 2020 07:22
Windows Terminal settings
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 130,
"initialRows": 30,
"keybindings": [
{"command": "closeTab", "keys": [ "ctrl+w" ]},
{"command": "newTab", "keys": [ "ctrl+t" ]},
# Libraries
import RPi.GPIO as GPIO
from time import sleep, time
GPIO.setwarnings(False)
# GPIO Mode (BOARD / BCM)
GPIO.setmode(GPIO.BOARD)
# LED pins
@notlmn
notlmn / keys.ahk
Created February 26, 2019 12:53
AutoHotKey script
#SingleInstance Force
; Little laptop thingy icon
Menu, Tray, Icon, shell32.dll, 16
; Disable some useless keys on keyboard
SetNumLockState, AlwaysOn
SetCapsLockState, AlwaysOff
@notlmn
notlmn / alacritty.yml
Last active June 21, 2019 08:00
Alacritty configuration
# Configuration for Alacritty
window:
dimensions:
columns: 130
lines: 30
font:
normal:
family: Consolas
@notlmn
notlmn / git-prompt.lua
Last active January 20, 2019 13:09
Git prompt for Clink
function trim(str)
return (str:gsub("^%s*(.-)%s*$", "%1"))
end
function exec(command)
local file = io.popen(command .. ' 2>nul', 'r')
local output = trim(file:read('*all'))
local rc = {file:close()}
local exit_code = rc[3]
@notlmn
notlmn / install.ps1
Last active January 7, 2020 12:46
Windows setup
# - - - - - - - - - Packages from Chocolatey - - - - - - - - -
choco install -y audacity
choco install -y audacity-lame
choco install -y cpu-z.install
choco install -y defraggler
choco install -y docker-for-windows
choco install -y everything /run-on-system-startup /service
choco install -y filezilla
choco install -y firefox
{
"auto_close_tags": false,
"auto_find_in_selection": true,
"copy_with_empty_selection": false,
"default_line_ending": "LF",
"drag_text": false,
"draw_white_space": "all",
"font_face": "Consolas",
"font_size": 11,
"highlight_line": true,
@notlmn
notlmn / 0_0-vscode.md
Last active January 7, 2020 06:19 — forked from ramlmn/0_0-vscode.md
VSCode snippets

VSCode Settings and Snippets

Packages to install

  • Alex
  • Atom One Dark Theme
  • C/C++
  • Document This
  • EditorConfig
  • ESLint
  • Go
@notlmn
notlmn / gnome-customization.md
Last active November 19, 2023 22:38 — forked from ramlmn/gnome-customization.md
Gnome Settings

Things to do before proceeding

  • Install Roboto, and Inconsolata fonts
sudo apt install -y fonts-roboto-unhinted fonts-inconsolata