Skip to content

Instantly share code, notes, and snippets.

Nathan Osman nathan-osman

Block or report user

Report or block nathan-osman

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
@nathan-osman
nathan-osman / CMakeLists.txt
Last active Mar 23, 2018
Enumerate network interfaces and addresses assigned to them
View CMakeLists.txt
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)
project(netenum)
find_package(Qt5Network 5.4 REQUIRED)
add_executable(netenum main.cpp)
target_link_libraries(netenum Qt5::Network)
@nathan-osman
nathan-osman / CMakeListst.txt
Created Nov 1, 2017
Write to STDOUT using QFile
View CMakeListst.txt
cmake_minimum_required(VERSION 3.2.0 FATAL_ERROR)
project(stdout)
find_package(Qt5Core 5.4 REQUIRED)
add_executable(stdout main.cpp)
target_link_libraries(stdout Qt5::Core)
@nathan-osman
nathan-osman / ppastats.py
Created Jul 14, 2017
Updated script for retrieving PPA download counts - https://askubuntu.com/a/296200/5
View ppastats.py
#!/usr/bin/env python2
from argparse import ArgumentParser
from sys import exit
try:
from launchpadlib.launchpad import Launchpad
from tabulate import tabulate
except ImportError:
print "python-launchpadlib and python-tabulate are required"
@nathan-osman
nathan-osman / button.png
Last active Feb 4, 2019
Android emulator skin for the OnePlus 3
@nathan-osman
nathan-osman / temperature.ino
Last active Apr 29, 2017
Measure temperature and humidity and display the values on an OLED screen.
View temperature.ino
/**
* Measure temperature & humidity and display on OLED screen
* Copyright 2017 - Nathan Osman
*/
#include <DHT.h>
#include <Adafruit_SSD1306.h>
#include <Fonts/FreeSans12pt7b.h>
#define DHTPIN 3
@nathan-osman
nathan-osman / letsencrypt.go
Created Apr 20, 2017
Obtain a Let's Encrypt certificate from the ACME staging server using golang.org/x/crypto/acme
View letsencrypt.go
package main
import (
"context"
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/x509"
"crypto/x509/pkix"
"encoding/pem"
@nathan-osman
nathan-osman / measurer.ino
Created Apr 19, 2017
Measure distance and display on OLED screen
View measurer.ino
/**
* Measure distance and display on OLED screen
* Copyright 2017 - Nathan Osman
*/
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <Fonts/FreeSans12pt7b.h>
@nathan-osman
nathan-osman / domains.go
Last active Feb 2, 2017
Test a list of domains
View domains.go
package main
import (
"bufio"
"log"
"net/http"
"net/url"
"os"
"sync"
"time"
@nathan-osman
nathan-osman / win32.go
Last active Mar 5, 2019
Simple Windows GUI application written in Go
View win32.go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
View README.md

Using TLS in NitroShare

Current builds of NitroShare now include support for TLS. This feature is still in active development but enough has been completed that it is ready for testing.

To use this feature, you must first generate a key and root CA certificate:

openssl genrsa -out root.key 2048
openssl req -x509 -new -nodes -key root.key -sha256 -days 3650 -out root.crt

You will be asked a few questions about the CA and it is important you do not leave any fields blank since this causes problems verifying the certificates later. Next, you will need to generate a key, CRL, and signed certificate for each device:

You can’t perform that action at this time.