Skip to content

Instantly share code, notes, and snippets.

docker run -tid \
--restart unless-stopped \
--name dbpedia-spotlight.en \
--mount source=spotlight-models,target=/opt/spotlight \
-p 2222:80 \
dbpedia/dbpedia-spotlight \
spotlight.sh en
@johnschimmel
johnschimmel / ffmpeg.sh
Created May 21, 2021 22:44
ffmpeg embed srt caption
ffmpeg -i funtime.mp4 -f srt -i funtime.srt -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng funtime_w_captions.mp4
@johnschimmel
johnschimmel / getFavorites.py
Last active January 8, 2019 15:20
Download flickr favorites
import flickrapi
import urllib.request
import os.path
import json
# Make it work for Python 2+3 and with Unicode
import io
try:
to_unicode = unicode
except NameError:
@johnschimmel
johnschimmel / tabCounter.js
Created July 14, 2017 19:23
count tabbing
var tabCount = 0;
function myFocusFunction() {
tabCount++;
console.log("tab #:", tabCount);
}
var x = document.getElementsByTagName('body');
x[0].addEventListener("focus", myFocusFunction, true);

User

{
  "name": "John Doe",
  "layouts": 
    { "layout-abc": { 
      "name": "Layout ABC", "active": true }
     },
 { "layout-efg": { 
@johnschimmel
johnschimmel / 1_remote_quick_view.md
Last active November 25, 2023 21:25
Biobidet BB-2000 remote control commands

Button codes

Button (row/col) ENCODING CODE
STOP (1/1) NEC 0xFCFE8000
Posterior Wash (1/2) NEC 0xFCFE4008
F Wash (1/3) NEC 0xFCFEC0C0
Dry wash area (1/4) NEC 0xFCFE2040
Vortex wash ? (2/1) NEC 0xFCFEA0D0
Retract/Nozzle shower (2/2) NEC stopped: FCFEE000
Oscillate during posterior wash(2/2) NEC 0xFCFEE008

Keybase proof

I hereby claim:

  • I am johnschimmel on github.
  • I am base2john (https://keybase.io/base2john) on keybase.
  • I have a public key whose fingerprint is 3C39 B6B4 9AA2 A91C 883D 2C23 9139 1BB2 3AD2 67D3

To claim this, I am signing this object:

@johnschimmel
johnschimmel / customtheme.less
Last active January 6, 2017 20:24
diyability custom css for Illdy theme
@base: #109026;
#header .top-header .header-logo:hover {
color: @base;
}
#header .top-header .header-navigation ul li.menu-item-has-children .sub-menu li a:hover {
color: @base;
}
@johnschimmel
johnschimmel / BGEventBus.js
Last active September 17, 2018 09:06
Pub Sub for Handling BG Messages
/******************************/
/* Bluegrass Event Bus PubSub */
/* from https://davidwalsh.name/pubsub-javascript */
/******************************/
var BGEventBus = (function(){
var topics = {};
var hOP = topics.hasOwnProperty;
return {
subscribe: function(topic, listener) {
@johnschimmel
johnschimmel / chrome_app_js.js
Last active October 18, 2018 19:09
Chrome App to Webpage communication
// be sure to update manifest to allow external connections,
// https://developer.chrome.com/extensions/messaging#external-webpage
/*
"externally_connectable" : {
"matches": ["*://diyability-capacita.appspot.com/*"]
}
*/
// Listen for incoming long lasting PORT connection from Webpage or extension