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
checklength = (url) -> | |
robot.http(result['snapshot_url']).get() (err,res,body) -> | |
size = res['headers']['content-length'] | |
checklength url unless size > 1000 | |
if size > 1000 | |
setTimeout -> | |
msg.send "Here's your graph for #{dash} #{graph}, #{msg.message.user.name}: #{result['snapshot_url']}" | |
, 3000 |
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
# Description: | |
# This script can be used to interact with VictorOps schedules, and page VictorOps teams | |
# | |
# Configuration: | |
# HUBOT_VICTOROPS_USER - The username of the hubot user in the VictorOps org | |
# HUBOT_VICTOROPS_PASS - The password of the hubot user in the VictorOps org | |
# HUBOT_VICTOROPS_REST - The API token to use | |
# Commands: | |
# hubot oncall - Lists the teams you can check (working) |
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
# Description: | |
# Query Datadog using Hubot. | |
# | |
# Configuration: | |
# HUBOT_DATADOG_APIKEY - Your Datadog API key | |
# HUBOT_DATADOG_APPKEY - Your Datadog app Key | |
# | |
# Commands: | |
# opsbot (datadog|dd|dog|graph) [dashboard] [graph] - snapshot a specific graph from a dashboard that you've already told hubot about. | |
# opsbot (datadog|dd|dog) graphs - Show the available graphs |
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
# Update glibc to your systems recommended patched version first | |
# As root, run this. If you're system is ok, you'll see nothing. Otherwise, this will tell you all infected processes. | |
for proc in $(ls /proc); do if [ -e /proc/$proc/maps ];then if [ -n "`cat /proc/$proc/maps | grep -i libc- | grep -i deleted`" ];then echo $proc; echo "CMDLINE"; cat /proc/$proc/cmdline; echo -e "CMDLINE\n"; cat /proc/$proc/maps | grep -i libc- | grep -i deleted; fi fi done |
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
rasplex Version: 0.5.1 | |
rasplex git: 55113f6ddae290c431fdf96171c28c1778fbe1ff | |
RasPlex:~ $ ls | |
lost+found | |
RasPlex:~ $ cd /flash/overlays/ | |
RasPlex:/flash/overlays $ ls | |
README.TXT hifiberry-dac-overlay.dtb iqaudio-dac-overlay.dtb pcf2127-rtc-overlay.dtb w1-gpio-overlay.dtb | |
ds1307-rtc-overlay.dtb hifiberry-dacplus-overlay.dtb iqaudio-dacplus-overlay.dtb pcf8523-rtc-overlay.dtb w1-gpio-pullup-overlay.dtb | |
hifiberry-amp-overlay.dtb hifiberry-digi-overlay.dtb lirc-rpi-overlay.dtb pps-gpio-overlay.dtb |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCd9MR4lTtEreJqyXWjVRxxMzYMUxYTLr0PMDkY52BgiBVHL+JY8Pbx7hcEaSkd9wMlun6Jverq3QYXUk+1FOOBJwC/ATZloCav0sqn9/37QrMvBPcwHgH054abKZJ0ctkpBTUa7AS+IRtco30i7J7Irzr6jbRvZ2BO6Nh1TlhGBQ0y5IOEMBhWMq9sUXBNmsNxDSGaabEX83Dkgk4pkTtr4Sk0oUpWWI94E3zttYAP6e7gRhiOn6LeYiDfTvIRkN9c/scErs1W3Pa6WY0EWLR7TeVtSWVEo5QIYbJbXRJTOCWyoMc8u5f9c82kIPG+4Ufe9wLUd7t2kVUDh6v89Ord daleha@trololol |
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/bash | |
# A POSIX variable | |
OPTIND=1 # Reset in case getopts has been used previously in the shell. | |
# Initialize our own variables: | |
unreg=0 | |
error=0 | |
max_ratio=0 | |
target_tracker="" | |
days_ago=0 |
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
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'json' | |
$stdout.sync = true | |
conf = JSON.load(File.read(ENV['CONFIG']))['aws'] | |
credentials = Aws::Credentials.new(conf['access_key_id'], conf['secret_access_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 'net/http' | |
require 'json' | |
def getPrices(path) | |
uri = URI(path) | |
res = Net::HTTP.get_response(uri) | |
data = res.body.match(/.*callback\((.*)\);/).captures[0] | |
data = data.gsub(/(\w+):/,"\"\\1\":") | |
d = JSON.parse(data) |
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
# Uncomment to enable HiFiBerry overlay | |
# NOTE: You must disable the lirc-rpi overlay (or change lirc GPIO pin) for HiFiBerry to work correctly | |
# dtoverlay=hifiberry-amp | |
# dtoverlay=hifiberry-dac | |
# dtoverlay=hifiberry-dacplus | |
# dtoverlay=hifiberry-digi |