This file contains 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
# Be sure to `gem install twitter` first, of course... | |
require 'rubygems' | |
require 'twitter' | |
tweets = "" | |
pages = 10 # The Twitter API paginates responses... | |
# Get all the tweets to a single String, where each is surrounded in HTML | |
(1..pages).each do |page| |
This file contains 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
$:.push File.expand_path("../lib", __FILE__) | |
require 'ssh_command_runner/version' | |
Gem::Specification.new do |s| | |
s.name = "ssh_command_runner" | |
s.version = SSHCommandRunner::VERSION | |
s.homepage = SSHCommandRunner::WWW | |
s.authors = ["Pelco System Software Automation Team"] | |
s.email = ["[email protected]"] | |
s.description = "This is a RubyGem that simply wraps net-ssh with some " + |
This file contains 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
--- !ruby/object:Gem::Specification | |
name: ssh_command_runner | |
version: !ruby/object:Gem::Version | |
hash: 7 | |
prerelease: | |
segments: | |
- 3 | |
- 0 | |
- 0 | |
version: 3.0.0 |
This file contains 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
[sloveless@sloveless-mbp:opt]$ version=$(curl https://bdsm.beginrescueend.com/releases/latest.txt) && | |
> curl -O https://bdsm.beginrescueend.com/releases/sm-${version}.tar.bz2 && | |
> tar jxf sm-${version}.tar.bz2 && | |
> cd sm-${version} && | |
> ./install | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 7 100 7 0 0 15 0 --:--:-- --:--:-- --:--:-- 17 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed |
This file contains 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
hudson@systools-02:~/fsroot/workspace/FED VM (x86)$ vagrant up | |
INFO vagrant: `vagrant` invoked: ["up"] | |
DEBUG vagrant: Creating Vagrant environment | |
INFO environment: Environment initialized (#<Vagrant::Environment:0x000000012a7050>) | |
INFO environment: - cwd: /home/hudson/fsroot/workspace/FED VM (x86) | |
INFO environment: Home path: /home/hudson/.vagrant.d | |
DEBUG vagrant: Loading environment | |
INFO environment: Loading configuration... | |
DEBUG loader: Set :default = "/home/hudson/.rvm/gems/ruby-1.9.3-p0/gems/vagrant-0.9.3/config/default.rb" | |
DEBUG loader: Populating proc cache for "/home/hudson/.rvm/gems/ruby-1.9.3-p0/gems/vagrant-0.9.3/config/default.rb" |
This file contains 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
class Tester | |
def initialize(dont_do_it) | |
do_something unless dont_do_it == false | |
end | |
def do_something | |
puts "Doing it..." | |
end | |
end |
This file contains 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
Given /^a set of test results from Tim$/ do | |
@suite_result = { | |
component_name: 'stuffer', | |
suite_name: 'Stuffer Acceptance', | |
build_version: Stuffer::VERSION, | |
results: [ | |
{ | |
'Stuffer Acceptance Test Feature' => { | |
'Stuffer Acceptance Test #1' => { | |
'Step 1' => :passed, |
This file contains 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
# I was able to stream an .m4v file using VLC using this (just to verify it works). | |
# | |
# 1. Use VLC's Streaming/Exporting Wizard: | |
# a) Stream to network | |
# b) Select a stream (choose the file you want to send) | |
# c) Streaming method: UDP unicast; destination 127.0.0.1 | |
# d) (Don't transcode. ...well, unless you want to I guess?) | |
# e) Encapsulation format: MPEG_TS (my only choice) | |
# f) (No additional options) | |
# 2. Run this script. It takes 2 args: destination_ip, destination_port. |
This file contains 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
class Receiver < EventMachine::Connection | |
attr_reader :data_channel | |
def initialize | |
@data_channel = EM::Channel.new | |
end | |
def receive_data(data) | |
@data_channel << data | |
end |
This file contains 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
require 'fileutils' | |
require 'benchmark' | |
require './lib/pants' | |
Benchmark.bm do |x| | |
Pants::Logger.log = false | |
x.report("pants:") do | |
tee = Pants.new("/Users/Steveloveless/Music/iTunes/iTunes Media/Music/Ana Voog/Hollywood/01 Hollywood (Juno Reactor 7_ Mix).mp3") do |tee| |
OlderNewer