Skip to content

Instantly share code, notes, and snippets.

View cppforlife's full-sized avatar
👉
building Kubernetes tools in https://github.com/k14s

Dmitriy Kalinin cppforlife

👉
building Kubernetes tools in https://github.com/k14s
View GitHub Profile
@cppforlife
cppforlife / _cmd
Last active July 30, 2021 00:05 — forked from warroyo/cluster.yaml
ytt example
$ ytt -f rebase.yml -f input.yml -f cluster.yaml
@cppforlife
cppforlife / gist:3731520
Created September 16, 2012 08:09
log all notifications going through NSNotificationCenter
void MyCallBack (CFNotificationCenterRef center,
void *observer,
CFStringRef name,
const void *object,
CFDictionaryRef userInfo)
{
NSLog(@"---\n name: %@\n info: %@", name, userInfo);
}
CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, MyCallBack, NULL, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
@cppforlife
cppforlife / config.yml
Created May 22, 2020 20:27
append args
kind: Deployment
containers:
- name: first
args:
- something
- name: second
args:
- something
- second
@cppforlife
cppforlife / iad_default.yaml
Last active February 27, 2020 19:19 — forked from jrboelens/iad_default.yaml
ytt data/values example
#@data/values
---
pop:
name: iad
nodes:
foo:
autostart: true
pop: ""
bar:
autostart: true
@cppforlife
cppforlife / config.yaml
Last active February 18, 2020 15:30 — forked from tommituura/config.yaml
ytt templating, how to combine values from two yamls into third? NOT WORKING, HELP NEEDED.
#@ load("@ytt:data", "data")
metadata: #@ data.values.cluster_metadata
platform: #@ data.values.platform
@cppforlife
cppforlife / config.yml
Last active January 25, 2020 00:29 — forked from strophy/config.yml
ytt docker-dash configuration templating
#@data/values
---
network: testnet
@cppforlife
cppforlife / gist:1269501
Created October 7, 2011 05:09
objective-c debugging env variables
[schwa@ungoliant] ~$ export OBJC_HELP=1
[schwa@ungoliant] ~$ /Applications/Safari.app/Contents/MacOS/Safari
objc[10559]: Objective-C runtime debugging. Set variable=YES to enable.
objc[10559]: OBJC_HELP: describe available environment variables
objc[10559]: OBJC_PRINT_OPTIONS: list which options are set
objc[10559]: OBJC_PRINT_IMAGES: log image and library names as they are loaded
objc[10559]: OBJC_PRINT_LOAD_METHODS: log calls to class and category +load methods
objc[10559]: OBJC_PRINT_INITIALIZE_METHODS: log calls to class +initialize methods
objc[10559]: OBJC_PRINT_RESOLVED_METHODS: log methods created by +resolveClassMethod: and +resolveInstanceMethod:
objc[10559]: OBJC_PRINT_CLASS_SETUP: log progress of class and category setup
https://github.com/cloudfoundry/bosh-agent/commit/032c79bdfc82bb58c94b46069c66a946117b8c78
https://www.pivotaltracker.com/n/projects/956238/stories/150308840
cake layering approach
diff --git a/src/bosh-dns/dns/internal/datatests/prodlike20180124/aliases.json b/src/bosh-dns/dns/internal/datatests/prodlike20180124/aliases.json
index b943537..1ba39e2 100644
--- a/src/bosh-dns/dns/internal/datatests/prodlike20180124/aliases.json
+++ b/src/bosh-dns/dns/internal/datatests/prodlike20180124/aliases.json
@@ -1,4 +1,7 @@
{
+ "test.bosh": [
+ "*.ig-5fc2278*.net-79382b0e.dep-966b6cac.bosh"
+ ],
"_.cell.service.cf.internal": [
@cppforlife
cppforlife / example.rb
Last active December 13, 2015 16:49
Safer mock objects
MockClass.define(:MockGateway, Gateway) do
overrides :create do |name, type, otps={}|
# noop
end
end