Skip to content

Instantly share code, notes, and snippets.

View joegoggins's full-sized avatar

Joe Goggins joegoggins

  • Minneapolis, Minnesota
View GitHub Profile
### Keybase proof
I hereby claim:
* I am joegoggins on github.
* I am jgoggins (https://keybase.io/jgoggins) on keybase.
* I have a public key whose fingerprint is A95F 89DC E019 BACE DDFE 80DE E54A A5BA 9A1D AB07
To claim this, I am signing this object:
@joegoggins
joegoggins / .vimrc
Last active August 4, 2023 08:21
Mac Vim .vimrc file
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" ================ General Config ====================
set number "Line numbers are good
set backspace=indent,eol,start "Allow backspace in insert mode
set history=1000 "Store lots of :cmdline history
set showcmd "Show incomplete cmds down the bottom
@joegoggins
joegoggins / spark_core_rc_car_bash_script.sh
Last active December 30, 2015 04:39
This bash script is used to invoke API commands to a spark programmed with the "SPARK RC CAR KIT" sample code on this page: http://docs.spark.io/#/shields
# About
# =====
#
# Control a Spark Core remote control car with a bash script. Why not?
#
# Spark Core Firmware Assumptions
# -------------------------------
#
# * You have registered a function in your firmware that will allow you to hit it via the API,
# something like:
@joegoggins
joegoggins / install and add gcc arm to PATH.sh
Last active December 12, 2022 06:59
How I installed GCC ARM on my Mac 10.9 Mac Book Pro
# Download the file manually from here https://launchpad.net/gcc-arm-embedded
# Note: `curl` command doesn't work
# I downloaded this one: "gcc-arm-none-eabi-4_7-2013q3-20130916-mac.tar.bz2"
# double click it to unzip it
# Make a place to install it to
mkdir /usr/local/gcc_arm
# Move the unzipped stuff there.
@joegoggins
joegoggins / install_oracle_instant_client_on_mac_os_x.sh
Last active March 1, 2019 14:14
ruby-oci8 + Oracle Instant Client install for Ruby 1.9.3 Probably works fine for other versions of Ruby or instant client too. Install ruby-oci8 + Oracle instant client in < 20 minutes http://thenerdings.blogspot.com/2013/07/install-ruby-oci8-oracle-instant-in-20.html
mkdir -p /opt/oracle
cd /opt/oracle
ls -t ~/Downloads/ | head -n 3
# instantclient-basic-macos.x64-11.2.0.3.0.zip
# instantclient-sqlplus-macos.x64-11.2.0.3.0.zip
# instantclient-sdk-macos.x64-11.2.0.3.0.zip
mv ~/Downloads/instantclient-basic-macos.x64-11.2.0.3.0.zip .
mv ~/Downloads/instantclient-sqlplus-macos.x64-11.2.0.3.0.zip .

Premise

Ruby is becoming mainstream and thus the implications of security are much more far reaching. Is there anything the Department of Homeland security can do to help support this community and the hard working open source devs that donate their free-time to keep it secure?

Key Question

How could government funding help improve security of the Ruby ecosystem?

Rough Ideas + Github Aliases

@joegoggins
joegoggins / sunspot_solr_wrapper_service.rb
Created August 14, 2012 16:55
Sunspot/Solr/Torquebox service wrapper until https://issues.jboss.org/browse/TORQUE-467 is done. Note: this approach is cheezy and crude, but works...
class SunspotSolrWrapperService
def initialize(opts={})
end
def start
puts "SunspotSolrWrapperService#start"
kill_all_solr_processes
launch_command = "nohup env RAILS_ENV=#{Rails.env} #{solr_process_to_launch} >> #{start_stop_log_file} 2>&1 &"
puts "executing: #{launch_command}"
system(launch_command)
puts "SunspotSolrWrapperService#start (return)"