Skip to content

Instantly share code, notes, and snippets.

@willmendesneto
willmendesneto / ng-publish.sh
Created August 15, 2018 13:17
ng-publish: Shell script with one of old examples to publish Angular libraries
# Usage:
# PKG_VERSION=<patch|minor|major> ./publish.sh
npm run test && \
npm run build && \
npm run bundlesize && \
node ./build.js && \
npm publish dist && \
npm version $PKG_VERSION -m "v%s"
@willmendesneto
willmendesneto / medis-installer.sh
Last active June 19, 2023 11:56
Script to build and install Redis Desktop Manager Medis Locally on MacOS
echo "Installing Redis Desktop Manager 'Medis'"
[ -d ~/medis ] || git clone https://github.com/luin/medis.git ~/medis
cd ~/medis
npm install && npm run pack
cp -rf out/Medis-mas-x64/Medis.app /Applications/
cd ~ && rm -rf ~/medis
@willmendesneto
willmendesneto / config.yml
Last active April 9, 2018 23:38
Using workflow to parallelise automated tasks on Circle CI
version: 2
docker_defaults: &docker_defaults
docker:
- image: circleci/node:8.11.1-browsers
working_directory: ~/project/repo
attach_workspace: &attach_workspace
attach_workspace:
at: ~/project
@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 .
@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
""""""""""""""""""""""""""""""""
"
" PACKAGE MANAGEMENT
"
""""""""""""""""""""""""""""""""
" not a vi
" set encoding=utf-8
set nocompatible " be iMproved, required
filetype off " required
@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 = [];
@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 / 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 / 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)