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
mysql -u root -pCHANGEME mfc -e "show tables like 'ld_%'" > ld_list.txt | |
sed 's/$/,/;$s/.$/;/;1d;2i\DROP TABLE' ld_list.txt > ld_list.sql | |
mysql -u root -p mfc < ld_list.sql |
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
docker rmi $(docker images | grep "^<none>" | awk '{print $3}') |
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
require 'sinatra/base' | |
require 'logger' | |
module Sinatra | |
class CustomFormatMiddleware | |
FORMAT = %{%s - %s [%s] "%s %s%s %s" %d %s %0.4f\n} | |
def initialize(app, logger) |
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 config gitflow.feature.finish.no-ff true | |
git config --global --get gitflow.feature.finish.no-ff | |
true |
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
ps aux | grep glassfish.jar | grep -v grep | awk '{print $2 }' | xargs -r kill -9 |