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
server { | |
# General | |
# Listen on both ipv4 and ipv6 | |
listen 80; | |
listen [::]:80; | |
server_name MYDOMAIN.COM; |
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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_TELEGRAF_ON BRIX", | |
"label": "Telegraf on BRIX", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "influxdb", | |
"pluginName": "InfluxDB" | |
} |
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
# Global tags can be specified here in key="value" format. | |
[global_tags] | |
# dc = "us-east-1" # will tag all metrics with dc=us-east-1 | |
# rack = "1a" | |
## Environment variables can be used as tags, and throughout the config file | |
# user = "$USER" | |
# Configuration for telegraf agent | |
[agent] |
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/perl | |
# | |
# Monitor mod_pagespeed statistics | |
# | |
# pagespeed_cache | |
# pagespeed_css | |
# pagespeed_js | |
# pagespeed_html | |
# pagespeed_img | |
# pagespeed_bw |
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
set serverIP to "192.168.1.80" --change to your server IP | |
--Your first favorite has an item_id of 0, the second=1, third=2, etc. | |
--So, to play your first favorite: | |
do shell script "printf \"favorites playlist play item_id:0\nexit\n\" | nc " & serverIP & " 9090" | |
--Second: | |
--do shell script "printf \"favorites playlist play item_id:1\nexit\n\" | nc " & serverIP & " 9090" |
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
--No extra requirements | |
set serverIP to "192.168.1.80" --change to your server IP | |
set title to do shell script "printf \"current_title ?\nexit\n\" | nc " & serverIP & " 9090 | cut -d ' ' -f 3 | perl -pe 's/\\%(\\w\\w)/chr hex $1/ge'" | |
set artist to do shell script "printf \"artist ?\nexit\n\" | nc " & serverIP & " 9090 | cut -d ' ' -f 3 | perl -pe 's/\\%(\\w\\w)/chr hex $1/ge'" | |
set album to do shell script "printf \"album ?\nexit\n\" | nc " & serverIP & " 9090 | cut -d ' ' -f 3 | perl -pe 's/\\%(\\w\\w)/chr hex $1/ge'" | |
if album is equal to "" then | |
return "Playing " & title | |
else | |
return "Playing " & title & " by " & artist & " from " & album |
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
--Requires Twitter Scripter: http://mousedown.net/mouseware/TwitterScripter.html | |
--Requires a Twitter account to be set up in System Prefs > Internet Accounts | |
--Change "your_Twitter_name" in the line below to your Twitter name | |
--Save as Application and trigger with a keyboard shortcut | |
tell application "Twitter Scripter" | |
set fipNow to fetch user timeline for username "FipNowPlays" using account "your_Twitter_name" returning entries 1 | |
set nowPlayingTweet to |text| of item 1 of response of fipNow |
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: only displays notification when run, e.g. via an Alfred keyboard shortcut | |
--Requires JSON Helper: http://www.mousedown.net/mouseware/JSONHelper.html | |
-- | |
--Settings | |
set serverIP to "192.168.1.1" -- your server IP | |
set portNo to "9000" | |
set playerID to "xx:xx:xx:xx:xx:xx" -- your player MAC address in Server Settings | |
--get status feed | |
set statusFeed to do shell script "curl --data '{\"id\":1,\"method\":\"slim.request\",\"params\":[" & "\"" & playerID & "\"" & ",[\"status\",\"-\",1]]}' http://" & serverIP & ":" & portNo & "/jsonrpc.js" |
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 | |
# | |
# Monitor VPS disk latency, seekrate and speed via ioping | |
# | |
# Requirements: | |
# | |
# ioping 0.8: https://code.google.com/p/ioping/ | |
# ioping path = /usr/bin/ioping (symlink it if it's somewhere else) | |
# | |
# Parameters understood: |
NewerOlder