Skip to content

Instantly share code, notes, and snippets.

View BrianLima's full-sized avatar

Brian Lima BrianLima

View GitHub Profile
@BrianLima
BrianLima / windows-terminal.json
Created August 2, 2020 13:53
My WindowsTerminal config
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@BrianLima
BrianLima / Simplehue.ino
Created March 22, 2020 19:47
Simple arduino rainbow effect
#include "FastLED.h"
#define NUM_LEDS 300
#define datapin 6
CRGB ledsA[NUM_LEDS];
float ihue = 0;
float istep = 0.01;
int idelay = 0;
int numstops = round(255/NUM_LEDS);
@BrianLima
BrianLima / cloudSettings
Created June 24, 2019 15:51
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-06-24T15:51:24.825Z","extensionVersion":"v3.2.9"}
@BrianLima
BrianLima / fix_github_https_repo.sh
Created March 14, 2018 22:25 — forked from m14t/fix_github_https_repo.sh
Convert HTTPS github clones to use SSH
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
exit
fi
@BrianLima
BrianLima / support.cfg
Created November 7, 2017 20:20
MSI support.cfg
[Motherboard]
MS-7693|4.x
MS-7893|1.x
MS-7992|1.x
MS-7A83|1.x
MS-7A31|1.x
MS-7A32|1.x
MS-7A33|1.x
MS-7A33|2.x
MS-7A33|3.x