All yaaz options have moved to the project's wiki page: https://github.com/mapledyne/yaaz/wiki/yaaz-options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Uberdog returns a small clip of HTML for of Datadog monitors. | |
This script gets the Datadog status of monitors and creates a small clip of | |
HTML which can then be displayed by Ubersicht. This widget leverages | |
FontAwesome since they make great web icons. | |
Three environment variables to be aware of: | |
* DATADOG_API: Your DataDog API key | |
* UBERDOG_APP: The APP key specific to this app_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'datadog/statsd' | |
statsd = Datadog::Statsd.new | |
stat = 100 | |
while true do | |
puts("Running channels: #{stat}") | |
statsd.gauge('iguana.channels.running', stat) | |
sleep(10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: You may want to change 'Application' in here, or make it more general, | |
# if you're wanting your data sources to be put somewhere else. | |
powershell_script 'Custom Event Log' do | |
code "new-eventlog -logname Application -source '#{name}'" | |
guard_interpreter :powershell_script | |
not_if "[System.Diagnostics.EventLog]::SourceExists('#{name}')" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def iis_sites | |
require 'win32ole' | |
web_admin = WIN32OLE.connect('winmgmts:root\\WebAdministration') | |
site = web_admin.InstancesOf('Site') | |
site | |
rescue WIN32OLERuntimeError | |
[] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'ipaddr' | |
include_recipe 'datadog::dd-agent' | |
include_recipe 'datadog::dd-handler' | |
if node['platform'] == 'windows' | |
chef_gem 'win32-service' do | |
compile_time false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned long previous_time = 0; | |
int velocity_max = 15; | |
int rate_of_change = 25; | |
int led_max_brightness = 255; | |
int led_count = 2; | |
// This set could be improved with a struct, but not doing that to make it | |
// easier to read for someone who hasn't used structs: | |
int led_pins[2] = {5, 6}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>phrase</key> | |
<string>‽</string> | |
<key>shortcut</key> | |
<string>!?</string> | |
</dict> |
I hereby claim:
- I am mapledyne on github.
- I am mapledyne (https://keybase.io/mapledyne) on keybase.
- I have a public key whose fingerprint is 0922 86AD E7F1 228C 17FD E7CF EF50 1549 2E77 3ADD
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
brew install calc | |
brew install cowsay | |
brew install dockutil | |
brew install fish | |
brew cask install python | |
brew cask install python3 | |
brew cask install imagemagick |
NewerOlder