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 / cursors.md
Last active May 26, 2022 00:00
Posy's cursors customized to be an all black theme
@lymieux
lymieux / settings.json
Last active May 22, 2022 02:39
My Windows Terminal settings.json
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@lymieux
lymieux / *.sublime-color-scheme
Last active May 15, 2022 18:31
Colored Comments Sublime Text Identifiers and Colors
{
"rules": [
{
"name": "IMPORTANT COMMENTS",
"scope": "comments.important",
"background" : "rgba(16, 20, 29, 0.1)",
"foreground": "rgba(245, 100, 100, 1)"
},
{
"name": "QUESTION COMMENTS",
@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" ]]
@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 / 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 / .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 / 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
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 / 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=