Skip to content

Instantly share code, notes, and snippets.

View Nixes's full-sized avatar
🤖
🐲

Callum Bryant Nixes

🤖
🐲
View GitHub Profile
@Nixes
Nixes / gist:a5732e7440902991255281eea2ac467f
Created January 18, 2017 05:16
Commands to change git / github commit email and user references
git pull
git filter-branch -f --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "some_old_email@mail.com" ]; then GIT_AUTHOR_EMAIL=some_new_email@mail.com; GIT_AUTHOR_NAME="Github_username"; GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL; GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
git push origin master --force
@Nixes
Nixes / libserialport example.c
Last active February 25, 2021 02:55
libserialport example
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <unistd.h> // for sleep function
#include <libserialport.h> // cross platform serial port lib
const char* desired_port = "COM8";
@Nixes
Nixes / WIFIBroadcast_log.md
Last active April 29, 2017 12:08
Experimental Log for WIFIBroadcast

TLDR

  • Gstreamer on the receiving end has terrible latency, DO NOT USE
  • Mplayer works great
  • Mplayer -nocache cuts 28ms

Good command line options

best fec settings -b 8 and -r 16 using 24M rate = basically indestructible video feed: -80 db is maximum reliable video feed signal so far

using -b 8 -r 4 -75db max

@Nixes
Nixes / Easy SQLite Gogs Installation for Ubuntu and Debian.md
Last active August 3, 2019 12:34
Easy SQLite Gogs Installation for Ubuntu and Debian

This is a tutorial that describes how to set up a private git (github) server for a smallish development team.

  • Download GOGS binary Zip File
  • Unzip to folder
  • Run: sudo apt-get install sqlite3
  • Run GOGS: ./gogs web
  • Goto install page: http://hostname:3000/install
  • Set to use sqlite3 as the database backend
  • Set USER to run as, preferrably not root if it will be internet facing.
  • Set Database file location (Make sure database file location is set to a folder where that same user has write permissions)
@Nixes
Nixes / rust piston dependencies.md
Last active February 13, 2016 02:26
Fixing rust piston dependencies on windows

General instructions for fixing the dependencies required for piston on windows:

  • install msys2
  • configure msys2 database (look for some general config instructions)
  • install relevant libfreetype through pacman package manager
  • copy libfreetype .a files from mingw folder into rust lib folder, rename so that they follow libfreetype-6.a pattern
  • add C:\msys64\mingw64\bin to path