Skip to content

Instantly share code, notes, and snippets.

export JAVA_8_HOME=$(/usr/libexec/java_home -v1.8)
export JAVA_7_HOME=$(/usr/libexec/java_home -v1.7)
alias java7='export JAVA_HOME=$JAVA_7_HOME'
alias java8='export JAVA_HOME=$JAVA_8_HOME'
#default java8
export JAVA_HOME=$JAVA_8_HOME
lsof -i -n -P | grep
SELECT mti, de3 as pay_advice,de4 as amount,de61 as invoice_id,de39 as RC,de37 as 'reff_Code',de32 as 'issuer_code',de33 as 'forw_code', de42 as mobilePhone,de48 as merchantApikey, createdTime FROM new_mmt.message_iso where de61 in
(SELECT de61 from new_mmt.message_iso where de39='68' and
(createdTime BETWEEN '2015-10-05 00:00:00' AND '2015-11-05 00:00:00')
);
task myCopy(type: Copy) {
from('src/dist/cfg/packager')
into(installDir)
include('imam.xml')
}
implement
task installApp(type: Sync) {
<property name="008" value="MANDIRI"/>
<property name="002" value="BRI"/>
<property name="009" value="BNI"/>
<property name="022" value="NIAGA"/>
<property name="019" value="PANIN"/>
<property name="013" value="PERMATA"/>
<property name="011" value="DANAMON"/>
<property name="016" value="BII"/>
<property name="200" value="BTN"/>
<property name="028" value="OCBC NISP"/>
for file in ./ *.mp3
do
mv "$file" "${file:0:${#file}-16}.mp3"
done
@imam-san
imam-san / git under proxy.txt
Created September 30, 2016 03:15
git under proxy
git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080
change proxyuser to your proxy user
change proxypwd to your proxy password
change proxy.server.com to the URL of your proxy server
change 8080 to the proxy port configured on your proxy server
If you decide at any time to reset this proxy and work without proxy:
Command to use:
git config --global --unset http.proxy
@imam-san
imam-san / AmtDefine.java
Last active November 16, 2016 03:15
try amount string to Text in indonesian
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package amounttotext;
/**
*
* @author san
open terminal
defaults write com.apple.finder AppleShowAllFiles YES
# redirect output and errors into file output.log:
nohup some_command > output.log 2>&1&
# abbreviated syntax for bash version >= ver.4:
nohup some_command &> output.log