This file contains 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
#!/bin/sh | |
python -m json.tool |
This file contains 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
alias ll='ls -al' |
This file contains 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 Foundation | |
func getHmacValue()-> String { | |
let data = "Message" | |
let result = data.digestHMac256("secret") | |
return result | |
} |
This file contains 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
#!/bin/tcsh | |
set cmd = 'ps axo pid,ppid,user,command' | |
if ("$1" == "") then | |
$cmd | |
else | |
$cmd | grep "$1" | grep -v "grep $1" | grep -v "bin/psc" | |
endif |
This file contains 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
alias ll="ls -lahL" | |
alias con="tail -40 -f /var/log/system.log" | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' |
This file contains 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 com.demo.test.rest; | |
import com.google.inject.Guice; | |
import com.google.inject.Injector; | |
import com.google.inject.servlet.GuiceServletContextListener; | |
import com.demo.DemoRestService; | |
import com.demo.BasicAuthFilter; | |
import com.sun.jersey.guice.JerseyServletModule; |
This file contains 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
apply plugin: 'java' | |
apply plugin: 'war' | |
sourceCompatibility = JavaVersion.VERSION_1_7 | |
targetCompatibility = JavaVersion.VERSION_1_7 | |
version = '1.0' | |
repositories { | |
mavenCentral() |
This file contains 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 com.truxall.demo; | |
import com.sun.jersey.api.client.WebResource; | |
import com.sun.jersey.spi.container.servlet.ServletContainer; | |
import com.sun.jersey.test.framework.AppDescriptor; | |
import com.sun.jersey.test.framework.JerseyTest; | |
import com.sun.jersey.test.framework.WebAppDescriptor; | |
import com.sun.jersey.test.framework.spi.container.TestContainerFactory; | |
import com.sun.jersey.test.framework.spi.container.grizzly2.web.GrizzlyWebTestContainerFactory; | |
import org.junit.Assert; |
This file contains 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
org.hsqldb.util.DatabaseManagerSwing.main(new String[] { | |
"--url", "jdbc:hsqldb:mem:testdb", "--noexit" | |
}); | |
NewerOlder