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 bash | |
echo "Cygwin Installer - git-quick-stats" | |
chmod 0755 git-quick-stats && cp git-quick-stats /usr/local/bin/git-quick-stats | |
git config --global alias.quick-stats '! /usr/local/bin/git-quick-stats' | |
echo -e "...\ndone" |
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 bash | |
echo "Cygwin Uninstaller - git-quick-stats" | |
test -d /usr/local/bin/git-quick-stats && rm -rf /usr/local/bin/git-quick-stats | |
git config --global --unset alias.quick-stats '! /usr/local/bin/git-quick-stats' | |
echo -e "...\ndone" |
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
/** | |
INFO: | |
replace "place-your-logo-here" with a logo for your company | |
replace "place-your-domain-here" with the domain of you jenkins so it finds the jenkins.png | |
replace the hey #2980b9 with a accent-color you love | |
**/ | |
#jenkins-home-link { | |
background: url("place-your-logo-here") 100% 12px no-repeat; | |
background-size: 80px; |
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/awk -f | |
BEGIN { | |
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>" | |
print "<payroll_list>" | |
print "<payroll>" | |
} | |
/programom HUMAN/{ | |
print "</payroll>" | |
print "<payroll>" | |
} |
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 | |
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
if [ "$1" != "" ]; then | |
letter1=$(echo ${1,,}|cut -b1) | |
if [[ $letter1 == [a-zA-Z0-9] ]]; then | |
if [ -f "$dir/data/$letter1" ]; then | |
cat "$dir/data/$letter1" | awk -F":" '{print $1"||"$2}' | grep -ai "$2$1$3" | |
else | |
letter2=$(echo ${1,,}|cut -b2) |
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
## | |
## How to install mcrypt in php7.2 / php7.3 | |
## Linux / MacOS / OSX | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-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
admin account info" filetype:log | |
!Host=*.* intext:enc_UserPassword=* ext:pcf | |
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd | |
"AutoCreate=TRUE password=*" | |
"http://*:*@www” domainname | |
"index of/" "ws_ftp.ini" "parent directory" | |
"liveice configuration file" ext:cfg -site:sourceforge.net | |
"parent directory" +proftpdpasswd | |
Duclassified" -site:duware.com "DUware All Rights reserved" | |
duclassmate" -site:duware.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
var maxSecsRunning = 600; | |
var dryRun = true; | |
var currOp = db.currentOp(); | |
for (var oper in currOp.inprog) { | |
var op = currOp.inprog[oper-0]; | |
if (op.secs_running > maxSecsRunning && op.op == "command" ) { | |
print("Killing opId: " + op.opid | |
+ " running for over secs: " | |
+ op.secs_running |
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 bash | |
human_size() { | |
awk -v sum="$1" 'BEGIN { | |
hum[1024^3]="Gb"; | |
hum[1024^2]="Mb"; | |
hum[1024]="Kb"; | |
for (x=1024^3; x>=1024; x/=1024) { | |
if (sum>=x) { |