Skip to content

Instantly share code, notes, and snippets.

View SJ50's full-sized avatar

Sameer Jain SJ50

  • Sydney,Australia
View GitHub Profile
# Namespace / Service
- A pod can access a service in its own namespace by just using service name.
A pod can access a service in a different namespace by using below format.
<svc-name>.<ns-name>.<svc>.<cluster.local>
e.g db-service.dev.svc.cluster.local
- When a service is created, a DNS entry is added automatically in this format:
db-service.dev.svc.cluster.local
Here db-service is service name, dev is namespace, svc represents service and cluster.local is domain.
@iamavnish
iamavnish / CKAD_Notes.txt
Last active March 24, 2025 20:35
CKAD Cheatsheet
# Good Links
http://www.yamllint.com/
https://youtu.be/02AA5JRFn5w
#########################################
minikube
#########################################
minikube start
minikube status
minikube stop
@dannote
dannote / final-cut-pro-trial-reset.swift
Last active March 29, 2025 18:28
Final Cut Pro X trial reset
#!/usr/bin/swift
// DISCLAIMER
// This script modifies an unencrypted file associated with the trial version of Final Cut Pro.
// Under the DMCA (17 U.S.C. § 1201), this modification does not qualify as circumvention of a technological
// protection measure (TPM), as it does not involve bypassing encryption, authentication, or similar protections.
// Distributing this code is therefore legal under the DMCA.
// This script is intended for educational and research purposes, such as exploring trial-related file structures,
@werkkrew
werkkrew / filebot-process.sh
Last active April 2, 2021 13:10
Filebot Process
#!/bin/bash
#### Media file processing script for Filebot
# This script gets triggered by some means (inotify, auditd, cron, etc.) and processes media files in some locations.
# It will run the filebot amc.groovy script against these files and output them into user defined locations for HTPC use.
#
# Known Limitations:
# Not dealing with music files, just video files. I use beets for music tagging.
# Not dealing with unique video types just yet, such as comedy specials, concerts, etc. Filebot might match it okay but I am not confident about it.
@mendelgusmao
mendelgusmao / gist:5823291
Last active March 28, 2021 08:08
BTSync / BitTorrent Sync behind nginx
# take one
# subdirectory (one server, multiple services)
location /btsync/ {
rewrite ^/btsync/gui(.*) /btsync$1 last;
proxy_pass http://127.0.0.1:8888/gui/;
proxy_redirect /gui/ /btsync/;
proxy_buffering off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;