Skip to content

Instantly share code, notes, and snippets.

@yacn
yacn / .kitchen.yml
Last active August 29, 2015 13:56
Files related to pull request #21 for fnichol/dvm
---
driver:
name: docker
socket: tcp://192.168.42.43:4243
use_sudo: false
provisioner:
name: chef_zero
platforms:
|ruby-1.9.3-p448| isaacs-air in ~/git/yacn/dvm/tmp
± |fix/unable-to-stop-delete-containers ✗| → dvm ssh
## .
## ## ## ==
## ## ## ## ===
/""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~
\______ o __/
\ \ __/
@yacn
yacn / keybase.md
Last active August 29, 2015 13:56

Keybase proof

I hereby claim:

  • I am yacn on github.
  • I am yacn (https://keybase.io/yacn) on keybase.
  • I have a public key whose fingerprint is E06D 5C60 71B9 64A2 C443 44D0 1C45 5F81 217D 1644

To claim this, I am signing this object:

@yacn
yacn / sensu-stuff.rb
Last active December 22, 2015 09:38
Useful helpers for sensu-cli
#!/usr/bin/env ruby
# needs sensu-cli installed and configured
require 'pp'
def sensu_cli_list_cmd(sub)
"sensu-cli #{sub} list -f single" if %w[event client].include?(sub)
end
@yacn
yacn / event.json
Last active December 24, 2015 10:09
Sensu Leading Whitespace Removal Regex. You can test via `cat evnt.json | ruby regex.rb`
{
"client":{
"name": "host01",
"address": "10.2.1.11",
"subscriptions": [
"all",
"frontend",
"proxy"
],
"timestamp": 1326390159
@yacn
yacn / gist:31f43eb48249817c32a7c4c0fc6211e6
Created April 27, 2018 04:00
Disable natural scrolling from command line
defaults write NSGlobalDomain com.apple.swipescrolldirection -bool false
@yacn
yacn / dts-to-flac.sh
Created May 22, 2018 02:03
extract a DTS track from an MKV, convert it to FLAC, remux into new MKV w/ additional FLAC track, and set FLAC as default audio track
#!/bin/bash
for ((i=1; i<=13; i++)) do
if [[ "$i" -ge 10 ]]; then
name=$(ls The\ Expanse\ -\ S02E$i*.mkv)
else
name=$(ls The\ Expanse\ -\ S02E0$i*.mkv)
fi
# extract out dts track (id: 1 all files)
@yacn
yacn / client-actions.py
Created June 24, 2018 15:02
Folding@home client, controller, viewer solus packaging
# file: client/actions.py
#!/usr/bin/python
# Created For Solus Operating System
from pisi.actionsapi import get, pisitools, shelltools
NoStrip = ["/usr"]
IgnoreAutodep = True
@yacn
yacn / librdkafka.rb
Created July 17, 2018 18:43
librdkafka.rb 0.9.2.x formula
class Librdkafka < Formula
desc "The Apache Kafka C/C++ library"
homepage "https://github.com/edenhill/librdkafka"
url "https://github.com/edenhill/librdkafka/archive/v0.9.2.tar.gz"
sha256 "c243b66956ebb196510ee0efda67825467e31b93639d5f24eb082b5d83f56824"
head "https://github.com/edenhill/librdkafka.git"
bottle do
cellar :any
@yacn
yacn / iterm2 calls
Created August 14, 2019 16:32
iterm2 callls
Script → iTerm2 8/14, 9:30:40.918 AM:
<ITMClientOriginatedMessage 0x7fa05b978e50>: {
id: 0
notification_request {
session: "all"
subscribe: true
notification_type: NOTIFY_ON_VARIABLE_CHANGE
variable_monitor_request {
name: "effectiveTheme"
scope: APP