Skip to content

Instantly share code, notes, and snippets.

View shsingh's full-sized avatar
:octocat:
Chaotic Neutral

Shain Singh shsingh

:octocat:
Chaotic Neutral
View GitHub Profile
@shsingh
shsingh / whoami-talks-cv.json
Last active March 11, 2024 23:43
whoami-talks-cv.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Shain Singh",
"label": "[Field CTO | Principal Security Architect], OCTO, OSPO @ F5 | Project Co-Lead @ OWASP | Contributor @ CSA"
},
"profiles": [
{
"network": "LinkedIn",
"url": "https://www.linkedin.com/in/shsingh/"
# Always validate the PR title, and ignore the commits
titleOnly: true
# By default types specified in commitizen/conventional-commit-types is used.
# See: https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json
# You can override the valid types
types:
- feat
- fix
- docs
- style
@shsingh
shsingh / auth_request.conf
Created March 27, 2023 23:48 — forked from nginx-gists/auth_request.conf
Validating OAuth 2.0 Access Tokens with NGINX
server {
listen 80;
location / {
auth_request /_oauth2_token_introspection;
proxy_pass http://my_backend;
}
location = /_oauth2_token_introspection {
internal;
@shsingh
shsingh / sipp-config
Created March 20, 2023 00:36
Configuration details for 'sipp' for testing ALG via CGNAT
Configuration details for 'sipp' for testing ALG via CGNAT
@shsingh
shsingh / f5-afm
Last active March 23, 2023 01:24
F5 CGNAT using AFM module with BGP for LSN advertising
- Ensure 'bash' access to device
- SSH into device
- Configure device before BGP
@shsingh
shsingh / f5-cgnat
Last active March 20, 2023 00:32
F5 CGNAT using CGNAT module with BGP for LSN advertising
- Ensure 'bash' access to device
- SSH into device
- Configure device before BGP
@shsingh
shsingh / neoovim-user-plugins-init.lua
Last active August 1, 2023 00:12
neovim files - create in .config/nvim/lua after cloning https://github.com/AstroNvim/AstroNvim to .config/nvim
return {
{
"luisiacc/gruvbox-baby",
require("notify").setup({background_colour = "0d0e0f"}),
require("telescope").setup({
defaults = {
borderchars = {
prompt = {"─", " ", " ", " ", "─", "─", " ", " "},
results = {" "},
preview = {" "}
# Inserts a blank line between shell prompts
add_newline = true
command_timeout = 500
# A minimal left prompt
format = '''
[┌─](bold green) $directory$git_branch$git_status$git_metrics$git_state
[└─](bold green) $username$hostname ➜ '''
# set term
TERM="xterm-256color"
# experimental zsh options
setopt auto_pushd pushd_ignore_dups
setopt list_packed
setopt hist_ignore_space
# zsh history related settings
HISTFILE=~/.zsh_history
@shsingh
shsingh / delete_git_submodule.md
Created February 8, 2023 05:13 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule