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 / 0_readme.md
Last active April 14, 2018 05:24
Test of automatic translation of Video to text

Test of automatic translation of Video to text, source "INNOROBOTs 9 April 2018 Video"

  1. Source: https://www.facebook.com/groups/ieeesight/permalink/1504711872972284/
  2. Original Video: https://www.facebook.com/groups/ieeesight/permalink/1504711872972284/
  3. Use of online website to download Facebook Video as Mp4 file: https://www.fbdown.net/
  4. Conversion from Video MP4 to MP3 audio: https://online-audio-converter.com
  5. Use of online Audio-to-Text: https://speech-to-text-demo.ng.bluemix.net/
  6. Speech-to-Text, by supposed languages
    1. Use of "Moder Standart Arabic broadband model (16KHz), See file speech-to-text-arabic.md
  7. Use of "French broadband model (16KHz), see file speech-to-text-french.md.
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
@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$
@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.

--------- 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 / 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
@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 / 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 / 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 / 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,