Skip to content

Instantly share code, notes, and snippets.

View littlebee's full-sized avatar

Bee Wilkerson littlebee

  • seattle, wa
View GitHub Profile
#!/bin/bash
# This script is meant to be run from your local development machine.
# Run this first to make the other upload script not prompt you for
# your ssh keys.
#
#
if [ "$1" == "" ]; then
@littlebee
littlebee / gist:72f2e324ab9452d24c5756ef063e7b44
Created September 12, 2022 01:33
Install Opencv on Raspian Bullseye 64bit OS Lite headless
#!/bin/bash
log 'Installing opencv & deps (https://singleboardblog.com/install-python-opencv-on-raspberry-pi/)'
sudo apt-get install -y libhdf5-dev libhdf5-serial-dev python3-pyqt5 libatlas-base-dev
sudo pip3 install --upgrade pip setuptools wheel
# see (https://www.piwheels.org/project/opencv-contrib-python/)
sudo pip3 install opencv-contrib-python-headless==4.5.5.62
@littlebee
littlebee / gist:0668b08e8280adb335131270a20e9b88
Created September 12, 2022 01:31
Install Opencv on Raspbian Buster
#!/bin/bash
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y libatlas-base-dev libjasper-dev libqtgui4 libqt4-test libhdf5-dev
sudo pip3 install flask opencv-contrib-python==4.5.5.62 imutils opencv-python==3.4.2.17 numpy==1.14.5
@littlebee
littlebee / Upload SSH public key
Last active September 7, 2021 04:01
Upload SSH public key file
# find a place in your path
echo $PATH
# and then copy this file to it
@littlebee
littlebee / cloudSettings
Last active December 31, 2019 00:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-12-31T00:45:21.279Z","extensionVersion":"v3.4.3"}
@littlebee
littlebee / exampleTest.js
Last active June 21, 2018 20:45
Test runner script that loads Mocha, Chai, jsDom, + a few Chai plugins, + pollyfills for ES6 and advance DOM features with support for React 16
import React from 'react'
import ReactDOM from 'react-dom'
// TODO : I tried to make enzyme work here, but the menu attaches two
// event handlers on keyup and mouseup to tell when the user has
// clicked off or pressed escape and submenus need to be closed.
// When running from Enzyme mount(), document didn't see to exist?
// import {mount} from 'enzyme'
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@littlebee
littlebee / gist:1855161
Created February 17, 2012 20:06
Test selector visible or not with cucumber
Then /^I should( not)? see selector "([^\"]*)"/ do |negate, selector|
wait_until do
its_hidden = page.evaluate_script("$('#{selector}').is(':hidden');")
its_not_in_dom = page.evaluate_script("$('#{selector}').length == 0;")
(its_hidden || its_not_in_dom).should (negate ? be_true : be_false)
end
end