Skip to content

Instantly share code, notes, and snippets.

View lymieux's full-sized avatar
🏍️
riding my enfield

Gabriel Morales lymieux

🏍️
riding my enfield
View GitHub Profile
@lymieux
lymieux / frc-radio-config.py
Last active January 29, 2022 08:32
FRC Radio Flash Util in python
import socket, re, sys
class RadioConfig():
def __init__(self):
self.team_num = 0
"""1-9999"""
self.radio_name = ''
"""1-31 char"""
self.wpa_key = 0
"""8-30 char"""
@lymieux
lymieux / arch-arm-install.md
Last active October 5, 2023 20:55
Arch Linux Arm Desktop Instructions

Arch Linux Arm Desktop Environment Tutorial:


  • Tutorial on how to setup a desktop environment on Arch Linux Arm, specifically for the Raspberry Pi 3*
  • Any questions on the steps can be left on a comment, or checking the Arch Wiki
  • Newer kernel versions are being tested, as well as Wayland instead of X
  • If you have questions or errors, leave a comment! - moral-g

Boot:


@lymieux
lymieux / wpilib-pi-gist.md
Last active January 31, 2022 14:14
Description for all folders and files ran in wpilib-pi to build image to recreate on any distro

Breakdown of all importnat build files used in WPI Lib Raspberry Pi, formerly know as FRC Vision Pi Genereator to be used to recreate the "optimizations" they imploy in the repo on other Linux distros not based on Debain. Does not contain specifics but summarys on the use/role of a file to properly implement on a different distro. If specifics are wanted, view the wpilibpi repo

Hover over a file name to read its description. A more detailed Google Doc

Stage 0:


┣ 00-configure-apt

@lymieux
lymieux / cmd-invoker.bat
Created January 31, 2022 14:14
Command Prompt w/ Unix style and Compat Layer set to Invoker
@echo off
cd "%userprofile%"
set __COMPAT_LAYER=RunAsInvoker
:run
TITLE %cd% - Command Prompt: Invoker
set dirf=%cd%
call set dirf=%%dirf:%userprofile%=~%%
set /p task="%username%@%computername% %dirf%: "
call %task%
set task=
Quick Arch Linux Install Quide for Filesystem with Swap, proper sudoers.d use, conf on KEYMAPS and LOCALE and basic Grub config

The default console keymap is US. Available layouts can be listed with:

ls /usr/share/kbd/keymaps/**/*.map.gz

To modify the layout, append a corresponding file name to loadkeys(1)

# FOO is layout from /usr/share/kbd/keymaps/**/*.map.gz
@lymieux
lymieux / haskell.md
Last active March 2, 2022 16:09
A quick Haskell reference sheet
Non-strict, strong, static, compiled language

non-strict - lazy evaluation
strong - no variable def, like python
static - cannot change var type, like 12+"hello" not allowed

Basic Data Types:
  Number
    Dynamically typed, no need for variable ttype declaration
@lymieux
lymieux / .bashrc
Last active May 28, 2022 01:12
My .bashrc and kitty.conf for my terminal
# Minimal .bashrc file
# pwd :: ~/.bashrc
# Pre-requisites
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# First load system bashrc
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@lymieux
lymieux / desmos-power.py
Created March 23, 2022 21:49
Simple python script to print Desmos function to inputed power,
#!/usr/bin/env python3
# Accepts only positive and negative integters
power, eq = int(input("Highest power of function: ")), ""
power_l = list(range(abs(power)))
for i in range(len(power_l)):
last_item = power_l.pop()
power_l.insert(i, last_item + 1)
@lymieux
lymieux / Calamidnight.tmTheme
Last active August 1, 2022 02:03
A spin on Calamity and ayu for Sublime Text 3/4 and for TerminalView
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Calamidnight</string>
<key>uuid</key>
<string>D8D5E82E-3D5B-46B5-B38E-8C841C21347D</string>
<key>colorSpaceName</key>
<string>sRGB</string>
@lymieux
lymieux / build.sh
Last active April 12, 2022 15:00
Simple bash file to run cmake and make in one convenient script
#!/bin/bash
# Simple build script that builds a cmake project
# no flags :(
# ~
if [ -d "`pwd`/build" ] ; then
echo -e "\e[1;35m[+] \`build\` folder already exists!\e[0m"
conflict=""
while [[ "$conflict" != "r" && "$conflict" != "s" ]]