Skip to content

Instantly share code, notes, and snippets.

{"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 / 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==
{"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 / 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)
@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 / 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)
[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/[email protected]/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>/