Skip to content

Instantly share code, notes, and snippets.

View dictvm's full-sized avatar

ανύπαρκτο ρητό dictvm

  • contensi GmbH
View GitHub Profile
@dictvm
dictvm / ruby_k8s_democode.py
Created March 20, 2017 16:02
Example ruby code to create a secret in a Kubernetes cluster which throws an excemption
#!/usr/bin/env ruby
require 'kubeclient'
@metadata = {"name"=>{"stage"=>"prod", "app"=>"appname"}}
@secret = {"data"=>{"password"=>"Y29tcGxleF9wYXNzd29yZF9wcm9kdWN0aW9u", "user"=>"ZmNhc3Q="}}
def main()
client = kube_config()
push_secret(client)
@dictvm
dictvm / nonchoppybluetooth
Created August 18, 2016 16:38
Okayish Bluetooth configuration for OS X El Capitan to work with Bose Soundlink Mini 2
{
"Apple Bitpool Max (editable)" = 80;
"Apple Bitpool Min (editable)" = 35;
"Apple Initial Bitpool (editable)" = 35;
"Apple Initial Bitpool Min (editable)" = 53;
"Negotiated Bitpool" = 80;
"Negotiated Bitpool Max" = 80;
"Negotiated Bitpool Min" = 80;
}
- name: copy updated files to ghost directory
synchronize: src={{ item.src }} dest={{ item.dest }} checksum=yes times=no
with_fileglob:
- { src: '{{ ghost_dir_new }}/*.js', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/*.json', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/*.md', dest: '{{ ghost_dir_current }}' }
- { src: '{{ ghost_dir_new }}/core', dest: '{{ ghost_dir_current }}' }
- { src: '"{{ ghost_dir_new }}/{{ theme_dir }}"', dest: '"{{ ghost_dir_current }}/{{ theme_dir }}"' }
delegate_to: "{{ inventory_hostname }}"

Keybase proof

I hereby claim:

  • I am dictvm on github.
  • I am dictvm (https://keybase.io/dictvm) on keybase.
  • I have a public key whose fingerprint is 8C59 5604 DE53 942D 32C9 F677 03C6 8DEE B251 006E

To claim this, I am signing this object: