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
cache_mem 0 | |
cache deny all | |
max_filedescriptors 524288 | |
acl SSL_ports port 443 444 563 | |
acl netgiro_ports port 4312 5312 | |
acl Safe_ports port 80 # http | |
acl Safe_ports port 443 # https | |
acl Safe_ports port 21 # ftp | |
acl ftp_access proto FTP |
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 | |
# usage : squash 3 "new comment to replace the 3 last commits" | |
active_branch=$(git branch | head -n 1) | |
branch_name=${active_branch:2} | |
commits_to_squash=$1 | |
new_commit_message=$2 | |
git reset --soft HEAD~${commits_to_squash} | |
git commit -am "${new_commit_message}" | |
git push origin +${branch_name} |
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 | |
set -e | |
PROFILE=$1 | |
SETTINGS_FILE=~/.m2/settings.xml.${PROFILE} | |
if [ -a ${SETTINGS_FILE} ] | |
then | |
cp -f ~/.m2/settings.xml.${PROFILE} ~/.m2/settings.xml | |
echo "Profile [$1] activated [~/.m2/settings.xml]" | |
else |
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 | |
echo "enter your git user.name" | |
read user_name | |
echo "enter your git user.email" | |
read user_email | |
cat > /bin/gitclone <<- EOM | |
#!/bin/bash | |
set -e | |
git clone \$1 |
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
import java.net.UnknownHostException; | |
import org.mongodb.morphia.Datastore; | |
import org.mongodb.morphia.Morphia; | |
import com.mongodb.MongoClient; | |
public class MongoConnectionManager { | |
private static final MongoConnectionManager INSTANCE = new MongoConnectionManager(); |