Skip to content

Instantly share code, notes, and snippets.

View coddingtonbear's full-sized avatar

Adam Coddington coddingtonbear

View GitHub Profile
@coddingtonbear
coddingtonbear / dstarrepeater_ircddbgateway.conf.rst
Created January 19, 2016 00:33
Detailed overview of settings used for DStarRepeater and IRCDDBGateway for HackRFBridge.

DStarRepeater and IRCDDBGateway are together responsible for handling the process of routing D-Star audio to and from the D-Star network. The configuration process for these two things can be a little confusing, so I've below described what settings I've set in each so if you were to try to do something similar, you'd know what I had working.

Following the same pattern as the above; for IRCDDBGateway, you can launch ircddbgatewayconfig and enter the following settings. As above, you can leave any unmentioned settings at their defaults:

  • Gateway
    • Type: "Hotspot"
    • Local HB Address: "127.0.0.1" (note that HB in all situations here means "Homebrew repeater")
    • Local HB Port: "20010"
@multidis
multidis / gnutls_build_ubuntu.sh
Last active August 29, 2015 14:17
Building GnuTLS with dependencies on Ubuntu 12.04 (versions in repositories are seriously outdated).
# nettle 2.7.1
# http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nettle.html
cd nettle-2.7.1
./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu
make
sudo make install
sudo chmod -v 755 /usr/lib/x86_64-linux-gnu/libhogweed.so.2.5 /usr/lib/x86_64-linux-gnu/libnettle.so.4.7
sudo install -v -m755 -d /usr/share/doc/nettle-2.7.1
sudo install -v -m644 nettle.html /usr/share/doc/nettle-2.7.1
@nealtodd
nealtodd / settings_test_snippet.py
Last active November 14, 2019 01:25
Skip migrations for a Django 1.7 test run
# If your test settings file doesn't import any other settings file
# then you can use the function directly:
def prevent_tests_migrate(db):
import django
from django.db import connections
from django.db.migrations.executor import MigrationExecutor
django.setup()
ma = MigrationExecutor(connections[db]).loader.migrated_apps
return dict(zip(ma, ['{a}.notmigrations'.format(a=a) for a in ma]))
@slindberg
slindberg / if-all-exists.js
Last active August 29, 2015 13:57
Bound conditional Handlebars helpers for Ember
import ifConditionHelper from 'myapp/helpers/if-condition';
/**
* Logical AND Existence Conditional Block
*
* Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}}
*
* Executes the given block if all arguments are defined
*/
export default function() {
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@calebsmith
calebsmith / gist:8578779
Created January 23, 2014 13:57
Simple ping/pong Erlang program
-module(ping_module).
-export([start/1, ping/2, pong/1, ending_timer/0]).
ping(0, Pong_PID) ->
Pong_PID ! finished,
io:format("ping finished~n", []);
ping(N, Pong_PID) ->
io:format("Sending ping~n", []),
Pong_PID ! {ping, self()},
@shimizukawa
shimizukawa / ext_ctags.py
Created November 30, 2012 03:38
ctags file generator for sphinx
# -*- coding: utf-8 -*-
import os
def doctree_resolved(app, doctree, docname):
filename = os.path.join(app.confdir, app.config.ctags_filename)
# load existent ctag
ctags = load_ctag(filename)
@dbrgn
dbrgn / rst.video.py
Created June 13, 2012 07:56
ReStructuredText Youtube / Vimeo video embed directive
# -*- coding: utf-8 -*-
"""
ReST directive for embedding Youtube and Vimeo videos.
There are two directives added: ``youtube`` and ``vimeo``. The only
argument is the video id of the video to include.
Both directives have three optional arguments: ``height``, ``width``
and ``align``. Default height is 281 and default width is 500.