Skip to content

Instantly share code, notes, and snippets.

@gbevan
gbevan / INSTALL.md
Last active June 2, 2022 08:47
Gnuradio 3.8 on Ubuntu 18.04
@spaghetti-
spaghetti- / server.cpp
Created March 25, 2017 08:19
Boost asio tcp server example, C++11
#include <iostream>
#include <memory>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
//thanks kalven for tips/debugging
using boost::asio::ip::tcp;
class Session : public std::enable_shared_from_this<Session>
@heiswayi
heiswayi / SerialPortManager.cs
Last active November 18, 2023 02:37
Singleton .NET SerialPort wrapper class
/*
MIT License
Copyright (c) 2016 Heiswayi Nrird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@d2a4u
d2a4u / BNO055 Java driver for Raspberry Pi
Last active January 25, 2018 10:01
BNO055 Java driver port for Raspberry Pi based on this repo: https://github.com/jcorcoran/BNO055_FRC/blob/master/src/org/team2168/utils/BNO055.java) but using pi4j library
import com.pi4j.io.i2c.I2CBus;
import com.pi4j.io.i2c.I2CDevice;
import com.pi4j.io.i2c.I2CFactory;
import java.io.IOException;
import java.util.TimerTask;
public class BNO055 {
//Tread variables
private java.util.Timer executor;
@superjamie
superjamie / raspberry-pi-vpn-router.md
Last active November 10, 2024 05:28
Raspberry Pi VPN Router

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.

Use the Raspberry Pi Configuration tool or sudo raspi-config to: