This file contains hidden or 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
for file in ./ *.mp3 | |
do | |
mv "$file" "${file:0:${#file}-16}.mp3" | |
done |
This file contains hidden or 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
<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"/> |
This file contains hidden or 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
task myCopy(type: Copy) { | |
from('src/dist/cfg/packager') | |
into(installDir) | |
include('imam.xml') | |
} | |
implement | |
task installApp(type: Sync) { |
This file contains hidden or 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
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') | |
); |
This file contains hidden or 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
lsof -i -n -P | grep |
This file contains hidden or 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
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 |
This file contains hidden or 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.util.*; | |
public class Main { | |
// 23,60,36 | |
public static int getint() | |
{ | |
Random randomGenerator = new Random(); |
This file contains hidden or 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
touch Cartfile | |
github "Alamofire/Alamofire" == 2.0 | |
github "SwiftyJSON/SwiftyJSON" ~> 2.3.0 | |
carthage update --platform iOS | |
add run scrypt | |
Build Phases |
This file contains hidden or 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
clear file --> clearcache.sh | |
echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a && printf '\n%s\n' 'Ram-cache and Swap Cleared' | |
chmod 755 clearcache.sh | |
crontab -e | |
0 3 * * * /path/to/clearcache.sh |
This file contains hidden or 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
create file | |
/etc/logrotate.d/tomcat | |
content tomcat | |
" | |
/opt/tomcat7/logs/catalina.out { | |
copytruncate | |
daily | |
rotate 7 |