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
{ | |
"__inputs": [ | |
{ | |
"name": "DS_SKYDIVE", | |
"label": "Skydive", | |
"description": "", | |
"type": "datasource", | |
"pluginId": "skydive", | |
"pluginName": "Skydive" | |
} |
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
sudo -s -u prod jcmd 24944 help |
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
jstatd.policy: | |
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; | |
jstatd -p 1234 | |
-J-Djava.security.policy=jstatd.policy |
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
git filter-branch --env-filter ' | |
newname="Sylvain Afchain" | |
newemail="[email protected]" | |
GIT_AUTHOR_EMAIL="$newemail" | |
GIT_COMMITTER_EMAIL="$newemail" | |
GIT_AUTHOR_NAME="$newname" | |
GIT_COMMITTER_NAME="$newname"' HEAD~1..HEAD |
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
#define TEST_F(X) void X(int *ret); const char *wrapper_##X(int *ret) {\ | |
const char *test_name = get_test_name(__FUNCTION__); \ | |
X(ret);\ | |
return test_name; \ | |
} \ | |
void X(int *ret) | |
#define TEST(X) wrapper_##X | |
typedef const char *(*TEST_SUITE)(int *); | |
typedef const char *(*TEST)(int *); |
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
echo -n 00-; dd bs=1 count= if=/dev/random 2>/dev/null | hexdump -v -e '/1 "-%02X"' |
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 | |
if [ -z "$1" ] | |
then | |
echo "Usage: $0 <java process name>" | |
exit 1 | |
fi | |
PID=`jps | grep $1 | awk '{print \$1}'` | |
jmap -heap $PID 2>/dev/null > /tmp/jheap |
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
ip monitor link | awk -F ': ' '/qvb|qvo|qbr/{system("ethtool --offload "$2 " tso off gso off tx off ufo off gro off")}' |
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
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
export PS1="\[\033[00m\]\u@\h\[\033[01;33m\] \w \[\033[31m\]\$(parse_git_branch)\[\033[00m\]$\[\033[00m\] " |
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 | |
# global | |
if [ -z "$DOCUMENT_ROOT" ] | |
then | |
DOCUMENT_ROOT=/var/www | |
fi | |
# private vars | |
_request="" |