Skip to content

Instantly share code, notes, and snippets.

View yashodhank's full-sized avatar
🎯
Manifesting

Yashodhan yashodhank

🎯
Manifesting
View GitHub Profile
@yashodhank
yashodhank / proxmox-packer-user-creator.sh
Created September 4, 2023 01:20
This script automate the process to create random username and password and required role with privilages for Packer to work with Proxmox Host.
#!/bin/bash
# Function to generate a strong password
generate_password() {
cat /dev/urandom | tr -dc 'a-zA-Z0-9!@#$%^&*()-_+=~' | fold -w 16 | head -n 1
}
# Function to generate a random username
generate_username() {
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1
@yashodhank
yashodhank / Order-Create.cshtml-dev.md
Last active July 28, 2023 18:30
DRSApp development Document Related to Order & OrderBOM
@using KlausBOM.DTOs.Orders
@using KlausBOM.DTOs.ProductConfigs
@using KlausBOM.DTOs.Products
@using KlausBOM.Domain
@using KlausBOM.Domain.Enumerations
@using KlausBOM.Models
@using KlausBOM.Utility
@using System.Security.Claims
@yashodhank
yashodhank / homebrew.mxcl.aria2.plist
Last active April 21, 2025 06:54 — forked from stackia/homebrew.mxcl.aria2.plist
aria2c daemon start at boot. Put this file into /Library/LaunchDaemons, them 'chmod 600' and 'chown root'. Remember to fill REPLACE_WITH_YOUR_ placeholders below.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.aria2</string>
@yashodhank
yashodhank / custom.ipxe
Created April 22, 2023 05:11 — forked from bunchc/custom.ipxe
Custom ipxe menu for netboot.xyz
#!ipxe
###
### codybunch.lab custom menu example
###
:custom
clear custom_choice
menu ESXi
item --gap Boot ESXi Installer
item esxi_70_kickstart ${space} 7.0 Automated Install
@yashodhank
yashodhank / HowToDeleteAllCloudflareRecors.md
Created December 4, 2022 10:34 — forked from AidasK/HowToDeleteAllCloudflareRecors.md
Cloudflare delete all DNS records. Just go to cloudflare dns zones, open your browers developer console and paste this javascript code.

image

Real developers are not used to clicking, it's allways easier to write a script to do it for you.
@yashodhank
yashodhank / docker-compose.yml
Last active November 28, 2022 01:33 — forked from smashnet/docker-compose.yml
Docker-Compose: Mastodon v4.0.2 with Traefik v2.9
version: "3.9"
# Install docker on Linux
# curl -fsSL https://get.docker.com | sudo sh
# Variables to fill in:
# Line 44: <LETSENCRYPT_MAIL_ADDRESS> - your mail address for contact with Let's Encrypt
# Line 57: <TRAEFIK_DASHBOARD_ADMIN_PASSWORD> - MD5 hash of your password (use http://www.htaccesstools.com/htpasswd-generator/)
# Line 76: <POSTGRES_PASSWORD> - the password for the postgres db. Use the same during mastodon:setup!
# Lines 52, 110, 136: <DOMAIN> - e.g. social.yourdomain.com (Must have an A record pointing to your box' IP) (AAAA for IPv6 ;)
@yashodhank
yashodhank / gist:96dc27d6a1e1899b398e33819c19baa2
Created November 19, 2022 06:00 — forked from Darkflib/gist:8c40e9e0bb60883bd70fb34972b5954a
minio gateway to s3 compatible wasabi with cache + s3fs and ecryptfs
mkdir /mnt/wasabi-cache
lvcreate -L 100G -n wasabi-cache vg0
mkfs.ext4 /dev/vg0/wasabi-cache
docker run -d -p 9000:9000 --name minio-wasabi -e "MINIO_CACHE_DRIVES=/mnt/wasabi-cache" -e "MINIO_CACHE_EXPIRY=40" \
-e "MINIO_ACCESS_KEY=AKKEYKEYKEYKEYKEY" -e "MINIO_SECRET_KEY=mysecret123123123123123" \
minio/minio gateway s3 https://s3.wasabisys.com:443
@yashodhank
yashodhank / Tweet functions.gs
Created September 15, 2022 22:35 — forked from iamdaniele/Tweet functions.gs
Add public metrics
const BearerTokenKey = 'twitterBearerToken';
function onOpen() {
SpreadsheetApp
.getUi()
.createMenu('Twitter')
.addItem('Set Bearer token', 'helpers.requestBearerToken')
.addItem('Sign out', 'helpers.logout')
.addToUi();
}
@yashodhank
yashodhank / shell-setup.ps1
Created September 13, 2022 11:03 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
# ## Overview
# Instructions on how to game in the cloud inspired by:
# https://lg.io/2015/07/05/revised-and-much-faster-run-your-own-highend-cloud-gaming-service-on-ec2.html
# https://medium.com/@bmatcuk/gaming-on-amazon-s-ec2-83b178f47a34
#
# ## Additional reading
# https://gstreamer.freedesktop.org/documentation/tutorials/basic/streaming.html?gi-language=c
# https://trac.ffmpeg.org/wiki/StreamingGuide