This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
// Simple bulk only Gateway | |
// url is for DR (Delivery Reports) | |
case class Service(name: String, url: String) | |
// Params your API gets in | |
case class HttpMessage(service: String, originator: String, msisdn: String, body: String) | |
// Handles MT's and MO's (maybe should contain service name for sake of simplicity) | |
case class MQMessage(guid: String, msisdn: String, originator: String, body: String) | |
// Types of DR's you could send |
tell application "System Preferences" | |
set current pane to pane "com.apple.preference.keyboard" | |
end tell | |
tell application "System Events" | |
-- If we don't have UI Elements enabled, then nothing is really going to work. | |
if UI elements enabled then | |
tell application process "System Preferences" | |
get properties | |
Dear Team | |
What are we trying to do: | |
We are trying to change -sname to -name within our existing cluster without taking the cluster down. | |
We had a call with basho and we were advised to take steps like here: | |
http://docs.basho.com/riak/1.4.9/ops/running/nodes/renaming/#Multi-Node-Clusters | |
They didn't work. |
import Prelude | |
import Control.Exception | |
main = do | |
input <- getLine | |
let parsedNum = (read input::Double) | |
result <- try (print parsedNum) :: IO (Either IOException ()) | |
case result of | |
Right () -> putStrLn "Great Success! " | |
Left e -> do |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} | |
module Main (main) where | |
import Database.Redis | |
import Control.Concurrent | |
import Control.Concurrent.Chan | |
import Data.ByteString.Char8 as B | |
import Control.Monad.IO.Class | |
import Control.Monad |
require 'redis' | |
$redis = Redis.new | |
GLOBAL = "counter_global" | |
def local | |
"counter_sec_#{Time.now.to_i}" | |
end |
lets assume you have array or urls yes ? | |
urls.each do |url| | |
check_if_counter < 50 | |
if yes | |
spawn_thread(url) | |
else | |
sleep(2) |
var exec = require("child_process").execFile; | |
var Campfire = require("./node_modules/campfire").Campfire; | |
var instance = new Campfire({ | |
ssl : true, | |
token : "key", | |
account : "domain" | |
}); | |
instance.join("577834", function(error, room) { |