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
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"> | |
<charset>UTF-8</charset> | |
<pattern>%date{ISO8601} %-5.5p [%15.15t] [%30.30c:%-5line] %X{indent}%m%n</pattern> | |
</encoder> |
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
# Components | |
import Component from '@ember/component'; | |
const CApproveTransactionModalButton = Ember.Component.extend({ | |
actions: { | |
... | |
}, | |
didInsertElement: function() { | |
Ember.run.scheduleOnce('afterRender', this, function() { |
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
// Override ID of Component | |
// my-component.hbs | |
<div id={{elementId}}> | |
... | |
</div> | |
// index.hbs | |
{{my-component elementId="my-custom-div-id"}} |
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
keytool -import -trustcacerts -file sit-csp.cer -alias SIT_CERT -keystore $JAVA_HOME/jre/lib/security/cacerts |
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
# execute this command in a linux box | |
openssl s_client -connect a.b.com:8543 | |
# look for text that looks like | |
-----BEGIN CERTIFICATE----- | |
MIIG3TCCBcWgAedewdewdewdqewfqewfrewfrefreAQUFADCBzDE2MDQG | |
... | |
sIIG3TCCBcWgAedewdewdewdqewfqewfrewfrefreAQUFADCBzDE2refr | |
-----END CERTIFICATE----- |
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
# find files not belonging to a particular user | |
# ! chinboon | |
find . \! -user chinboon -print | |
# find files not belonging to a particular user and group | |
# ! chinboon:staff | |
find . \! -user chinboon -group staff -print |
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
# MAC | |
# +30 is older than 30 day, -30 would be modified in last 30 days. | |
# mtime n modified time (n* 24 hours) | |
# atime n accessed time (n* 24 hours) | |
# mmin n modified time (n * 1 min) | |
# find all files modified since 2 hours ago | |
find . -type f -mtime -2 -exec ls -l {} \; |
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
Settings > Terminal | |
"C:\Git\bin\sh.exe" --login -i |
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
-- to list the files (relative path) | |
unzip -l archive.zip | |
-- to read contents | |
unzip -c archive.zip file1.txt | less |
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
# windows | |
git config --global credential.helper wincred | |
# mac | |
git config --global credential.helper osxkeychain |
NewerOlder