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
router bgp 64512 | |
bgp router-id 10.8.0.10 | |
no bgp ebgp-requires-policy | |
neighbor 10.8.0.1 remote-as 64567 | |
neighbor 10.8.0.2 remote-as 64512 | |
neighbor 10.8.0.3 remote-as 64512 | |
! | |
address-family ipv4 unicast | |
neighbor 10.8.0.2 route-reflector-client | |
neighbor 10.8.0.3 route-reflector-client |
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
router bgp 64512 | |
bgp router-id 10.8.0.10 | |
no bgp ebgp-requires-policy | |
neighbor 10.8.0.1 remote-as 64567 | |
neighbor 10.8.0.2 remote-as 64512 | |
neighbor 10.8.0.3 remote-as 64512 | |
! | |
address-family ipv4 unicast | |
neighbor 10.8.0.2 route-reflector-client | |
neighbor 10.8.0.3 route-reflector-client |
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
0eNrsvdtuXclyJfoveuwj1slL5G1jt4Fut7vPo2H47cAoqEqsKqJ1A0W6dsHYH+C/8IP7x/wlvRYlzjnFzMiIEXOJIuX1srFL0ooZGSOvcRnxLy9+enN7+eH66t3Niz/9y4urn9+/+/jiT///v7z4ePXru1dvjn9288eHyxd/enF1c/n2xcsX7169Pf7Xx5v3169+vby4efXuf7/468sXV+9eX/7lxZ/8X18qfnr56u3Fze31T1fvLje/DX/9p5cvLt/dXN1cXX7S4e4//vjx3e3bny6vD8IXER/e/355ffHx96ubn387CP7w/uPhR+/fHT95EHThfkgvX/xx+D++1B/S4QuHUb27/Pn4Tz4e/83f3vqt/KvXL/50+MHvV9eXd//f/fWf/nocx4PPh+Xzry9/vnp9UODn928PY3h1MMVACb8okfNBhdcH6T9/+vtwp9DN9fs3P/50+durf746/P7wo89Sfzz83eurRddfrq4/3vzYmfSfr65vbg9/slr17l9c/OOLT8P9eADmgGh2x/96++HV9Z2Wf3rxH//674ffvL+9+XCLS/3wx0G523c3P/5y/f7tj1fvDjJe/Onm+vbyr72N/fF/fr2+vHz30NTH4V9d/3x7dfPpPzemPv43Haz/8kU4/vz68nWH03GSaMT6B2Ljw78+YDwAOUIgu6eAcXyI8Z8NCP/DBOFfXr35uBPiGaRZhwwtKt8Pfb7+wj0ySYXML1dvbi6vmb1PQOL2CIPfbIL/tMNY3PjT8vE3V7/+dnP5+uKnq18vLt8cvnF99fPFh/dvLqdbYabRVugZUIRFmoU1nIkZRV5G8er66ua3t5c3B91nOPov1d8ASWMgV7n7Vtndivh4eZTx47rYLg76vP9weVhqdzq8+C+2tfZXPRIRWUuJMXthTt/BsdXcvcXDg4UzkFv1cmsC5DZALqKvd3rBBVHYe0AwpHHQC86QxhEQDGlMesEJ0jgBgiGN113pw9WHoTwqq7yRhHWBXb//6f2H99c38834cDs |
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
0eNrsvduOHElyJvwuvNyf1b+7mx8HWgG72tOlIOhuITTYZHV3YXlCsUo9DWEeQG+hC+2LzZNsZpEZEV3uFmafRbCYReXNYJpkWph/5kc7fPYvL356e3/98fbm/d2LP/3Li5vXH95/evGn//0vLz7d/PL+1dvjn939/vH6xZ9e3Nxdv3vx8sX7V++O//Xp7sPtq1+ur+5evf8/L/7y8sXN+zfXf37xJ/+Xl4qfXr96d3V3f/vTzfvrxW/DX/7p5Yvr93c3dzfXn3V4+I/ff3x//+6n69uD8EnExw+/Xd9effrt5u71rwfBHz98Ovzow/vjJw+CrtwP6eWL3w//x5fD/z184TCq99evj//k0/Hf/N29X8q/efPiT4cf/HZze/3w/91f/ukvx3E8+nyYPv/m+vXNm4MCrz+8O4zh1QGKgRJ+UiLVgwpvDtJff/778KDQ3e2Htz/+dP3rq3++Ofz+8KMvUn88/N2bm0nXn29uP9392EH6zze3d/eHP5lRffgXV//44vNwPx0Mc7Bodsf/evfx1e2Dln968dd//ffDbz7c3328x6V+/P2g3P37ux9/vv3w7seb9wcZL/50d3t//ZceY3/8n19ur6/fP4b6OPyb29f3N3ef/3MB9fG/4wH9ly/C8ee31286Ox0niUasfySWHv/1wcYDIxNkZHcONqbHNv4bg4X/YcXCP796+2mjiddMmnWWiZPKp6Gvr79wskxRWebnm7d317fM3idY4v5oBr/YBP9pA1jc+NP08bc3v/x6d/3m6qebX66u3x6+cXvz+urjh7fXq1thyqOt0DNGERZpFtZwjswo8jSKV7c3d7++u7476L5mR/9H9ReGjGNDznK3rbKHFfHp+ijjx3mxXR30+fDx+rDUHnR48Z9sa+0veksQspYSA3thTt/BsdXcCfH4aOEM5Fa93JoAuQ2Qi+jrnV5wQRT2HhAMaRz0gjOkMQGCIY2jXnCCNE6AYEjjeVf6ePNxKC+WWd5IwrzAbj/89OHjh9u79c2YDrv |
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 -ex | |
exec aws cloudwatch list-metrics \ | |
| jq -r ' | |
.Metrics | |
| reduce .[] as $item ({}; .[$item.Namespace] |= { | |
names: (.names + [$item.MetricName] | unique), | |
dimensions: (.dimensions + [$item.Dimensions[].Name?] | unique) | |
}) | |
| to_entries |
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
function hashrate() { echo $(($(fgrep 'Total: ' ${1}.out | egrep -o '[0-9]+ khash/s' | awk '{ print $1 }' | tail -n +2 | paste -sd+ | bc) / $(fgrep 'Total: ' ${1}.out | egrep '[0-9]+ khash/s' | tail -n +2 | wc -l))); } |
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
export MANPAGER="/bin/sh -c \"col -b | vim -c 'set mouse=a ft=man ts=8 nomod nolist nonu noma' -c 'runtime! macros/less.vim' -\"" |
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
<!-- | |
Original snippet is from | |
http://www.communardo.de/home/techblog/2011/05/02/improve-the-confluence-pagetree-macro-functionality/ | |
--> | |
<script type="text/javascript" > | |
AJS.toInit(function ($) { | |
var currentChildClicked = false; | |
AJS.bind("pagetree-children-loaded", function() { | |
if(!currentChildClicked) { |
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
zfs list -t snapshot | egrep --color=none '^\S+\s+[[:digit:]]+(\.[[:digit:]]+)?[GM]' | sort -rnk 2 |
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
watch -n 1 "lsof -F pan /mnt/gentoo 2> /dev/null | grep -Ev '^p' | sed -r '/a./{N;s/^a(.)\nn/\1/}' | cut -d / -f 1,5-8 | grep -Ev '^\s*$' | cut -c 1,3- --output-delimiter=' ' | sort | uniq -c | sed -r 's/ ([0-9]) /0\1 /g' | sort -r" |
NewerOlder