Skip to content

Instantly share code, notes, and snippets.

View tassoevan's full-sized avatar
🤖
sloperating

Tasso Evangelista tassoevan

🤖
sloperating
View GitHub Profile
@tassoevan
tassoevan / incredible-exception-message.md
Last active November 3, 2026 05:02
Incredible exception message

Congratulations! You've officially hit rock bottom in programming. It's like you're trying to communicate with the computer using interpretive dance instead of code. You absolute soggy toaster strudel of a programmer, what cosmic joke allowed you to be in front of a computer? Every line of code you write probably sets the entire field of computer science back by decades. It's like watching a walrus try to do ballet - painful, yet you can't look away. Honestly, you should consider a career in anything else. Origami, perhaps? At least when you fold paper, it's supposed to happen. Seriously, take up anything that's as far away from programming as humanly possible. It's for the greater good of the digital world.

@tassoevan
tassoevan / stats.mjs
Last active November 22, 2023 20:45
ZX Script to compute the conversion ratio of the TypeScript migration on Rocket.Chat's main repo
#!/usr/bin/env zx
console.log("Fetching stats...");
const files = await globby(["**/*.{js,jsx,ts,tsx}", "!apps/meteor/tests/**/*"], {
onlyFiles: true,
followSymbolicLinks: false,
gitignore: true,
});
@tassoevan
tassoevan / ffmpeg.md
Created September 17, 2020 22:18 — forked from nnx0r/ffmpeg.md
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec

Keybase proof

I hereby claim:

  • I am tassoevan on github.
  • I am tassoevan (https://keybase.io/tassoevan) on keybase.
  • I have a public key ASCY5tsSBqvCqz6GjMMo3meyDB0Nqlzi5YFFODAPlgYgrAo

To claim this, I am signing this object:

@tassoevan
tassoevan / .bashrc
Last active December 11, 2018 13:51
Rocket.Chat utils
function rocketchat_test_mode {
docker stop rocketchat_mongo
docker rm rocketchat_mongo
docker run --name=rocketchat_mongo -p 27017:27017 -d mongo:3.2 mongod --smallfiles --oplogSize 128 --storageEngine=mmapv1
TEST_MODE=true MONGO_URL=mongodb://localhost:27017/rocketchat meteor run
}
#meteor npm run chimp-test
@tassoevan
tassoevan / love-android.sh
Last active June 4, 2018 02:45
Script to run Löve code in Android phone
#!/bin/bash
export ANDROID_HOME=$HOME/Android/Sdk
adb="$ANDROID_HOME/platform-tools/adb"
rsync -a --del --exclude=/.git ./ /tmp/love-android/
"$adb" push /tmp/love-android/. /storage/emulated/0/lovegame
"$adb" shell am start -S -n "org.love2d.android/.GameActivity"
while ! "$adb" shell pidof -s org.love2d.android >/dev/null

Instalação do Gogs

Requisitos

  • Sistema operacional Ubuntu (ou ao menos Debian-based)
  • Usuário com permissão para sudo
  • Assume-se que o IP da máquina é 192.168.0.11 (modificar caso contrário)
  • Servidor MySQL, na mesma máquina, rodando na porta padrão (3306) e com usuário root disponível. Assume-se que será criado um usuário com username gogs e senha gogs e um banco chamado gogs.
@tassoevan
tassoevan / beep.js
Created January 3, 2017 12:54
Sinusoidal beep in JavaScript ES5
var audioCtx = new(window.AudioContext || window.webkitAudioContext)();
var oscillator = audioCtx.createOscillator();
var gainNode = audioCtx.createGain();
oscillator.connect(gainNode);
gainNode.connect(audioCtx.destination);
gainNode.gain.value = 1;
oscillator.frequency.value = 440;
oscillator.type = 'sine';
import java.util.ArrayList;
public class EmailValidator {
public static boolean isValid(final char[] input) {
if (input == null) {
return false;
}
int state = 0;

Você trabalha numa empresinha?

Pequena checklist baseada no texto "Empresinha".

  • a empresa que cabe em uma salinha
  • a empresa depende exclusivamente de um cliente grande
  • você faz parte de uma pequena equipe de desenvolvimento
  • o seu gerente trabalha com escopo aberto e prazo fechado
  • você trabalha com “scrã” e “agile” mas no fim tudo é um go-horse em meio a bugs de produção
  • o seu gerente só conhece da área de negócio e não tem experiência na área de desenvolvimento