Skip to content

Instantly share code, notes, and snippets.

View timonsku's full-sized avatar

Timon timonsku

View GitHub Profile
@timonsku
timonsku / disable-folder-discovery.reg
Created March 4, 2024 01:07
Disable Windows folder disovery feature via Registry Key that forces every folder to be a misc folder
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
"FolderType"="NotSpecified"
@timonsku
timonsku / lte_mbim_from_scratch.md
Created July 22, 2021 17:21 — forked from Juul/lte_mbim_from_scratch.md
How to use 4G LTE modems like the MC7455 on both Debian/Ubuntu and OpenWRT using MBIM

The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.

This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.

High level overview

These are the steps required:

  • Physically connect antennas
@timonsku
timonsku / FastCRC Benchmark SAMD21 vs SAMD51.md
Last active August 7, 2018 23:11
Benchmarking CRC on SAMD51 and SAMD21. I tried to find the max buffer size one each would accept before either not compiling or crapping out.

Graph made by Greys (Thanks to Greys for the nice Graph)

SAMD21 Cortex M0+ @ 48MHz:
1KB
Maxim (iButton) FastCRC:	Value:0x78, Time: 353 us (23.21 mbs)
Maxim (iButton) builtin:	Value:0x78, Time: 2213 us (3.70 mbs)
MODBUS FastCRC:	Value:0x2487, Time: 336 us (24.38 mbs)
MODBUS builtin: 	Value:0x2487, Time: 2337 us (3.51 mbs)
XMODEM FastCRC:	Value:0x190E, Time: 339 us (24.17 mbs)
@timonsku
timonsku / hello.java
Last active August 15, 2016 19:23
Cordova shell command plugin
package com.example.plugin;
import org.apache.cordova.*;
import java.io.*;
import java.net.*;
import org.json.JSONArray;
import org.json.JSONException;
import android.util.Log;
public class Hello extends CordovaPlugin {
@timonsku
timonsku / poco_http_post_headers.cpp
Created July 12, 2016 16:54 — forked from jeffcrouse/poco_http_post_headers.cpp
Poco HTTPPOST request with headers
#include <Poco/Net/HTTPClientSession.h>
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/StreamCopier.h>
#include <Poco/Path.h>
#include <Poco/URI.h>
#include <Poco/Exception.h>
using namespace Poco::Net;
using namespace Poco;
@timonsku
timonsku / Cross compiler for RPi, Jessie, openFrameworks 0.9
Last active October 30, 2015 21:53 — forked from jvcleave/ Cross compiler for RPi, Jessie, openFrameworks 0.9
Instructions for building a Jessie VM to cross-compile openFrameworks 0.9 applications for the Raspberry Pi 1 (arm7)
#ON THE RPI (if you haven't downloaded openFrameworks)
cd
curl -O http://192.237.185.151/versions/nightly/of_v20151008_linuxarmv6l_nightly.tar.gz
mkdir openFrameworks
tar vxfz of_v20151008_linuxarmv6l_nightly.tar.gz -C openFrameworks --strip-components 1
cd /home/pi/openFrameworks/scripts/linux/debian
sudo ./install_dependencies.sh
#INSTALL SMB WITH / ACCESS