Skip to content

Instantly share code, notes, and snippets.

View shurab's full-sized avatar

Alexander Babichev shurab

  • GE Digital
  • San Ramon, CA
View GitHub Profile
build directory includes
- rhoconnect source directory (rhoconnect-3.0.0.beta3/)
- script rho-install.sh
- Makefile
----------------------------------------
script rho-install.sh
----------------------------------------
#!/bin/sh
@shurab
shurab / async_loop.sh
Created November 14, 2013 19:25
Mutex error while using EM.defer with Ruby 2.0.0
#!/bin/bash
failed=0
COUNT=25
for (( i=1; i <= $COUNT; i++ ))
do
echo "Test # $i:"
rspec ./async_spec.rb
if (($?)) ; then
failed=$((failed+1))
@shurab
shurab / duo_api_gist.rb
Last active June 1, 2021 17:01
The Ruby way to interact with Duo Admin API
#!/usr/bin/env ruby
require 'base64'
require 'openssl'
require 'json'
require 'time'
# See Duo Admin API details here: https://duo.com/docs/adminapi#authentication
# TODO: replace URL/user/ikey/skey by your values
user = '502814310'