Skip to content

Instantly share code, notes, and snippets.

@mkb
mkb / stub.yml
Last active April 4, 2017 18:02 — forked from drnic/stub.yml
spiff merge stub for redis deployment to aws ec2
---
meta:
environment: redis-warden
service_name: NAME
security_groups:
- default
job_templates:
- name: redis
release: redis
stemcell:
@mkb
mkb / bumpme
Last active January 9, 2017 18:58
Mon Jan 9 18:58:39 UTC 2017
@mkb
mkb / manifest.yml
Last active November 29, 2017 10:41 — forked from drnic/manifest.yml
BOSH deployment manifest - AWS
name: redis
director_uuid: 2a535e7b-333c-4830-8042-521eb4c163bc
releases:
- name: redis
version: latest
compilation:
workers: 6
network: redis1
reuse_compilation_vms: true
cloud_properties:
@mkb
mkb / bumpme
Last active September 26, 2016 23:57
Mon Sep 26 23:57:29 UTC 2016
@mkb
mkb / gist:4b67b81b3b0b8c1a09c9
Created September 2, 2015 22:30
Keybase.io verification
### Keybase proof
I hereby claim:
* I am mkb on github.
* I am mkb (https://keybase.io/mkb) on keybase.
* I have a public key whose fingerprint is 2A45 4DA9 FE55 E538 B033 976A EC78 7B72 78A6 7550
To claim this, I am signing this object:
@mkb
mkb / gist:9347f7ebf9c505193682
Created January 28, 2015 20:31
Console log extract following failed attempt to launch Buffer.app
1/28/15 12:25:46.658 PM secd[305]: securityd_xpc_dictionary_handler Buffer[84053] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
1/28/15 12:25:46.659 PM Buffer[84053]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements))
1/28/15 12:25:46.812 PM secd[305]: securityd_xpc_dictionary_handler Buffer[84053] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
1/28/15 12:25:46.812 PM Buffer[84053]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-i
@mkb
mkb / gist:ea429a1e2d78fb602f94
Created December 12, 2014 03:57
Return mana percentage in combat or if less than 100%
function()
local mana = math.max(0, UnitMana("player"));
local max = math.max(1, UnitManaMax("player"));
local p = math.floor(mana / max * 100)
if UnitAffectingCombat("player") or p < 100 then
return string.format("%.f", p);
else
return ""
end
end
@mkb
mkb / gist:40bf48bc401ffa0cc4d3
Last active March 3, 2022 19:12
Disable power management on Raspberry Pi USB Wifi interface

Too early to tell whther this solved my problem but recording for posterity anyway. In theory this will stop my Raspberry Pi from dropping off the network after it has been idle for a while.

Before

pi@dashboard ~ $ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"Professor Ping"
     Mode:Managed  Frequency:2.437 GHz  Access Point: B8:E6:25:9B:62:02
     Bit Rate=39 Mb/s   Tx-Power=20 dBm

Retry long limit:7 RTS thr:off Fragment thr:off

@mkb
mkb / gist:9436138
Created March 8, 2014 18:05
Example .gitignore
Gemfile.lock
tmp/*
db
config/api_keys.yml
.powrc
public/.sass-cache
@mkb
mkb / I call bullshit.md
Last active December 14, 2015 10:39
I call bullshit

There are quite a few problems with the reasoning that Yahoo had good reasons for their ban on remote work as described in an article by Business Insider.

  1. Does VPN usage have any relationship with productivity? I see no reason to think so.
  2. Did 100% of remote workers have low VPN usage or just some? Does it make sense to drive your best people away?
  3. If an employee is abusing their situation as a remote worker, will that person suddenly become a superstar when chained to a desk? Are they perhaps more likely to become resentful?
  4. Why not speak to managers of employees whose remote work is suspect?
  5. The author does not appear to have spoken with any actual Yahoo employees. Is it so hard to find a few of the 11,500 out there?
  6. I have spoken with actual Yahoo employees and they are livid.
  7. US GDP per capita is rising as is the prevalence of telecommuting. Why would this correlation