Skip to content

Instantly share code, notes, and snippets.

Patricio Gonzalez Vivo patriciogonzalezvivo

Block or report user

Report or block patriciogonzalezvivo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!doctype html>
<html lang="en-us">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- 3rd party libraries -->
<!-- Leaflet -->
for i in `seq -w 0.01 .031 $SEC`; do
echo $i
`glslViewer $SHADER -s $i -o frame-$COUNTER.png`
View multistep functions
float mix4smoothstep(float a, float b, float c, float d, float x ) {
return mix(mix(a,b,smoothstep(0.,.33,x)),
float mix4linear(float a, float b, float c, float d, float x ) {
View one_big_square.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Making a .deb
// Resources
// -
// -
// -
sudo apt-get install dh-make build-essential
sudo apt-get install devscripts fakeroot debootstrap pbuilder autotools-dev
# Create the packaging skeleton (debian/*)
# dh_make -s --indep --createorig
patriciogonzalezvivo /
Last active Aug 30, 2016
HTTPS to HTTP in Amazon Linux server
sudo yum update -y
# Install packages
sudo yum install -y httpd24 mod24_ssl php56 mysql55-server php56-mysqlnd
# Start the Apache web server
sudo service httpd start
patriciogonzalezvivo /
Last active May 13, 2016
Make a GeoJson line from point A to point B using mapzen's Valhalla routing engine
#!/usr/bin/env python
import requests, json, sys
import geojson
#six degrees of precision in valhalla
inv = 1.0 / 1e6;
#decode an encoded string
def decode(encoded):
patriciogonzalezvivo / toxic
Created Jun 27, 2015
Compiling a Tox Client in RPi
View toxic
git clone git://
cd libsodium
git checkout tags/1.0.0
./configure && make check
sudo checkinstall --install --pkgname libsodium --pkgversion 1.0.0 --nodoc
sudo ldconfig
cd ..
git clone git://
View ttyGPS.cpp
// Author: @patriciogv ( )
#include <stdio.h> // standard input / output functions
#include <iostream>
#include <sstream>
#include <stdlib.h>
#include <string.h> // string function definitions
#include <unistd.h> // UNIX standard function definitions
#include <fcntl.h> // File control definitions
#include <errno.h> // Error number definitions
patriciogonzalezvivo /
Last active Aug 29, 2015
Ubuntu post-installs


sudo apt-get install nmap iptraf tcpdump dstat ngrep mtr nc lftp irssi iotop

IDE station

sudo apt-get install git-core tmux mc htop vim zsh lsof
You can’t perform that action at this time.