Skip to content

Instantly share code, notes, and snippets.

View tupizz's full-sized avatar
🦈
Crafting code and solving problems through technology

Tadeu TupinambΓ‘ tupizz

🦈
Crafting code and solving problems through technology
View GitHub Profile
@tupizz
tupizz / ultimate-ut-cheat-sheet.md
Created February 23, 2021 14:51 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@tupizz
tupizz / encoding-video.md
Created October 27, 2020 12:38 — forked from glen-cheney/encoding-video.md
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus

JetBrains IDE Performance Config

High Performance Configuration for Jetbrains IDEs [IntelliJ, WebStorm, etc..]

Motivation

Once you step into the realm of multi-project development, large scale dev, or just have to have like 6 IDE's open. You really start to feel a performance hit on jetbrains IDEs.

This configuration aims to give at least 10x performance increases across the board.

Goals

@tupizz
tupizz / README.md
Created May 7, 2020 01:31 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.github.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
const router = require('cmdrouter');
const fs = require('fs-extra');
const yamljs = require('yamljs');
const jsyaml = require('js-yaml');
// USAGE:
// `node yaml-vs-json-perf write` to create the data data yaml and data.json files, and stringify perf measure.
// `node yaml-vs-json-perf read` to perf measure the parsing.
@tupizz
tupizz / gist:004ab4f129d0b8d9d9117a4a6bfc5334
Created November 12, 2019 14:32 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@tupizz
tupizz / ffmpegToWeb.js
Created October 25, 2019 02:52 — forked from moeiscool/ffmpegToWeb.js
FFMPEG to Web Browser with Express, Socket.IO and JSMPEG
// Shinobi (http://shinobi.video) - FFMPEG H.264 over HTTP Test
// How to Use raw H.264 (Simulated RTSP)
// 1. Start with `node ffmpegToWeb.js`
// 2. Get the IP address of the computer where you did step 1. Example : 127.0.0.1
// 3. Open VLC and "Open Network Stream".
// 4. Input the following without quotes : `http://127.0.0.1:8001/h264` and start.
var child = require('child_process');
var io = require('socket.io');
var events = require('events');
@tupizz
tupizz / splitVideoAndMergeWithMusic.js
Created October 25, 2019 02:51 — forked from philographer/splitVideoAndMergeWithMusic.js
Split Video And Merge With Music (Parameterize)
/**
* Created by yuhogyun on 2017. 3. 7..
*/
/**
* Todo:
* 1. μ˜μƒνŽΈμ§‘ 효과(ν™•λŒ€, μΆ•μ†Œ, fadein, fadeout, μžλ§‰, 메인그림 μ‚½μž…)
* 2. μŒμ•…μ„ μžλ™μœΌλ‘œ 골라주어야함 => μœ μ Έκ°€ 선택할 수 μžˆλ„λ‘ ν•˜λŠ”κ±΄ μ–΄λ–¨κΉŒ? NCS쀑에 선택.
* 3. Exception: μ˜μƒλ³΄λ‹€ μ‹œκ°„μ΄ κΈ΄ 경우, μ˜μƒμ΄ μ•„λ‹Œκ²½μš°
*
@tupizz
tupizz / splitVideoAndMergeWithMusic.js
Created October 25, 2019 02:51 — forked from philographer/splitVideoAndMergeWithMusic.js
Split Video And Merge With Music (Parameterize)
/**
* Created by yuhogyun on 2017. 3. 7..
*/
/**
* Todo:
* 1. μ˜μƒνŽΈμ§‘ 효과(ν™•λŒ€, μΆ•μ†Œ, fadein, fadeout, μžλ§‰, 메인그림 μ‚½μž…)
* 2. μŒμ•…μ„ μžλ™μœΌλ‘œ 골라주어야함 => μœ μ Έκ°€ 선택할 수 μžˆλ„λ‘ ν•˜λŠ”κ±΄ μ–΄λ–¨κΉŒ? NCS쀑에 선택.
* 3. Exception: μ˜μƒλ³΄λ‹€ μ‹œκ°„μ΄ κΈ΄ 경우, μ˜μƒμ΄ μ•„λ‹Œκ²½μš°
*
@tupizz
tupizz / images2video.js
Created October 25, 2019 02:51 — forked from erhhung/images2video.js
Node.js class to encode a sequence of image files into VP9 WEBM video using FFmpeg.
/*
* encode image sequence into WEBM video
*/
import {exec} from 'child-process-promise';
import format from 'string-template';
import fsAsync from 'file-async';
import shell from 'shelljs';
import path from 'path';
import os from 'os';