Skip to content

Instantly share code, notes, and snippets.

View caiangums's full-sized avatar

Ilê Caian caiangums

View GitHub Profile
@caiangums
caiangums / flutter_run.sh
Created January 19, 2021 18:22
Flutter CLI still doesn't support passing full environment files, just single values. This script group env vars for passing as `--dart-define=` values.
#!/bin/bash
FLUTTER_RUN="flutter run"
if [ ! -z "$1" ]
then
SUPPLIED_ENV_FILE="$1"
while IFS= read -r line
do
FLUTTER_RUN="$FLUTTER_RUN --dart-define=$line"
@caiangums
caiangums / install.sh
Created April 3, 2020 13:17
Install Yarn with Node LTS in Mac using Homebrew
# remove yarn and node installed versions
brew uninstall yarn
brew uninstall node
# install node LTS (last LTS version is 12)
brew install node@12
# create symlink for other packages knowing you already have node installed
ln -s /usr/local/opt/node@12 /usr/local/opt/node
@caiangums
caiangums / YOUTUBE.md
Last active September 11, 2019 21:36
Play Videos/Songs faster or slower in one click in Chrome (No Extensions)

How To

Chrome has an amazing feature that allows you excecute a JS funciton as one of your bookmarks. Someday, when I was watching an YouTube video and wanted to play faster than 2x (podcast video related), I can't. So I created those two scripts and passed them as bookmarks saving in my bookmarks bar.

Now, whenever I want to play a video faster than 2x, I can and I can pick speed or return to normal speed.

Disclaimer: Use it with moderation. I just go for 3x or 4x speed.

Steps