I hereby claim:
- I am devpopol on github.
- I am devpopol (https://keybase.io/devpopol) on keybase.
- I have a public key ASCWUmVA0q0MaXsiTOBpivv_XDaKxRcO8UGS2UJZFaKl_Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package com.crowdriff.engine.spouts; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import backtype.storm.spout.SpoutOutputCollector; | |
import backtype.storm.task.TopologyContext; | |
import backtype.storm.topology.OutputFieldsDeclarer; | |
import backtype.storm.topology.base.BaseRichSpout; | |
import backtype.storm.tuple.Fields; |
#!/usr/bin/ruby | |
class IPGenerator | |
public | |
def initialize(session_count, session_length) | |
@session_count = session_count | |
@session_length = session_length | |
@sessions = {} | |
end |
''' | |
Credit to Adam Presley, who's ftpsyncing fabfile I used as a starting point | |
http://adampresley.com/#!post/2013/04/how-i-deployed-a-php-app-via-ftp-using-fabric-and-git | |
''' | |
import fabric | |
import ftplib | |
import re | |
import os | |
from git import * | |
from ftplib import FTP |
require 'formula' | |
class Mysql < Formula | |
homepage 'http://dev.mysql.com/doc/refman/5.1/en/' | |
url 'http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.56.tar.gz' | |
md5 '15161d67f4830aad3a8a89e083749d49' | |
depends_on 'readline' | |
def options |
# ~/.osx — http://mths.be/osx | |
############################################################################### | |
# General UI/UX # | |
############################################################################### | |
# Set computer name (as done via System Preferences → Sharing) | |
scutil --set ComputerName "MathBook Pro" | |
scutil --set HostName "MathBook Pro" | |
scutil --set LocalHostName "MathBook-Pro" |
yum install flex net-snmp OpenIPMI autoconf automake libtool glib2-devel libxml2 libxml2-devel bzip2 bzip2-devel uuidd e2fsprogs-devel e2fsprogs-libs libtool-ltdl-devel libuuid-devel -y | |
WD=/usr/local/src | |
TAR=glue-1.0.9.tar.gz | |
UNTAR_TGT=Reusable-Cluster-Components-glue--glue-1.0.9 | |
mkdir -p $WD | |
cd $WD | |
wget http://hg.linux-ha.org/glue/archive/$TAR | |
tar xf $TAR | |
cd $UNTAR_TGT |
#!/bin/sh | |
#http://oneless.blogspot.com/2007/04/howto-erlang-textmate-bundle.html | |
LC_CTYPE=en_US.UTF-8 | |
SVN=`which svn` | |
echo Changing to Bundles directory... | |
mkdir -p /Library/Application\ Support/TextMate/Bundles | |
cd /Library/Application\ Support/TextMate/Bundles | |
if [ -d /Library/Application\ Support/TextMate/Bundles/Erlang.tmbundle ]; then |
#generates a very basic app that runs a rails action; hello world! | |
remove_file("public/index.html") | |
route("root :to => 'welcome#index'") | |
create_file "app/controllers/welcome_controller.rb", <<-RUBY | |
class WelcomeController < ApplicationController | |
def index | |
render :text => %w[the quick brown fox jumps over the lazy dog near the riverbank].sample(2).join(" ") + ' ' + Time.now.to_s(:long) | |
end | |
end |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |