Skip to content

Instantly share code, notes, and snippets.

View jameswhite's full-sized avatar
📁
copying files

James S White jameswhite

📁
copying files
View GitHub Profile
# LDAP Name Service Additional Schema
# http://www.iana.org/assignments/gssapi-service-names
dn: cn=schema
attributetypes: (
1.3.6.1.4.1.5322.17.2.1
NAME 'authorizedService'
DESC 'IANA GSS-API authorized service name'
EQUALITY caseIgnoreMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
X-ORIGIN 'NSS LDAP schema'
#
# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
#
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#

Keybase proof

I hereby claim:

  • I am jameswhite on github.
  • I am jameswhite (https://keybase.io/jameswhite) on keybase.
  • I have a public key whose fingerprint is 6D55 5905 545A CA1E 99CC 89B0 F520 4920 8BB7 4006

To claim this, I am signing this object:

#!/bin/bash
HOST=$1
clear
echo ${HOST}
while [ 1 ]; do ping -i2 -c1 ${HOST} > /dev/null 2>&1 && echo -n '#' || echo -n '_'; sleep 3; done
# set -g status-bg green
# set -g status-right "%H:%M" # %d-%b-%y
set -g base-index 1
set -g bell-action none
setw -g mode-keys vi
# # Prefix key.
# set -g prefix C-a
# unbind C-b
# bind C-a send-prefix
#!/bin/bash
tmux split-window -d
HEIGHT=$(tmux list-panes | grep '^1:' | sed -e 's/.*x//' -e 's/\].*//')
[ ${HEIGHT} -gt 23 ] && tmux resize-pane -U $(echo "${HEIGHT} - 23" | bc)
tmux select-pane -t 0
tmux split-window -h
tmux select-pane -t 0
WIDTH=$(tmux list-panes | grep '^1:' | sed -e 's/x.*//' -e 's/.*\[//')
[ ${WIDTH} -gt 80 ] && tmux resize-pane -R $(echo "${WIDTH} - 80" | bc)
#heathsmom <kmarcum> !fitbit
undefined:0
^
SyntaxError: Unexpected end of input
at Object.parse (native)
at /opt/hubot/scripts/google-images.coffee:39:7, <js>:52:21
at IncomingMessage.<anonymous> (/opt/hubot/node_modules/hubot/node_modules/scoped-http-client/lib/index.js:70:20)
at IncomingMessage.EventEmitter.emit (events.js:117:20)

B-cycle Widget

Screenshot

B-cycle is a bike sharing service that operates in several American cities. More information at their website. This widget allows you to use the station ID in a widget to get the current count of bikes and docks available to show on your Dashing dashboard.

Demo

A demo repository is available on GitHub and here is a live Dashboard on Heroku.