Skip to content

Instantly share code, notes, and snippets.

View feksai's full-sized avatar

Aleksei Tiufiakov feksai

  • Earth
View GitHub Profile
@feksai
feksai / kill-glassfish.sh
Created November 18, 2016 08:59
kill glassfish
ps aux | grep glassfish.jar | grep -v grep | awk '{print $2 }' | xargs -r kill -9
git config gitflow.feature.finish.no-ff true
git config --global --get gitflow.feature.finish.no-ff
true
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)
docker rmi $(docker images | grep "^<none>" | awk '{print $3}')
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