Skip to content

Instantly share code, notes, and snippets.

View NUMAflex's full-sized avatar

NUMAflex NUMAflex

View GitHub Profile
@selfawaresoup
selfawaresoup / uconsole.md
Last active May 18, 2024 21:27
Notes for Clockwork uConsole setup

uConsole Notes

Batteries

I use two XTAR 16850-3500 cells and I get about 8h of active usage out of them.

Get GNOME Shell and GDM3

sudo apt install gnome-shell gdm3
@rguiscard
rguiscard / uConsole.md
Last active May 14, 2024 11:37
uConsole tips and tricks

Installation with new image

Download image from uConsole github. Unzip with p7zip:

$> sudo apt-get install p7zip
$> p7zip -d uConsole_CM4_v1.3g_64bit.img.7z

Find the SD card, probably at /dev/sda. Write image with dd:

@anecdata
anecdata / code.py
Last active February 3, 2022 17:07
RGB Matrix (is31fl3741) Wi-Fi Monitor
import random
import time
import board
import busio
import wifi
import adafruit_is31fl3741
from adafruit_is31fl3741.adafruit_rgbmatrixqt import Adafruit_RGBMatrixQT
QUEUELEN = 128 # ESP32-S2 (ESP32-S3 can be much longer)
@luzhuomi
luzhuomi / pocketchip_debian10.md
Last active April 16, 2024 13:05
A tutorial to upgrade NXT pocket C.H.I.P to Debian Buster

Pocket Chip Debian 10 Upgrade Guide

The purpose of this tutorial is to walk through the required steps to upgrade NXT chip (or pocketchip) from debian jessie to debian buster.

If you would like to start your Chip from scratch, follow the steps in the Preparation section.

Preparation (Optional)

A linux host machine, recommended Ubuntu 18.04. However I managed to do it with 20.10 with some tweak.

@virtadpt
virtadpt / gps.xhtml
Created November 18, 2019 23:51 — forked from Arttumiro/gps.xhtml
PAW-gps Mobile code+application
Originally from: https://raw.githubusercontent.com/systemik/pwnagotchi-bt-tether/master/GPS-via-PAW
Systemik made the original code and shaynemk on the pwnagotchi boards added timestamps, altitude, and satellites to the code
You can follow the original guide if you want, this one is just using a bit different code and is typed out a bit better
This is just the android part of the whole guide but the rest can be found here https://community.pwnagotchi.ai/t/setting-up-paw-gps-on-android
And just so everyone knows, me (Arttumiro) didnt do anything coding related at all, i just changed up the guide a bit and made it easier to follow.
======================================================================================
Site of the app I use : http://paw-android.fun2code.de (It needs a lot of permissions but it will not do anything automatically)
Dont worry about incompatibility warnings, the gps code should still work even with that.
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
@c4r-gists
c4r-gists / main.cpp
Last active April 12, 2021 19:38
Connecting a DHT11 sensor to the cloud with an ESP8266-based board
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Cloud4RPi.h>
#include "DHT.h"
#ifndef LED_BUILTIN
#define LED_BUILTIN 2
#endif
#define DHTPIN 2 // Digital pin connected to the DHT sensor

How To Make A Working TWRP Device Tree For Your MediaTek Device & Start Building Them, Online

This Guide is tested on 64-bit mt6735/53 chipset device. It will also work on any 64-bit and 32-bit devices.

You will need something from your Stock ROM first. Get them all and Try to modify it using the procedure.

Note: This guide will be helpful for you if you have older mediatek devices (android-5.1 or android-6.0), but up-to-date devices can also work.

Update: This guide had a few typos and derps (Oops..), but I've tried to make it free of those now (Dated November 18, 2020)

Bonus: You can also use this tool by @SebaUbuntu, @yshalsager and @mauronofrio to auto generate the twrp tree. The tool is best if your device runs on android-9.0. The tools is still not 100% compatible to all devices, but I'll still recommend it and give it 8.5/10 in the scale of varsatility.

@elktros
elktros / ESP8266_DHT11_ThingSpeak_Flash.ino
Last active March 16, 2021 14:36
Code for Interfacing DHT11 Humidity Sensor with ESP8266 and posting the information on ThingSpeak API. Code is uploaded directly to ESP8266 Module.
#include <DHT.h>
#include <ESP8266WiFi.h>
#define DHTPIN 2 //DHT11 is connected to GPIO Pin 2
String apiKey = "XXXXXXXXXXXXXXXX"; // Enter your Write API key from ThingSpeak
const char* ssid = "SSID"; // Enter your WiFi Network's SSID
const char* pass = "PASSWORD"; // Enter your WiFi Network's Password
const char* server = "api.thingspeak.com";
@JuniorJPDJ
JuniorJPDJ / wifi.sh
Last active April 10, 2020 05:39
Nexmon firmware replacing on-demand
#!/system/bin/sh
# place me in this folder:
export HOME="/sdcard/wifi"
# place patched firmware with this name
patched_path="$HOME/bcmdhd_sta.bin.patched"
backup_path="$HOME/bcmdhd_sta.bin.backup"
fw_path="/system/etc/wifi/bcmdhd_sta.bin"