Skip to content

Instantly share code, notes, and snippets.

View craigboman's full-sized avatar

Craig Boman craigboman

View GitHub Profile
SELECT
--*
--p.call_number_norm,
--m.record_type_code || m.record_num AS item_record_num,
--i.item_status_code,
-- Copy --not sure we can get copy
-- p.call_number_norm,
-- Volume
-- b.best_author,
-- b.best_title,
## goal of code is to loop through csv imported python list of OCLC numbers, individually querying the OCLC holding status() api
## var number is not incrementing
for i in data:
counter = 0 #probably a better way to do this counter
number = data[counter][0]
holding = status(number)
print(number,holding)
counter += 1
@craigboman
craigboman / ffmpeg.md
Created April 30, 2019 18:14 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

(oclc-auth-python) [dude@localhost oclc-auth-python]$ sudo python setup.py install
[sudo] password for dude:
running install
running bdist_egg
running egg_info
creating authliboclc.egg-info
writing requirements to authliboclc.egg-info/requires.txt
writing authliboclc.egg-info/PKG-INFO
writing top-level names to authliboclc.egg-info/top_level.txt
writing dependency_links to authliboclc.egg-info/dependency_links.txt

Keybase proof

I hereby claim:

  • I am craigboman on github.
  • I am libroman (https://keybase.io/libroman) on keybase.
  • I have a public key ASC8xPUIjs-cIpgYoYkpEeSS704eOl0qXoa6JEXfe4KZiQo

To claim this, I am signing this object: