Skip to content

Instantly share code, notes, and snippets.

@thuync
thuync / VMware vSphere 6.x Licence Keys
Created May 9, 2025 14:26 — forked from CHSuworatrai/VMware vSphere 6.x Licence Keys
VMware vSphere 6 and 7 Licence Keys
VMware vSphere 6 Enterprise Plus
1C20K-4Z214-H84U1-T92EP-92838
1A2JU-DEH12-48460-CT956-AC84D
MC28R-4L006-484D1-VV8NK-C7R58
5C6TK-4C39J-48E00-PH0XH-828Q4
4A4X0-69HE3-M8548-6L1QK-1Y240
VMware vSphere with Operations Management 6 Enterprise
4Y2NU-4Z301-085C8-M18EP-2K8M8
1Y48R-0EJEK-084R0-GK9XM-23R52
@thuync
thuync / mysqldump-cron.sh
Created August 21, 2024 05:19 — forked from ebta/mysqldump-cron.sh
Backup MySQL Database Daily, Weekly and Monthly
#!/bin/bash
# Modified from: https://grahamrpugh.com/2019/01/15/mysqldump-daily-weekly-monthly.html
# Create database user with these privileges:
# SELECT, RELOAD, SHOW DATABASES, LOCK TABLES, TRIGGER, SHOW VIEW
#
# CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
# GRANT SELECT, RELOAD, SHOW DATABASES, LOCK TABLES, TRIGGER, SHOW VIEW ON *.* TO 'newuser'@'localhost';
# FLUSH PRIVILEGES;
I had a bit of trouble figuring out how to use bitnami's [sealed secrets](https://github.com/bitnami-labs/sealed-secrets) with [helm](https://helm.sh)
Here's a definition of done to help you see what I was trying to achieve.
**Definition of done**
- Single secret available for a release in a namespace, listing all secret variables
- Regular helm workflow, with no extra kubeseal commands for developers
- Encrypted secrets clearly visible in git
- Sealedsecret managed by helm

The netfilter hooks in the kernel and where they hook in the packet flow

The figure below calls out

  • The netfilter hooks
  • The order of table traversal
import http.server
import socketserver
import random
# List of proxy servers to rotate through
proxy_list = [
'http://proxy1.example.com:8080',
'http://proxy2.example.com:8080',
# Add more proxy servers as needed
]
@thuync
thuync / iterm2.md
Created June 30, 2020 03:44 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@thuync
thuync / nginx.conf
Created November 21, 2019 04:35 — forked from thoop/nginx.conf
Official prerender.io nginx.conf for nginx
# Change YOUR_TOKEN to your prerender token
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
"listing": {
"city": "Denver",
"collection_ids": null,
"country": "United States",
"has_double_blind_reviews": false,
"id": 6333040,
"instant_book_enabled": true,
"instant_bookable": false,
"lat": 39.759501027197835,
@thuync
thuync / gist:816bb54e0f19b0e3e48590656533f022
Created August 20, 2017 11:12 — forked from craigminihan/gist:b23c06afd9073ec32e0c
Build GCC 4.9.2 for C/C++ on CentOS 7
sudo yum install libmpc-devel mpfr-devel gmp-devel
cd ~/Downloads
curl ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-4.9.2/gcc-4.9.2.tar.bz2 -O
tar xvfj gcc-4.9.2.tar.bz2
cd gcc-4.9.2
./configure --disable-multilib --enable-languages=c,c++
make -j 4
make install