SELECT s.principals, toString(s.principals.c.elements.first.item.username) AS WAS_UserName, toString(s.principals.c.elements.first.item.name) AS Username, s.principals.c.elements.size AS PrincipalCount FROM javax.security.auth.Subject s
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
# Mirror | |
httrack.exe http://127.0.0.1:8080/index.html -O c:\websites --single-log --robots=0 --sockets=1 --timeout=3 --connection-per-second=1000 --mirror | |
# Update Mirror | |
httrack.exe http://127.0.0.1:8080/index.html -O c:\websites --single-log --robots=0 --sockets=1 --timeout=3 --connection-per-second=1000 --update | |
- set level of concurrency by: --sockets=N | |
- rate limit by: --connection-per-second=N |
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
perl -e 'print("\e]0;@ARGV\7");' $HOSTNAME |
I hereby claim:
- I am thikade on github.
- I am thikade (https://keybase.io/thikade) on keybase.
- I have a public key ASB6-F_8FoNtOtrfmJzbDZMdj1iIi7-imeiBYuZwvcQ-vAo
To claim this, I am signing this object:
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
# set WLP Home dir | |
WLP_HOME=C:\wlp | |
# path to server cmd | |
WLP_CMD=%WLP_HOME%\bin\server | |
# loop over "server list" output to get all defined Liberty servers, | |
# then execute "server status" for each server | |
# The first line reads `The following servers are defined..` and will be ignored. | |
for /f "tokens=1" %G in ('%WLP_CMD% list ^|findstr /v "^The"') DO %WLP_CMD% status %G |
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
export HISTSIZE=50000; export HISTFILESIZE=50000 | |
alias ll="ls -al" | |
alias git="git -c http.sslVerify=false " | |
alias gitc='git -c http.sslVerify=false' | |
alias ga='git add' | |
alias gb='git branch' | |
alias gc='git commit' | |
alias gco='git checkout' |
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
<!-- The problem was maven was only looking at the central repository. To add IBM's repository, you need the following in your POM: --> | |
<repositories> | |
<repository> | |
<id>Liberty</id> | |
<name>Liberty Repository</name> | |
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url> | |
</repository> | |
</repositories> |
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
fallocate -l 2G /swapfile | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab |
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
# =================================================================================== | |
# SET WAS specific headers | |
# =================================================================================== | |
ProxyPreserveHost On | |
# for handling DNS aliases use env variables derived from 'Host' HTTP header | |
SetEnvIf Host ^host1 HOST1 | |
SetEnvIf Host ^host2 HOST2 | |
RequestHeader set $WSSN host1 env=HOST1 | |
RequestHeader set $WSSN host2 env=HOST2 | |
RequestHeader set $WSSP 80 |
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
chrome://net-internals/#hsts |