Skip to content

Instantly share code, notes, and snippets.

View tonussi's full-sized avatar

Lucas Tonussi tonussi

View GitHub Profile
@tonussi
tonussi / accel_2017.txt
Created September 5, 2019 18:02
dados spec accel 2017 second quarter
y x
350277,359637 2333,799939
343926,205252 2326,597073
345370,60541 2340,116098
70083,317769 460,108915
69117,983004 459,340051
69086,824977 459,675308
789882,05566 3378,246405
784647,534027 3381,977833
783488,441355 3383,856666
@tonussi
tonussi / Peterson.ino
Last active June 9, 2019 18:39
Peterson + Led + Display LCD + LDR Sensor
#include <Thread.h>
#include <LiquidCrystal.h>
#define FALSE 0
#define TRUE 1
#define N 2
int volatile turn;
int interested[N];
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
{"filterData":{"videoId":[""],"channelId":["// Blocked by context menu (Nando Moura)","UCOOCeqi5txwviDZ4M5W9QSg","","// Blocked by context menu (Xbox Mil Grau)","UCLhvKRhY5uPgrVtLtHwqERA","","// Blocked by context menu (eGuinorante)","UC-Ny3gmsFsccR5WuGDU02KQ","","// Blocked by context menu (Porta dos Fundos)","UCEWHPFNilsT0IfQfutVzsag","","// Blocked by context menu (Nicolas Gomes)","UCW6_V5qKt6XYv-lST3xZ0nQ","","// Blocked by context menu (AM3NlC)","UCrGnb5RdHA9M6WGmBGYo4ZQ","","// Blocked by context menu (Pe Marcelo Rossi)","UCp4scJVG8IeQnPBrQrflaKg","","// Blocked by context menu (Coisa de Nerd)","UCuxfOdbKQy0tgGXcm9sjHiw","","// Blocked by context menu (Neagle)","UCNrthyyJVjrJUpePrl6lW_g","","// Blocked by context menu (Programa Silvio Santos)","UC-5npwFvOH9Mp_a15T0VT9g","","// Blocked by context menu (The Noite com Danilo Gentili)","UCEWOoncsrmirqnFqxer9lmA","","// Blocked by context menu (Sofia Santino)","UCseo6WOqkDXgycrM3oIMpfg","","// Blocked by context menu (Power Couple Brasil)","UCr2TPUjHlskdWYtp
@tonussi
tonussi / BMP.cpp
Last active April 17, 2019 18:20
BMP RGB to Grayscale BMP (Quick Testing CPP)
#pragma once
#include <fstream>
#include <vector>
#include <stdexcept>
#include <thread>
#include <vector>
#include <mutex>
std::mutex mtx_grey;
std::mutex mtx_sepia;
@tonussi
tonussi / Bad words
Created April 16, 2019 16:02 — forked from aldeka/Bad words
A comma-delimited list of bad words.
4r5e, 5h1t, 5hit, a55, anal, anus, ar5e, arrse, arse, ass, ass-fucker, asses, assfucker, assfukka, asshole, assholes, asswhole, a_s_s, b!tch, b00bs, b17ch, b1tch, ballbag, balls, ballsack, bastard, beastial, beastiality, bellend, bestial, bestiality, bi+ch, biatch, bitch, bitcher, bitchers, bitches, bitchin, bitching, bloody, blow job, blowjob, blowjobs, boiolas, bollock, bollok, boner, boob, boobs, booobs, boooobs, booooobs, booooooobs, breasts, buceta, bugger, bum, bunny fucker, butt, butthole, buttmuch, buttplug, c0ck, c0cksucker, carpet muncher, cawk, chink, cipa, cl1t, clit, clitoris, clits, cnut, cock, cock-sucker, cockface, cockhead, cockmunch, cockmuncher, cocks, cocksuck , cocksucked , cocksucker, cocksucking, cocksucks , cocksuka, cocksukka, cok, cokmuncher, coksucka, coon, cox, crap, cum, cummer, cumming, cums, cumshot, cunilingus, cunillingus, cunnilingus, cunt, cuntlick , cuntlicker , cuntlicking , cunts, cyalis, cyberfuc, cyberfuck , cyberfucked , cyberfucker, cyberfuckers, cyberfucking , d1ck,
@tonussi
tonussi / WebhookTutorial.md
Created February 28, 2019 20:45 — forked from jagrosh/WebhookTutorial.md
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
import Discord from 'discord.js';
const HLTV = require('hltv-api');
import moment from 'moment';
import _ from 'lodash';
export const botGetHelp = msg => {
try {
var help = new Discord.RichEmbed();
help.setColor('#fff');
help.addField('Help', "!help Mostra uma ajuda para comandar o bot.");
@tonussi
tonussi / chmods.md
Last active July 19, 2018 17:54
chmods

Linux How to remove all permissions on a file or directory and protect it

Remove all permissions on directory perm_tes of Owner(u), Group(g), others(o) and all(a)

chmod 000 perm_test or chmod 0 perm_test or chmod a=--- perm_test or chmod a=- perm_test

@tonussi
tonussi / .bashrc
Created July 15, 2018 08:42
settings
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
@tonussi
tonussi / gist:4ff4d263a164c62fc3fbd557f4d6060b
Created January 26, 2018 20:08 — forked from Sleepingwell/gist:7445312
Example of using geoalchemy.
# A simple script to load data from a shapefile into a spatialite db.
# Transfering the geometries is slow. It would probably be much faster to
# use WKB directly for the load, but I cannot get this to work.
# This is largely copied from
# https://github.com/geoalchemy/geoalchemy/blob/master/examples/spatialite.py
import os, osgeo.ogr
from sqlite3 import dbapi2 as sqlite
from sqlalchemy.orm import sessionmaker
from sqlalchemy import event, create_engine, MetaData