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
http://cm-anthill.cobaltgroup.com:8080/rest/project/169/workflows | |
http://cm-anthill.cobaltgroup.com:8080/rest/workflow/1393/buildlives | |
http://cm-anthill.cobaltgroup.com:8080/rest/buildlife/153956/sourcechanges | |
http://cm-anthill.cobaltgroup.com:8080/rest/buildlife/153956/tests?reportName=JUnit%20Report |
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
String host = "localhost"; // or some A.B.C.D | |
int port = 1234; | |
String url = "service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi"; | |
JMXServiceURL serviceUrl = new JMXServiceURL(url); | |
JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceUrl, null); | |
if (password != null) | |
jmxEnv = [(JMXConnector.CREDENTIALS): (String[])["monitor", password]] | |
def connector = JMXConnectorFactory.connect(new JMXServiceURL(serverUrl), jmxEnv) |
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
If this is your first install, automatically load on login with: | |
mkdir -p ~/Library/LaunchAgents | |
cp /usr/local/Cellar/mongodb/2.0.7-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
If this is an upgrade and you already have the homebrew.mxcl.mongodb.plist loaded: | |
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
cp /usr/local/Cellar/mongodb/2.0.7-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ | |
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist |
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
val pl = "PLFDDE01E5A88B1338" | |
val url = "https://gdata.youtube.com/feeds/api/playlists/" + pl | |
import java.io._ | |
val is = new java.net.URL(url).openStream() | |
val dis = new DataInputStream(new BufferedInputStream(is)); | |
val str = Stream.continually(dis.readLine()).takeWhile( _ != null ).fold("")( _ + _ + "\n" ) |
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
<html> | |
<head> | |
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.2.min.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/coffee-script/1.1.2/coffee-script.min.js"></script> | |
</head> | |
<body> | |
<p>Paste the Eventbrite "Sales By Ticket Type" here</p> | |
<textarea row="10" col="100" id="input"></textarea><br/> | |
<p>output</p> | |
<div>Total: <span id="total"></span></div> |
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
<build> | |
<plugins> | |
<plugin> | |
<!-- START SNIPPET: cargo-plugin --> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<configuration> | |
<wait>false</wait> | |
<container> | |
<containerId>tomcat${tomcat.major}x</containerId> |
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. 2 commands | |
adduser <username> | |
adduser <username> sudo | |
#Build essentials | |
sudo apt-get install build-essential | |
#ufw | |
ufw enable | |
ufw allow OpenSSH |
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 have launchd start mongodb at login: | |
ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents | |
Then to load mongodb now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist | |
Or, if you don't want/need launchctl, you can just run: | |
mongod | |
We recommend prepending the following path to your PATH environment | |
variable to have npm-installed binaries picked up: | |
/usr/local/share/npm/bin |
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
random = (n) -> require('crypto').randomBytes(n).toString('hex') | |
#node ubuntu | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
sudo npm install coffee-script -g | |
sudo ln -s /usr/bin/nodejs /usr/bin/node |