Skip to content

Instantly share code, notes, and snippets.

View wayneeseguin's full-sized avatar
🤪

Wayne E Seguin wayneeseguin

🤪
View GitHub Profile
@wayneeseguin
wayneeseguin / bibtex.png
Created March 29, 2018 15:33 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@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

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)}
#!/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.
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
[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
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

Install PostgreSQL Extension Set

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

Replication

Setup

postgres@replica$ postgresql replication configure master 10.0.5.211 replica 10.0.5.212
@wayneeseguin
wayneeseguin / gist:1478154
Created December 14, 2011 19:47
List installed then available postgresql extensions
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
# 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

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