Skip to content

Instantly share code, notes, and snippets.

@willmendesneto
willmendesneto / e2e-scripts.sh
Last active April 18, 2016 01:16
Scripts for validate the `web-parts` branch in some environments
#
# Run the e2e tests for tab
#
# How to use
#
# $ cd <your-tab-project>
# $ e2e-tab (-n|--no-link) (-w|--web-parts=web-parts-folder) (-d|--dir=www-tab-folder)
#
# Optional values
#
@willmendesneto
willmendesneto / copy-config.sh
Created May 2, 2016 09:13
Copy the `configuration.js` file by environment
#
# Copy the `configuration.js` file by environment
#
# How to use
#
# $ cd <your-sunbets-project>
# $ copy-config (-p|--password) (--user) (-u--url) <(-au|--au)=true (-eu|--eu)=true (-uat|--uat)=true> (-d|--dir=www-sunbets-folder)
#
# Examples:
# copy-config --user="my-user" -p="my-password" -uat=true
@willmendesneto
willmendesneto / raspberry-setup.sh
Last active June 19, 2016 01:17
Setup for Raspberry PI
# Install Chromium Browser
wget -qO - http://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
echo "deb http://dl.bintray.com/kusti8/chromium-rpi jessie main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install chromium-browser rpi-youtube -y
# Disable screen sleep
echo "xserver-command=X -s 0 dpms" >> /etc/lightdm/lightdm.conf
@willmendesneto
willmendesneto / list-videos-backup.sh
Last active October 9, 2016 09:29
Organize videos and images in media backup
#
# How to setup
#
# Navigates to your local backup folder
#
# chmod +x ./list-videos-backup.sh
# ./list-videos-backup.sh
#
CLI_FILES=$(ls)
ROOT_FOLDER=$(pwd)
@willmendesneto
willmendesneto / nvm-install.sh
Last active May 12, 2020 18:20
NVM Installation in your local OS
# How to use
# chmod +x ./nvm-install.sh
# ./nvm-install.sh
#
# Author: Wilson Mendes
echo ""
echo ">>> Installing NVM..."
echo ""
cd $HOME
@willmendesneto
willmendesneto / memory-game1.js
Created February 8, 2017 10:32
First version of memory game
var five = require("johnny-five"),
board, button;
board = new five.Board();
board.on("ready", function() {
// Create a new `button` hardware instance.
// This example allows the button module to
// create a completely default instance
@willmendesneto
willmendesneto / memory-game.template.js
Last active May 19, 2017 13:01
Template file to start with Nodebots Simon game
var five = require('johnny-five');
var board = new five.Board();
var buttonCounter = 0;
var piezoSongs = ['C4', 'E4'];
var buttonsSequence = [];
var leds = [];
var piezo = {};
var timeoutIds = [];
""""""""""""""""""""""""""""""""
"
" PACKAGE MANAGEMENT
"
""""""""""""""""""""""""""""""""
" not a vi
" set encoding=utf-8
set nocompatible " be iMproved, required
filetype off " required
@willmendesneto
willmendesneto / yarn-prune.sh
Last active July 17, 2017 07:21
alias for Yarn with the same behaviour as `npm prune`
yarn install -s --production --ignore-scripts --prefer-offline
@willmendesneto
willmendesneto / gist:3a07dcae04a51b9815529b762f225ba8
Last active September 7, 2020 01:43
TADA 68 - Configuration
- Go to https://config.qmk.fm/#/tada68/LAYOUT_65_ansi and change the layout based in your preferences
- Remapping on MAC https://gist.github.com/egstad/03dc892076c5f97e0c1e371013f952d7
- Click in "Compile" button and wait for your bin file to be compiled
- After that, click on "Firmware" button to download the firmware to be added in your keyboard
- Run these commands
```
cd /Volumes/TADA68\ \
cp -r ~/Downloads/tada68_tada68_default.bin .
rm -rf .