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 | |
#caso queira utilizar em ambiente unix, mudar linha abaixo para o diretório base do glassfish | |
BASE=/cygdrive/c/java/glassfish3 | |
echo ":::::::::::::Parando Glassfish:::::::::::::" | |
cd $BASE/bin | |
./asadmin stop-domain |
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
Show hidden characters
[ | |
{ "keys": ["ctrl+alt+i"], "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Package Control: Install Package"} }, | |
{ "keys": ["shift+alt+d"], "command": "set_setting", "args": {"setting": "draw_white_space","value": "all"} }, | |
{ "keys": ["shift+alt+a"], "command": "set_setting", "args": { "setting": "draw_white_space", "value": "selection" }}, | |
] |
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
find . -type d -exec chmod 755 {} \; | |
find . -type f -exec chmod 644 {} \; |
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 | |
BOLD="\033[1m" | |
RED="\033[31m" | |
N_C="\033[0m" | |
usage(){ | |
echo -e "\n\n" | |
echo -e "Usage:\n" |
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 | |
for foo in *; do mv $foo `echo $foo | tr /[A-Z]/ /[a-z]/` ; done |
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 | |
for f in {1..100} | |
do | |
java ConcurrencyTest & | |
done |
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 | |
log(){ | |
#See "$ man logger" | |
logger -i -t "CR-CNTLM" "[User:$(whoami)] $1" | |
} | |
##TODO: Impl system count of unsuccessful restarts (Redis?) | |
##MUST BE ROOT |
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
<?xml version="1.0"?> | |
<!DOCTYPE lolz [ | |
<!ENTITY lol "lol"> | |
<!ELEMENT lolz (#PCDATA)> | |
<!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;"> | |
<!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;"> | |
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;"> | |
<!ENTITY lol4 "&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;"> | |
<!ENTITY lol5 "&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;"> | |
<!ENTITY lol6 "&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;"> |
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
end_value = 0 | |
(1..52).each do |value_add| | |
end_value+=value_add | |
puts "On Week #{value_add} you has accumulated #{end_value}" | |
end | |
puts "End Value : #{end_value}" |
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
#Used to define aliases and unaliases | |
## _ _ | |
## /\ | (_) | |
## / \ | |_ __ _ ___ | |
## / /\ \ | | |/ _` / __| | |
## / ____ \| | | (_| \__ \ | |
## /_/ \_\_|_|\__,_|___/ |