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
@ajsb85
ajsb85 / logic.md
Last active January 8, 2025 21:46
How to Read Logic

Introduction

A layperson looks at this and sees an incomprehensible mess. A mathematician looks at this and says, "Well, yeah, obviously." A layperson or mathematician who doesn't want to admit they don't comprehend this will also shrug and say, "Well, yeah, obviously." But I don't want you to be one of those people. The problem is that symbolic logic, if you're unfamiliar with it, can be really intimidating on the surface. But I promise you that at the end of this short video, you'll understand everything that's going on here and agree that yes, this is obviously true.

Disclaimer

This video is intended as a primer on first-order logic to help students who are learning this subject for the first time. If it's something that you're already familiar with, this might not be the video for you. Or maybe you'll see a fresh perspective, new ways of thinking about, or new ways to teach the material that you'd never considered before. I probably shouldn't discourage people from watching my own video, but I just w

@ajsb85
ajsb85 / README.md
Created December 19, 2024 18:49
GNOME Shell Extensions Installer

GNOME Shell Extensions Installer

This script automates the installation of several popular GNOME Shell extensions. It uses the gnome-shell-extension-installer utility to download and install extensions directly from the GNOME Extensions Website.

Features

The script installs the following extensions:

  • apps-menu: Adds a GNOME 2.x style menu on the panel.
  • auto-move-windows: Automatically assigns windows to specific workspaces.
@ajsb85
ajsb85 / README.md
Created December 19, 2024 18:20
GNOME Circle App Installer

GNOME Circle App Installer

This script automates the installation of GNOME Circle apps on Ubuntu systems. It attempts to install apps using snap, flatpak, and apt in a non-interactive manner.

Features

  • Installs GNOME Circle apps from snap, flatpak, and apt.
  • Prioritizes flathub for Flatpak installations.
  • Automatically tries the edge channel for missing Snaps (optional).
  • Detects and skips already installed apps.
#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
@b01
b01 / download-vs-code-server.sh
Last active March 5, 2025 18:12
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