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 4, 2024 11:33
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 April 17, 2024 10:39
Final Cut Pro X trial reset
#!/usr/bin/swift
import Foundation
let path = URL(fileURLWithPath: NSString(string: "~/Library/Application Support/.ffuserdata").expandingTildeInPath)
let data = try! NSData(contentsOf: path) as Data
let dictionary = try! NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as! NSDictionary
let mutableDictionary = dictionary.mutableCopy() as! NSMutableDictionary
for (key, value) in mutableDictionary {
@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;