Skip to content

Instantly share code, notes, and snippets.

View jeremysells's full-sized avatar

Jeremy Sells jeremysells

View GitHub Profile
@Jiab77
Jiab77 / raspberry-pi-2-3-and-4-wireless-bridge-ubuntu-server-18.04-arm+netplan.md
Last active April 18, 2025 09:37
The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.

Raspberry Pi 2/3B/B+/4B Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

The initial goal of this project is to use the raspberry pi in place of my Wireless Range Extender and then going from 3 wireless networks (2.4ghz, 2.4ghz extended, 5ghz) at home to only one (5ghz). This way I'm reducing the exposition to radio waves for the whole familly at home.

Let's go technical

Ok, enough drama for now, let's go technical. 😁

Setup

@nebman
nebman / display-example.ino
Created November 17, 2017 09:36
Example code for Wifi Kit 8, ESP8266 Oled, HTIT-W8266
#include <Arduino.h>
#include <U8x8lib.h>
// Pin 16 OLED Reset
// Pin 4,5 I2C
// use Board "Wemos D1 Mini R2", 80Mhz, 4(3)MB Flash, 921600baud to flash
U8X8_SSD1306_128X32_UNIVISION_HW_I2C u8x8(16);
@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@0x4D31
0x4D31 / beautiful_idiomatic_python.md
Last active November 22, 2024 08:34 — forked from JeffPaine/beautiful_idiomatic_python.md
[Beautiful Idiomatic Python] Transforming Code into Beautiful, Idiomatic Python #python

Transforming Code into Beautiful, Idiomatic Python

Notes from Raymond Hettinger's talk at pycon US 2013 video, slides.

The code examples and direct quotes are all from Raymond's talk. I've reproduced them here for my own edification and the hopes that others will find them as handy as I have!

Looping over a range of numbers

for i in [0, 1, 2, 3, 4, 5]:
@tnsasse
tnsasse / Jenkinsfile
Last active April 4, 2018 17:28
Jenkinsfile for Gitflow Pipeline: different deployments for dev/release/master branch
node {
checkout scm
stage('Build') {
def mvnHome = tool 'M3'
sh "${mvnHome}/bin/mvn package"
}
stage('Deploy') {
if (env.BRANCH_NAME == 'develop') {
@onegrx
onegrx / dht11.cpp
Created April 16, 2017 23:25
DHT11 library in C++ for Arduino
#include "dht11.h"
// There is a timeout if voltage on pin does not change in 10k loop passes time
bool acknowledge(int pin, int mode) {
for(unsigned int loopCnt = 10000; digitalRead(pin) == mode; loopCnt--) {
if (loopCnt <= 0) return false;
}
return true;
}
@frfahim
frfahim / install virtualenv ubuntu 16.04.md
Last active November 19, 2024 06:11
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 
@Ocramius
Ocramius / User.php
Last active December 25, 2024 19:05
Doctrine 2 ManyToMany - the correct way
<?php
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity()
* @ORM\Table(name="user")
*/
class User