Skip to content

Instantly share code, notes, and snippets.

View justinlynn's full-sized avatar
🎉

J justinlynn

🎉
View GitHub Profile
{
"id": 1,
"status": "success",
"type": "response",
"result": {
"Account": "rDZ8QghKF4C11pmbVAkqumPTehiF8mfHt3",
"Amount": {
"currency": "USD",
"issuer": "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
"value": "500"
<!DOCTYPE html>
<html>
<head>
<title>Mavenlink is unavailable due to scheduled maintenance. Mavenlink will return shortly.</title>
<style type="text/css">
html, body {
width: 100%; height: 100%;
margin: 0; padding: 0;
overflow: hidden;
}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 185 100 185 0 0 181 0 0:00:01 0:00:01 --:--:-- 423
100 11525 100 11525 0 0 6544 0 0:00:01 0:00:01 --:--:-- 6544
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 124 100 124 0 0 120 0 0:00:01 0:00:01 --:--:-- 179
0 0 0 0 0 0 0 0 --:--:-- 0:00:32 --:--:-- 0
@justinlynn
justinlynn / gist:2003527
Created March 8, 2012 21:25
Celery nosetest results
................................................................................................................................................................................................................................................................
* Tokyo Tyrant not installed. Will not execute related tests.
SSSSS.............................................S........................SSSSSS...S........................................................................................................................................................................................................................................................................................................................................................................................................................................Traceback (most recent call last):
File "/home/j/Projects/Github/celery/celery/utils/timer2.py", line 190, in apply_entry
entry()
File "/home/j/.virtualenvs/github_celery/lib/python2.6/sit
@justinlynn
justinlynn / elasticsearch_snippet.rb
Created February 7, 2012 22:06
elastic search recipe snippet
elasticsearch_cluster_nodes = search(:node, 'node_elasticsearch_cluster_name:#{node[:elasticsearch][:cluster_name]}')
elasticsearch_cluster_nodes_count = elasticsearch_cluster_nodes.count
elasticsearch_cluster_nodes_quorum = (0.75 * elasticsearch_cluster_nodes_count).to_i
{
:index => {
:number_of_replicas => 5
}
@justinlynn
justinlynn / rvmgitinfo.sh
Created January 27, 2012 06:22
Bash snippet to display RVM gemset and ruby information, and git status
# Based on script at http://snipplr.com/view/36724/ , modified to be more like the default shell prompt
function detect_rvm_version {
local gemset=$(echo $GEM_HOME | awk -F'@' '{print $2}')
[ "$gemset" != "" ] && gemset="@$gemset"
local version=$(echo $MY_RUBY_HOME | awk -F'-' '{print $2}')
[ "$version" != "" ] && version="$version"
local full="$version$gemset"
[ "$full" != "" ] && echo "$full"
}