Skip to content

Instantly share code, notes, and snippets.

[2019-12-05 22:14:05] __rvm_make
__rvm_make ()
{
\make "$@" || return $?
}
current path: /Users/<ommitted>/.rvm/src/ruby-2.3.8
GEM_HOME=/Users/<ommitted>/.rvm/gems/ruby-head
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/<ommitted>/.rvm/gems/ruby-head/bin:/usr/local/sbin:/usr/local/opt/llvm@6/bin:/usr/local/opt/openssl@1.1/bin:/Users/<ommitted>/Library/Python/3.7/bin:/usr/local/opt/node@8/bin:/Users/<ommitted>/.sdkman/candidates/gradle/current/bin:/Users/<ommitted>/.rvm/gems/ruby-head/bin:/Users/<ommitted>/.rvm/gems/ruby-head@global/bin:/Users/<ommitted>/.rvm/rubies/ruby-head/bin:/Users/<ommitted>/Vertx/vert.x-2.1.5/bin:/Users/<ommitted>/Go/workspace/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/Users/<ommitted>/.rvm/bin:/Users/<ommitted>/.rvm/bin
GEM_PATH=/Users/<ommitted>/
@adamthedeveloper
adamthedeveloper / Rakefile
Created July 26, 2018 20:20 — forked from schickling/Rakefile
Activerecord without Rails
require "active_record"
namespace :db do
db_config = YAML::load(File.open('config/database.yml'))
db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'})
desc "Create the database"
task :create do
ActiveRecord::Base.establish_connection(db_config_admin)
@adamthedeveloper
adamthedeveloper / install_ffmpeg_ubuntu.sh
Created December 17, 2017 06:37 — forked from xdamman/install_ffmpeg_ubuntu.sh
Install latest ffmpeg on ubuntu 12.04 or 14.04
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
# Remove any existing packages:
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev
# Get the dependencies (Ubuntu Server or headless users):
sudo apt-get update
@adamthedeveloper
adamthedeveloper / out.log
Created September 7, 2017 04:34
Mac + RVM + Rubinius = FAIL!
[2017-09-06 21:04:32] /Users/adammedeiros/.rvm/wrappers/ruby-2.4.0@rubinius/rake
current path: /Users/adammedeiros/.rvm/src/rbx-3.84
PATH=/Users/adammedeiros/.rvm/bin:/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/opt/openssl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/adammedeiros/work/bin:/Users/adammedeiros/work/bin
command(3): /Users/adammedeiros/.rvm/wrappers/ruby-2.4.0@rubinius/rake install --trace
** Invoke install (first_time)
** Invoke build:build (first_time)
** Invoke machine/vm (first_time)
** Invoke machine/gen/config_variables.h (first_time)
** Invoke library/rubinius/configuration.rb (first_time, not_needed)
** Invoke config.rb (first_time, not_needed)
{"Results"=>
[{"Id"=>550695552,
"Name"=>"2 Port 2.1A UL Certified USB Wall Adapter",
"Description"=>
"UL certified. Two port USB wall adapter makes charging your phone and other devices handy. Large imprint area for maximum visibility. Each port capable of charging @ 2.1A. Dual usage @ 1A. Max output 2.1A.",
"Number"=>"EU529",
"ImageUrl"=>"media/24664935",
"VirtualSampleImages"=>
[{"Id"=>24664935, "ImageUrl"=>"virtualsample/24664935"}],
"ConfigId"=>"",
@adamthedeveloper
adamthedeveloper / esp-brilliant-tampermonkey.js
Last active August 21, 2020 20:09
Tamper monkey script for transferring ASI Product data to Brilliant Catalog.
// ==UserScript==
// @name Create product in brilliant
// @namespace http://espweb.asicentral.com
// @version 0.3
// @description Adds a button to ASI's esp detail pages which takes users back to the brilliant site allowing them to create the product there.
// @author Adam Medeiros
// @match *://espweb.asicentral.com/Default.aspx*page=ProductDetails*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
{"Id"=>4988119,
"Name"=>"letter opener",
"Description"=>
"Rectangular shaped letter opener. Solid design, safe, sharp stainless blade. Designed for promo gift, desktop, office, corporation, school, safety program, home.",
"ShortDescription"=>
"Rectangular shaped letter opener with sharp stainless blade, 3 1/4\" x 3 1/8\".",
"Number"=>"LO505",
"Numbers"=>["LO505"],
"ImageUrl"=>"media/5606585",
"Supplier"=>
@adamthedeveloper
adamthedeveloper / json
Created April 7, 2017 19:10
asi_result_for_bel_promo_trophy.json
{"Id"=>550201890,
"Name"=>"Spear Glass Trophies",
"Description"=>
"Cut right to the heart of the matter when you acknowledge the accomplishments of your employees with these Spear Glass Trophies. These exquisite blue and clear awards have a 2.25\" x 3\" imprint area that you can customize using laser engraving or you can order them blank. The glass trophies measure 9\" H x 5.75\" W x 0.4\" thick and will be the envy of the office. They are perfect for your top sales people, employee of the month and any other special achievements in the company. Show your employees that you value everything they bring to the business!",
"ShortDescription"=>"Spear Glass Trophies",
"Number"=>"ADMAW16",
"Numbers"=>["ADMAW16"],
"ImageUrl"=>"media/20816194",
"VirtualSampleImages"=>
[{"Id"=>20816194,
{
"Id": 550518851,
"Name": "Tri-Band Ballpoint Pen",
"Description": "Tri-band ballpoint pen with silver trim and black rubber grip for writing comfort and control. These tri-band ballpoint pens include plunger action. These tri-band ballpoint pens are also available in a variety of new colors! Tri-band ballpoint pens are a great giveaway for any event or trade show. Ensure your clients remember you and write away the competition with these great ballpoint pens!",
"ShortDescription": "Tri-band ballpoint pen with silver trim and black rubber grip. Rubber grip and silver trim on tri-band ballpoint pens.",
"Number": "AZ898",
"Numbers": [
"AZ898"
],
"ImageUrl": "media/22117985",