Skip to content

Instantly share code, notes, and snippets.


Wayne E. Seguin wayneeseguin

  • Buffalo, NY
View GitHub Profile
wayneeseguin / bibtex.png
Created Mar 29, 2018 — forked from maxogden/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
wayneeseguin /
Created Jan 24, 2017 — forked from veproza/
Getting u-blox MAX-7C GPS to work with Assisted A-GPS

Getting u-blox MAX-7C GPS to work with Assisted A-GPS

So you got your u-blox GPS and wired it up only to look at it struggling to get a valid fix? Under less than ideal conditions, it can take a better part of half an hour. That's because unlike your smartphone GPS, it doesn't have the luxury of having downloaded all the auxiliary navigation data (almanacs and the lot) out-of-band, via fast mobile connection. Instead it relies on the satellite's signal itself, which is being transmitted to you at meager 50 bits per second (I'm not missing "kilo" there, it's three orders of magnitude slower than your 2G GPRS connection).

Luckily, the u-blox receivers are fitted with what the company calls "AssistNow" capability and it does exactly the same thing your iPhone does - feeds the GPS with pre-downloaded almanacs, speeding up the acquisition process to mere seconds.

In principle, the process looks easy enough - we just need to download the data, and then push them to the receiver. Sadly, the AssistNow documentat

wayneeseguin / bosh-create
Last active Oct 23, 2018
bosh-create {release,job(s),package(s),src(s)}
View bosh-create
#!/usr/bin/env bash
# Usage:
# release <name>
# jobs <job name>...
# packages <package name>...
# src <src name>...
# This currently represents *binary* jobs by default.
# TODO: Add the concept of *script* jobs with the associated adjustments.
View gist:436806edc03bc4d52d57
yum install -y kernel-devel zfs
does not update installed package.
Nothing to do
does not update installed package.
Nothing to do
View gist:2b9d99711d34d89d6443
[root@flocker-master ~]# flocker-deploy mongodb-deployment.yml mongodb-app.yml
Traceback (most recent call last):
File "/bin/flocker-deploy", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/site-packages/", line 3011, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.7/site-packages/", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools>=1.4
View gist:2418091
while (( $# ))
parameter="$1" && shift
case "${parameter}" in
set -x
wayneeseguin / gist:1503575
Created Dec 20, 2011
SM Framework PostgreSQL Extension Set
View gist:1503575

Install PostgreSQL Extension Set

[root@sl2 ~]# sm set install postgresql
  [✔] postgresql head                         



postgres@replica$ postgresql replication configure master replica
wayneeseguin / gist:1478154
Created Dec 14, 2011
List installed then available postgresql extensions
View gist:1478154
postgres=# \dx
List of installed extensions
Name | Version | Schema | Description
plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language
(1 row)
postgres=# \dx+
Objects in extension "plpgsql"
Object Description
View gist:1226403
# bash based sh version
# partition for swap
if [[ "${MACHTYPE%%-*}" == 'x86_64' ]] # where was '$(arch)' comming from?
SWAPSIZE=$[$(free -m | awk '/^Mem:/{print $2}')*2]
if (( SWAPSIZE > 4096 ))
wayneeseguin / gist:1203167
Created Sep 8, 2011
Fission for VMWare Fusion with RVM
View gist:1203167

Fission for VMWare Fusion with RVM

If you use VMWare Fusion on OSX and would like to control it on the command line then fission by @thbishop is worth trying out!

Fission is new and only only has a few features but looks very promising to me, I will be keeping an eye on it for one.

Creating an RVM Wrapper for fission