Skip to content

Instantly share code, notes, and snippets.

View TheAshwanik's full-sized avatar
Hi.. Don't hesitate to ping me.. I would love an interesting chat about tech.

Ashwani Kumar TheAshwanik

Hi.. Don't hesitate to ping me.. I would love an interesting chat about tech.
View GitHub Profile
TheAshwanik / rds-aurora-serverless.yml
Last active January 21, 2022 14:46
Getting Started with Amazon RDS Aurora Serverless Data API
AWSTemplateFormatVersion: 2010-09-09
Type: String
Description: The RDS Aurora Serverless Database Name
Type: String
Description: The RDS Aurora Serverless Master UserName
Type: String
apiVersion: extensions/v1beta1
kind: Deployment
name: ghost
role: blog
replicas: 1
TheAshwanik /
Created October 8, 2021 09:58 — forked from insdavm/
Accessing a subnet that is behind a WireGuard client using a site-to-site setup

WireGuard Site-to-Site

Accessing a subnet that is behind a WireGuard client using a site-to-site setup

Problem Summary

We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.

Solution Summary

TheAshwanik / OSMPackageTranslation
Created September 8, 2021 15:46
OSM Package translation to SOL006
A lot of people is trying to use old OSM packages with OSM Rel 9.
It's not possible since the previous information model has been deprecated in favor of SOL006.
Because of that, when you onboard the VNF package with osm vnfd-create, osm vnfpkg-create, or similar commadns, it fails with an error.
Rel Nine was launched without a translator from the old information model to the new information model based on SOL006.
In order to translate the old packages to the new format, you can do the following:
Update OSM client and IM to use the ones from the git repo
TheAshwanik /
Created October 25, 2020 20:57 — forked from gasman/
Encoding a file as a Youtube video -
# Encode inputfile.tar.gz as a series of video frames
# Frames are written to frames/frameNNNN.png
from PIL import Image
with open('inputfile.tar.gz', 'rb') as f:
data =
WIDTH = 120
TheAshwanik / breachcompilation.txt
Created September 25, 2020 19:36
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
TheAshwanik / Delete Project on Glitch
Last active January 5, 2024 19:24
Delete Project on Glitch
While you cannot delete the project itself yet, but you can delete the source code in your project by overwriting the glitch git repository with an empty new commit. This is very important if you just planned to play around but ended up writing important code onto glitch and have a fear of getting hacked and your code getting compromised and published on the internet, or if you accidentally commited a private key to glitch and wanted to completely remove it.
on glitch website project edit page open Tools/Extras/Git,Import&Export/Write
Copy_link => is e.g.
Copy_user_name => is YOUR-RANDOMLY-GENERATED-GIT-USERNAME e.g. 1aaa1111-1111-aaa1-aa1111111111
on glitch website project edit page open Console(terminal)
git config receive.denyCurrentBranch updateInstead
on your local computer terminal
mkdir foobar
cd foobar
TheAshwanik / Open VPN with LetsEncrypt certificate
Created June 26, 2020 16:56
Open VPN with LetsEncrypt certificate
sudo certbot renew --dry-run ( use --verbose if you want )
sudo service openvpnas start ( or sudo ./sacli start )
sudo service openvpnas stop ( or sudo ./sacli stop )
TheAshwanik / first_run.ini
Created June 26, 2020 16:05 — forked from HighMacGuy/first_run.ini
OpenVPN Access Server Letsencrypt
# OpenVPN Let's Encrypt first run config file
authenticator = standalone
standalone-supported-challenges = tls-sni-01
non-interactive = True
rsa-key-size = 4096
email = ""
domains = ""
TheAshwanik / FreeRadius.html
Last active March 11, 2022 13:02
Free radius
Install and configure freeradius to use mariadb database (also for managing freeradius, we install daloRADIUS web interface).
1- Install and setup mariadb
To install mariadb, we create mariadb repository file and install required packages. here we install mariadb 10.5:
# vim /etc/yum.repos.d/mariadb.repo
then put the following content in it: