Skip to content

Instantly share code, notes, and snippets.

Joe Goggins joegoggins

Block or report user

Report or block joegoggins

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3cc926c2cdd431d23d4f
### 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 Jul 21, 2019
Mac Vim .vimrc file
View .vimrc
" 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 Dec 30, 2015
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
View spark_core_rc_car_bash_script.sh
# 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 May 21, 2019
How I installed GCC ARM on my Mac 10.9 Mac Book Pro
View install and add gcc arm to PATH.sh
# 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 Mar 1, 2019
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
View install_oracle_instant_client_on_mac_os_x.sh
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 .
View improving and supporting ruby security.markdown

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 Aug 14, 2012
Sunspot/Solr/Torquebox service wrapper until https://issues.jboss.org/browse/TORQUE-467 is done. Note: this approach is cheezy and crude, but works...
View sunspot_solr_wrapper_service.rb
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)"
You can’t perform that action at this time.