Skip to content

Instantly share code, notes, and snippets.

View mackermedia's full-sized avatar

Mike Ackerman mackermedia

  • Lincoln, NE
View GitHub Profile
@mrmartineau
mrmartineau / stimulus.md
Last active July 18, 2024 07:43
Stimulus cheatsheet
@ziadoz
ziadoz / install.sh
Last active April 20, 2024 10:18
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# https://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# https://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# https://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# https://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS https://chromedriver.storage.googleapis.com/LATEST_RELEASE`
@viget
viget / om.js
Last active August 29, 2015 14:21
Hubot Spotify to Rdio Converter - Vendored Rdio API Scripts
// ./vendor/rdio/om.js
// via: https://github.com/rdio/rdio-simple/tree/master/node
var qs = require("querystring"),
url = require("url"),
crypto = require("crypto");
module.exports = om;
function om(consumer, urlString, params, token, method, realm, timestamp, nonce) {
@viget
viget / spotify_to_rdio.coffee
Last active August 29, 2015 14:21
Hubot Spotify to Rdio Converter
request = require('request')
Rdio = require('./vendor/rdio/rdio')
rdio = new Rdio([process.env.RDIO_CLIENT_ID, process.env.RDIO_CLIENT_SECRET])
module.exports = (robot) ->
robot.hear /(https?:\/\/(www.)?((play|open).spotify.com).+)/i, (msg) ->
url = msg.match[1]
urlParseResults = searchTypeAndTokenFromUrl(url)
@viget
viget / rdio_to_spotify.coffee
Last active August 29, 2015 14:21
Hubot Rdio to Spotify Converter
request = require('request')
cheerio = require('cheerio')
artist = ''
album = ''
track = ''
module.exports = (robot) ->
robot.hear /(https?:\/\/(www.)?(rd.?io).+)/i, (msg) ->

##First turntable meeting 5/19/2015

###Overview

  • RySten, David, Nate, Eli
  • Overall goals (similar to generic Pointless spiel)
  • Interested primarily in Elixir and React for this project
    • will keep an eye out for opportunities for any and all tech choices
  • Want to keep scope reasonable (+ bad-ass avatars)

###Next Steps

@christofluethi
christofluethi / gist:646ae60d797a46a706a5
Last active April 1, 2024 22:10
Convert m4a to mp3 on OS X command line using ffmpeg
brew update
brew link yasm
brew link x264
brew link lame
brew link xvid
brew install ffmpeg
ffmpeg wiki:
https://trac.ffmpeg.org/wiki/Encode/MP3
@mackermedia
mackermedia / Gemfile
Last active August 4, 2016 19:07
Capybara + JS Testing
group :test do
gem 'capybara'
gem 'poltergeist' # gem 'capybara-webkit'
gem 'database_cleaner'
end
@LBRapid
LBRapid / keypress.rb
Created September 21, 2012 18:03
Simulate keyup event in a request spec with capybara/poltergeist
keypress_script = "var e = $.Event('keyup', { keyCode: 13 }); $('#main-search-input').trigger(e);"
page.driver.execute_script(keypress_script)
@trcarden
trcarden / gist:3295935
Created August 8, 2012 15:28
Rails 3.2.7 SSL Localhost (no red warnings, no apache config)
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key