Skip to content

Instantly share code, notes, and snippets.

@jimblom
jimblom / .bashrc
Last active September 20, 2020 19:03
Jim's .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
cd ~
wget https://gist.githubusercontent.com/jimblom/8ca3d775a7dcc67ef13130b104f17fa2/raw/c1eb10d52344a19889eea65cb9c76d9652170a7c/mkcacerts --no-check-certificate
wget https://gist.githubusercontent.com/jimblom/8ca3d775a7dcc67ef13130b104f17fa2/raw/c1eb10d52344a19889eea65cb9c76d9652170a7c/certs.sh --no-check-certificate
chmod u+x mkcacerts certs.sh
./certs.sh
rm certs.sh mkcacerts
@jimblom
jimblom / .vimrc
Last active February 5, 2021 21:48
Jim's vim configuration file
" Jim's vimrc
"
" Enable Syntax Highlighting
syntax on
" When opening a new line, and no filetype-specific indenting is enabled, keep
" the same indent as the line you're currently on. Useful for README's, etc.
set autoindent
@jimblom
jimblom / certs.sh
Last active May 23, 2022 16:27
Update Java cacerts
#!/bin/sh
# certs.sh
# use this for Yocto/Edison:
LIB=lib
# use this for WRLinux/Gateway
# LIB=lib64
if [ -f /usr/$LIB/jvm/java-8-openjdk/jre/lib/security/cacerts ]; then
mv /usr/$LIB/jvm/java-8-openjdk/jre/lib/security/cacerts \
@jimblom
jimblom / RTC_Analog_Gauge_Clock.ino
Last active October 5, 2016 14:59
Use a SparkFun DeadOn RTC and three analog panel meters to display the time
/******************************************************************************
RTC_Analog_Gauge_Clock.ino
Jim Lindblom @ SparkFun Electronics
original creation date: October 4, 2016
Uses a DeadOn RTC Module -- based around the DS3234 -- to
count time. Displays the hours, minutes, and seconds on a
trio of analog panel meters:
https://www.sparkfun.com/products/10285
@jimblom
jimblom / LSM9DS1_Simple.ino
Created April 3, 2015 17:36
LSM9DS1 Simple - Spark Core
/*****************************************************************
LSM9DS1_Simple.ino
SFE_LSM9DS1 Library Simple Example Code
Jim Lindblom @ SparkFun Electronics
Original Creation Date: February 27, 2015
https://github.com/sparkfun/LSM9DS1_Breakout
The LSM9DS1 is a versatile 9DOF sensor. It has a built-in
accelerometer, gyroscope, and magnetometer. Very cool! Plus it
functions over either SPI or I2C.
@jimblom
jimblom / Phant.cpp
Created March 24, 2015 20:31
Photon_Weather_Report
/**
* Phant.cpp
*
* .-.._
* __ /` '.
* .-' `/ ( a \
* / ( \,_ \
* /| '---` |\ =|
* ` \ /__.-/ / | |
* | / / \ \ \ \_\ jgs
@jimblom
jimblom / Edison_Firmata_Client.ino
Created February 13, 2015 17:38
Edison Firmata Client -- Control an Arduino from an Edison
/****************************************************************
Edison Firmata Client
by: Jim Lindblom @ SparkFun Electronics
created on: Februrary 12, 2015
github:
This is an Firmata client sketch for the Edison. It can
communicate with an Arduino running Firmata over a Serial
connection.
@jimblom
jimblom / Unread_Email_7_Seg.ino
Last active January 2, 2016 10:49
Unread Email Counter for the Intel/Arduino Galileo
/* Galileo Email Checker
by: Jim Lindblom
SparkFun Electronics
date: January 7, 2013
license: Beerware. Please use, reuse, and modify this code.
If you find it useful, you can buy me a beer when we meet.
This code connects a Galileo to WiFi. Then runs a Python script
- https://gist.github.com/jimblom/8292444#file-pymailcheck-py -
that lives on the Galileo's SD card to check how many unread