Skip to content

Instantly share code, notes, and snippets.

View ajsb85's full-sized avatar
πŸ–ΌοΈ
Engaging cognitive processors...

Alexander Salas Bastidas ajsb85

πŸ–ΌοΈ
Engaging cognitive processors...
View GitHub Profile
#include <Arduino.h>
#include <mbedtls/aes.h>
#define PROCESS_FAIL -1
int encrypt(uint8_t *input, uint8_t size, uint8_t key[16], uint8_t *encrypt) {
mbedtls_aes_context encryptContext;
uint8_t iv[16] = {0};
int ret = 0;
@xidameng
xidameng / ameba_RTL8722DM_add_more_GPIO.cpp
Last active August 29, 2021 02:34
There are 2 files need to update in order to add support for more GPIO pins
// "variant.cpp"
PinDescription g_APinDescription[TOTAL_GPIO_PIN_NUM]=
{
{PB_2, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D0
{PB_1, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D1
{PB_3, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D2
{PB_31, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D3
{PB_30, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D4
{PB_28, NOT_INITIAL, PIO_GPIO | PIO_GPIO_IRQ , NOT_INITIAL}, //D5
@ubidefeo
ubidefeo / NanoRP2040_OSC.ino
Created May 18, 2021 12:56
OSC Message sender for Arduino Nano RP2040 Connect
/* This Sketch is tested on
* - Nano 33 RP2040 Connect
* - Nano 33 IoT
* - MKR WiFi 1010
To compile and use it requires
Libraries:
- CNMAT OSC Library (https://github.com/CNMAT/OSC) - Arduino Library Manager
- Arduino WiFiNINA (https://github.com/arduino-libraries/WiFiNINA) - Arduino Library Manager
@b01
b01 / download-vs-code-server.sh
Last active July 17, 2026 02:47
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# 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 furnished to do so, subject to the following conditions:
@ajsb85
ajsb85 / adb.bash
Created December 6, 2020 11:52
Remote ADB
adb tcpip 5555
adb shell ip route
adb connect 10.0.105.13
@broskisworld
broskisworld / Makefile
Last active June 8, 2026 22:29 — forked from katyo/Makefile
Excellon Specification (fork from katyo with improved markdown formatting)
all: excellon.html excellon.pdf
excellon.html: excellon.md
@pandoc $< -o $@
excellon.pdf.md: excellon.md
@cat $< | sed 's/\.png/\.pdf/g' > $@
excellon.pdf: excellon.pdf.md
@pandoc $< --latex-engine=pdflatex -o $@
/*
* If you are going to connect to the live API server to run a quick
* test that adds new data, such as POIs, with test/imaginary values
* please be responsible and delete them afterwards.
*/
require_once 'Services/OpenStreetMap.php';
$config = array(
// A password file, is a colon delimited file.
@irwincong
irwincong / philips_hue_firmware_api_notes.md
Last active August 2, 2026 19:06
Finding the Philips Hue Firmware Download API

Philips Hue Firmware Download API discovery

Laste Update: Fri 05 Jun 2020 02:22:05 PM UTC

Easy Way

With hardware, you could intercept traffic.

Hard(er) Way

  1. Download APK
@leebyron
leebyron / input-union-meeting-2020-5-28.md
Created May 28, 2020 18:54
Input Union Meeting 2020/5/28
@ajsb85
ajsb85 / 🎡 My last week in music
Last active October 29, 2020 14:18
🎡 My last week in music
Mahitab Alaa β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 15 plays
Ahmad_Alnufais β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4 plays
New β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4 plays
Quran Voice | ءوΨͺ Ψ§Ω„Ω‚Ψ±Ψ’Ω† β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 4 plays
Sanluis β–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 2 plays
Abdelrahman Hassan β–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays
Anas Elkinawy ( Quraan_Ch β–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays
AYAT OF TRANQUILITY β–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays
charge your heart 2 β–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays
Ibrahem Omar β–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1 plays