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
# jira - https://github.com/go-jira/jira | |
#alt-o open issue in browser | |
#alt-e edit ticket | |
#alt-c close ticket | |
#enter/ctrl-c close fzf | |
jira view $(jira list -l 1000 -q "project=SCAV AND resolution=unresolved" | fzf -d":" --preview "jira view {1} | pygmentize -l yaml -O style=solarizeddark" --bind="alt-o:execute-silent(jira browse {1}),alt-e:execute(jira edit {1} < /dev/tty > /dev/tto),alt-c:execute(jira close {1})" | cut -d: -f1) |
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
use strict; | |
use warnings; | |
use JSON qw(decode_json); | |
my %iptables; | |
foreach my $iptables_row (qx(iptables -L -n -t nat | grep DNAT)) { | |
if ($iptables_row =~ /dpt:(\d+)\s+to:([\d\.]+)/) { | |
my $port = $1; | |
my $ip = $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
#!/bin/bash | |
cyg_args () { | |
for i in $@ | |
do | |
if [ -e "$i" ]; then | |
echo $(cygpath -w "$i") | |
elif [[ $i == "-"* ]]; then | |
echo $i | |
else |
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 perl | |
use strict; | |
use warnings; | |
use feature qw(say); | |
use Module::CoreList; | |
use File::Next; | |
use HTTP::Tiny; | |
use JSON; | |
use Path::Tiny; |
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 | |
# chkconfig: 2345 95 20 | |
# description: statsite daemon | |
# processname: statsite | |
. /etc/rc.d/init.d/functions | |
exec="/root/statsite/statsite-master/statsite" | |
pidfile="/var/run/statsite.pid" | |
CONFIG="/etc/statsite.conf" |