Skip to content

Instantly share code, notes, and snippets.

View ajsb85's full-sized avatar
👨‍💻
Every day is a brand new day

Alexander Salas Bastidas ajsb85

👨‍💻
Every day is a brand new day
View GitHub Profile
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
#include <assert.h>
static void set_time(void);
static void get_time(void);
int main(void)
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
static void set_time(void);
static void get_time(void);
void app_main(void)
{
#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
@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
/*
* 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 June 27, 2024 21: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