This file contains hidden or 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
foo: | |
bar: baz |
This file contains hidden or 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
{ | |
"coinbasepro": { | |
"api_url": "https://api.pro.coinbase.com", | |
"config": { | |
"base_currency": "ADA", | |
"quote_currency": "EUR", | |
"live": 0, | |
"verbose": 1, | |
"sellatloss" : 0, | |
"trailingstoploss" : -0.5, |
This file contains hidden or 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
(☸ |dev:nvarz) nvarz:~/tmp$ cat unsorted.txt | |
a | |
c | |
b | |
d | |
g | |
f | |
e | |
(☸ |dev:nvarz) nvarz:~/tmp$ sort unsorted.txt > sorted.txt | |
(☸ |dev:nvarz) nvarz:~/tmp$ cat sorted.txt |
This file contains hidden or 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
Hello Aaron :) |
This file contains hidden or 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 python | |
"""A simple HTTP server with REST and json for python 3. | |
addrecord takes utf8-encoded URL parameters | |
getrecord returns utf8-encoded json. | |
Usage examples: | |
$ python http-server-post-get.py 8080 127.0.01 |
This file contains hidden or 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 | |
=head1 NAME | |
check-linux-updates - Plugin to check services. | |
=head1 SYNOPSIS | |
check-linux-updates [ OPTIONS ] |
This file contains hidden or 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
# megacli -AdpBbuCmd -GetBbuStatus -aALL -NoLog | |
BBU status for Adapter: 0 | |
BatteryType: BBU | |
Voltage: 4030 mV | |
Current: 0 mA | |
Temperature: 38 C | |
Battery State: Optimal | |
BBU Firmware Status: |
This file contains hidden or 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
# MegaCli -AdpBbuCmd -GetBbuStatus -aALL -NoLog | |
BBU status for Adapter: 0 | |
BatteryType: BBU | |
Voltage: 4030 mV | |
Current: 0 mA | |
Temperature: 38 C | |
BBU Firmware Status: |
This file contains hidden or 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 | |
dir="$HOME/screencasts" | |
[[ ! -d "$dir" ]] && mkdir -p "$dir" | |
size=$( xdpyinfo | awk '/dimensions:/ {print $2}' ) | |
name=$( date +'%b.%d_%I:%M%#p' ) | |
video="$dir"/"$name".webm | |
snd_all() { | |
ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s "$size" -r 30 -qscale 1 -i :0.0 "$video" | |
} | |
all() { |
This file contains hidden or 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
[Jan 29 2015 14:37:59] INFO 840 0.000085 127.0.0.1 rest: start de-serializing json data (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/REST.pm, line 305) | |
[Jan 29 2015 14:37:59] INFO 840 0.000068 127.0.0.1 rest: de-serializing json data finished (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/REST.pm, line 316) | |
[Jan 29 2015 14:37:59] NOTICE 840 0.000341 127.0.0.1 request finished (0.062s) (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/Server.pm, line 70) | |
[Jan 29 2015 14:39:57] NOTICE 817 0.000199 127.0.0.1 processing request (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/Server.pm, line 173) | |
[Jan 29 2015 14:39:57] NOTICE 817 0.001872 127.0.0.1 request config for host id 46 agent id remote (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/Server.pm, line 222) | |
[Jan 29 2015 14:39:57] INFO 817 0.002143 127.0.0.1 service 799 is ready (host id 46) (/usr/share/perl5/vendor_perl/Bloonix/Server.pm, line 255) | |
[Jan 29 2015 14:39:57] INFO 817 0.000142 127.0.0.1 replace %IPADDR% with 172.17.50.81 (host id 4 |
NewerOlder