Skip to content

Instantly share code, notes, and snippets.

# frozen_string_literal: true
$:.unshift "./config"
$:.unshift "./lib"
require "yaml"
solr_config = YAML.load_file("config/blacklight.yml")[(ENV["RAILS_ENV"] || "development")]
solr_url = ERB.new(solr_config["url"]).result
# A sample traject configuration, save as say `traject_config.rb`, then
# run `traject -c traject_config.rb marc_file.marc` to index to
#!/usr/bin/env ruby
# frozen_string_literal: true
require File.expand_path("../../config/environment", __FILE__)
indexer = Traject::Indexer.new
indexer.load_config_file("./lib/traject/indexer_config.rb")
Coding for TU Library with love, ruby, rails, blacklight, solr and vim (etc.). Living la vida father, husband, dancer, poet, clown. My mind -> my opinions.
create
create README.md
create Rakefile
create .ruby-version
create config.ru
create .gitignore
create Gemfile
run git init from "."
Initialized empty Git repository in /private/var/folders/l8/8ljsh0p103d9m4gg3866jlhh0000gp/T/d20181002-80571-1d5ukjn/internal/.git/
create package.json
YR 2016
K1 Drori, Amit
K1 Puppetry
K1 Visual Artists
K1 Theater
K1 Animation
K1 Philosophy
K1 Open Access
K1 Robotics
K1 Robot As Puppet
LEADER 01125nam 22003131i 4500001 991036900679403811
005 20170821193903.0
006 m o d |
007 cr -n---------
008 131211t20132013enk o 000 0 eng d
020 0-85765-930-8
020 0-85765-932-4
035 (CKB)2550000001159993
035 (EBL)1728103
035 (SSID)ssj0001168867
LEADER 03484cam a22004814i 4500001 9564935
005 20160427140130.0
008 150709s2015 enk b 001 0 eng
010 2015020818
035 (OCoLC)ocn914156896
040 DLC |beng |erda |cDLC |dYDX |dCDX |dYDXCP |dIQU |dOCLCO |dVP@ |dOCLCQ
020 9781781689486 |q(paperback)
020 1781689482 |q(paperback)
020 |z9781781689387 |q(ebook (us))
020 |z9781781689394 |q(ebook (uk))
LEADER 04241cam a2200553Li 4500001 a12686634
003 SIRSI
005 20180804003001.0
008 180203t20192019stka sb 00| 0 eng d
020 |z9780323417457 |q(hardcover)
020 |z0323417450 |q(hardcover)
020 0323430171 |q(electronic book)
020 9780323430173 |q(electronic book)
035 (OCoLC)1021811256
035 (CSt-L)L336714
@dkinzer
dkinzer / addUser
Created February 23, 2018 14:33 — forked from wataru420/addUser
Jenkins init script for centos
/usr/sbin/groupadd -g 30119 jenkins
/usr/sbin/useradd -u 30119 -g jenkins jenkins
mkdir /home/jenkins
chown -R jenkins. /home/jenkins

SSH Tunneling A Multiple Node Span With MacOsX

I needed to get some work done on a jenkins server that unfortunately was behind a firewall, and was inaccessible even with my VPN turned on.

Fortunately I had SSH access to a machine inside the firewall that also had SSH access to the jenkins server. So I knew that there was a way to use SSH tunnelling to get to the jenkins server.

Tunnel between the localhost and the first node.