Skip to content

Instantly share code, notes, and snippets.

View wayneeseguin's full-sized avatar

Wayne E Seguin wayneeseguin

  • FiveTwenty, Inc.
  • Buffalo, NY
  • 15:18 (UTC -04:00)
  • Twitter @wayneeseguin
View GitHub Profile
@wayneeseguin
wayneeseguin / bibtex.png
Created March 29, 2018 15:33 — forked from maxogden/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
@wayneeseguin
wayneeseguin / AGPS.md
Created January 24, 2017 17:10 — forked from veproza/AGPS.md
Getting u-blox MAX-7C GPS to work with Assisted A-GPS
View AGPS.md

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
wayneeseguin / bosh-create
Last active October 23, 2018 17:03
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
fastestmirror
epel-release-7-2.noarch
does not update installed package.
Nothing to do
fastestmirror
zfs-release-1-2.el7.centos.noarch
does not update installed package.
Nothing to do
fastestmirror
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/pkg_resources.py", line 3011, in <module>
parse_requirements(__requires__), Environment()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools>=1.4
View gist:2418091
while (( $# ))
do
parameter="$1" && shift
case "${parameter}" in
(-D|--debug)
set -x
;;
(-V|--verbose)
VERBOSE=true
SILENCE=""
@wayneeseguin
wayneeseguin / gist:1503575
Created December 20, 2011 22:25
SM Framework PostgreSQL Extension Set
View gist:1503575
@wayneeseguin
wayneeseguin / gist:1478154
Created December 14, 2011 19:47
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?
then
SWAPSIZE=$[$(free -m | awk '/^Mem:/{print $2}')*2]
if (( SWAPSIZE > 4096 ))
then
SWAPSIZE=4096
@wayneeseguin
wayneeseguin / gist:1203167
Created September 8, 2011 11:12
Fission for VMWare Fusion with RVM
View gist:1203167