Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opusCommand Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| #!/usr/bin/env ruby | |
| require 'Twitter' | |
| # Create a read write application from : | |
| # https://apps.twitter.com | |
| # authenticate it for your account | |
| # fill in the following | |
| config = {consumer_key: '', consumer_secret: '', | |
| access_token: '', access_token_secret: ''} | |
| me = 'Blaze Boy' # to prevent DM yourself |
| class PageObject | |
| include Capybara::DSL | |
| include RSpec::Matchers | |
| include Rails.application.routes.url_helpers | |
| attr_accessor :path, :object | |
| def initialize(object = nil) | |
| raise "#{self.class} must be initialized with a model instance" unless !is_singular_object_page? or object | |
| @path = "#{path_name}_path" |
| // this is the background code... | |
| // listen for our browerAction to be clicked | |
| chrome.browserAction.onClicked.addListener(function (tab) { | |
| // for the current tab, inject the "inject.js" file & execute it | |
| chrome.tabs.executeScript(tab.ib, { | |
| file: 'inject.js' | |
| }); | |
| }); |
| #!/bin/bash | |
| # -------------------------------------------------------------------------------------------- | |
| # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian) | |
| # | |
| # Run from the web: | |
| # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh) | |
| # -------------------------------------------------------------------------------------------- | |
| # Set the Ruby version you want to install |
| # Export data from Microsoft Access .mdb database into .csv files | |
| # using https://github.com/brianb/mdbtools | |
| # Install with homebrew - "brew install mdbtools" | |
| class ConverterScript | |
| tables = `mdb-tables -d , your_db_name.mdb`.chop.split(",") | |
| tables.each do |table| | |
| exists = system("mdb-export your_db_name.mdb '#{table}'") | |
| `mdb-export your_db_name.mdb '#{table}' > #{table.gsub(" ", "_")}.csv` if exists |
| module Dependency | |
| def self.give_me_the_nil | |
| nil | |
| end | |
| end |