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
| package my.maylab.amba; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| @SpringBootApplication | |
| public class AuthApplication { | |
| public static void main(String[] args) { | |
| SpringApplication.run(AuthApplication.class, args); |
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
| API proxy | |
| multi-region resiliency | |
| insights | |
| stress testing | |
| canary testing |
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
| [user] | |
| name = Fairuz Wan Ismail | |
| email = [email protected] | |
| [alias] | |
| lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit | |
| lg2 = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| lgl = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -10 | |
| d = diff | |
| dc = diff --cached | |
| a = add |
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
| + [liberator.representation :only [Representation ring-response]] | |
| +(defn add-header [response header-key header-value] | |
| + (assoc-in response [:headers header-key] header-value)) | |
| + :as-response (fn [d ctx] | |
| + (do | |
| + (info (liberator.representation/as-response d ctx)) | |
| + (-> (liberator.representation/as-response d ctx) |
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
| yum install java-1.7.0-openjdk java-1.7.0-openjdk-devel | |
| ls -l /usr/lib/jvm/ | |
| export JAVA_HOME=/usr/lib/jvm/jre-1.7.0-openjdk.x86_64 |
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
| java -Xms3g -Xmx3g -cp "D:\src\network-inventory\PersistenceAbstractionAPI\dist\PersistenceAbstractionAPI.jar;D:\src\network-inventory\PersistenceServiceRemoteInterfaces\dist\PersistenceServiceRemoteInterfaces.jar;D:\lib\neo4j-spatial\geotools\gt-api-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-coverage-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-cql-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-data-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-main-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-metadata-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-opengis-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-process-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-referencing-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-render-8.4.jar;D:\lib\neo4j-spatial\geotools\gt-shapefile-8.4.jar;D:\lib\wax\wax_1.0.5.jar;D:\lib\neo4j-spatial\blueprints-core-1.2.jar;D:\lib\neo4j-spatial\gremlin-groovy-1.5.jar;D:\lib\neo4j-spatial\gremlin-java-1.5.jar;D:\lib\neo4j-spatial\jsr-275-1.0-beta-2.jar;D:\lib\neo4j-spatial\jts-1.12.jar;D:\lib\neo4j-spatial\neo4j-graph-collections |
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
| var fileTransfer = new FileTransfer(); | |
| fileTransfer.onprogress = function(result){ | |
| var percent = result.loaded / result.total * 100; | |
| percent = Math.round(percent); | |
| console.log('Downloaded: ' + percent + '%'); | |
| }; | |
| fileTransfer.download(remoteFile, localPath, successCallback, errorCallback); |
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
| function deferredTimer(success) { | |
| var deferred = $q.defer(); | |
| $timeout(function() { | |
| if (success) { | |
| deferred.resolve({ message: "This is great!" }); | |
| } else { | |
| deferred.reject({ message: "Really bad" }); | |
| } | |
| }, 1000); |
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 GITAWAREPROMPT=~/bin/git-aware-prompt | |
| source $GITAWAREPROMPT/main.sh | |
| export PS1="\u@\h \w \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
| git://github.com/jimeh/git-aware-prompt.git |
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
| adb logcat -c | |
| adb logcat CordovaLog:D *:S |