Skip to content

Instantly share code, notes, and snippets.

View alexandre-mbm's full-sized avatar

Alexandre Magno alexandre-mbm

  • Natal (RN), Brazil
View GitHub Profile
@alexandre-mbm
alexandre-mbm / README.md
Last active September 5, 2020 10:58
Subtitles for an OptiKey's promotional video

Goal

To internationalize the subtitles of the promotion video "Building the Future—Julius Sweetland, OptiKey" on the GitHub channel.

Workflow

To avoid installing software like youtube-dl or dl-youtube-cc, we obtain the closed captions from yousubtitles.com by clicking the "Download Text" button for our video.

A condensed version of that auto-generated text, with no spaces and no breaklines, has been saved in this repository at the auto.en-GB.txt path. The intention is to have it reviewed by the speech author: JuliusSweetland. That is, a new file named en-GB.txt, fixed (on semantics, punctuation, orthography and grammar), contributed by Julius, to base *.txt and then *.srt translations. .

@alexandre-mbm
alexandre-mbm / dev_install.sh
Last active December 8, 2017 14:22
Script para trabalhar tradução no Slax
#!/bin/bash
apt-get update
apt-get -y install git poedit udevil thunar
udevil mount /dev/sdb1
thunar /media/sdb1-usb-Generic_Flash-Di/slax/modules/ &
git config --global user.name "Alexandre Magno"
#!/bin/bash
URL="http://www.sine.rn.gov.br/Conteudo.asp?TRAN=ITEM&TARG=21137&ACT=&PAGE=0&PARM=&LBL=Vagas"
HTML=$(wget -q "$URL" -O- | html2text | iconv -f ISO_8859-1 -t UTF8)
#echo "$HTML" | grep "Total" | awk '{ print $2 } ' | head -n 1
#echo "$HTML" > sine.txt
@alexandre-mbm
alexandre-mbm / dualmon.sh
Created June 8, 2016 04:35
A monitor status switcher for the notebook, when we are using an external monitor as "primary" connected to VGA port
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2016 Alexandre Magno ‒ alexandre.mbm@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@alexandre-mbm
alexandre-mbm / cuidador.sql
Created April 30, 2016 05:24
Tentando prever resultado final de concurso
SELECT
"objetivas"."matricula" "matricula",
"objetivas"."nome" "nome",
"objetivas"."nascimento" "nascimento",
"objetivas"."nota" "nota1",
"discursiva"."nota" "nota2",
"objetivas"."nota" + "discursiva"."nota" "pontos",
"objetivas"."esp" "especificos",
"objetivas"."leg" "legislacao",
"objetivas"."port" "portugues"
@alexandre-mbm
alexandre-mbm / ddom.sh
Created April 22, 2016 04:12
Script que facilita checagem diária do DOU RN
#!/bin/bash
READER=evince
FILE=dom_$(date +%Y%m)$1.pdf
URL=http://portal.natal.rn.gov.br/_anexos/publicacao/dom/$FILE
DIR=dom
wget -P $DIR -q -c $URL && $READER $DIR/$FILE || echo "DOM $1 not found"
@alexandre-mbm
alexandre-mbm / touchegg.conf-teste.xml
Last active January 4, 2016 02:32
Teste simples para estudo das configurações do Touchégg
<touchégg>
<settings>
<property name="composed_gestures_time">0</property>
</settings>
<application name="Firefox">
<gesture type="DRAG" fingers="2" direction="LEFT">
#!/bin/bash
#
# Small program to let warnings in Teamviewer sessions
#
# To install:
#
# alias zentask="$(pwd)/zentask.sh"
DATE=$(date "+dia %d, %H:%M h")
@alexandre-mbm
alexandre-mbm / searching-touchegg.md
Last active December 31, 2015 04:30
Aprofundamento no Touchegg

Veja também:

  • [touchegg.md] ‒ Estudos iniciais para tentar funcionar o Touchegg no Arch Linux

Projeto

Estava originalmente no [Google Code] mas recentemente foi movido para [GitHub].

[Perguntei] ao autor o que ele pretende com a [documentação], pois ela [ainda não foi convertida] em formato apresentável.

Em 2011 dizia-se1 que a aplicação fora feita para o [EggWM], e só depois tornada compatível com qualquer gerenciador de janelas. Ela deveria funcionar com qualquer touchpad compatível com uTouch, mas naqueles dias1 a documentação somente ensinava [configurações] para "Apple Magic Trackpad" e o "Asus eeepc 1000h".

@alexandre-mbm
alexandre-mbm / touchegg.md
Last active January 12, 2021 04:38
Estudos iniciais para tentar funcionar o Touchegg no Arch Linux

Veja também:

1ª referência fala de Mac e ensina

Pelo que vi em um [vídeo] de referência, não trata-se apenas de instalar o pacote do AUR e esperar que tudo funcione. Ou será necessário aperfeiçoar os arquivos de configuração daquele pacote.

O arquivo a criar é um /etc/X11/xinit/xinitrc.d/touchegg.sh: