Skip to content

Instantly share code, notes, and snippets.

Francisco Lopes oblitum

Block or report user

Report or block oblitum

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oblitum
oblitum / userChrome.css
Last active Jan 6, 2020
Firefox settings (also, add Dark Reader, Dark Scroll and optional Link Status Redux addons)
View userChrome.css
#navigator-toolbox {
position: relative;
z-index: 1;
height: 3px;
margin-bottom: -3px;
opacity: 0;
overflow: hidden;
}
#navigator-toolbox:hover {
height: auto;
@oblitum
oblitum / .tmux.conf
Last active Dec 4, 2018
Configuration for 24bit true colors terminal with italic
View .tmux.conf
set -g default-terminal 'tmux-256color'
# Enable 24 bit true colors
set -ga terminal-overrides ',*:Tc'
View compile-time-primes-2.cpp
// compiled on Ubuntu 13.04 with:
// clang++ -O3 -ftemplate-depth-8192 -fconstexpr-depth=4096 -std=c++11 -stdlib=libc++ -lcxxrt -ldl compile-time-primes-2.cpp -o compile-time-primes-2
// assembly output with:
// clang++ -S -mllvm --x86-asm-syntax=intel -O3 -ftemplate-depth-8192 -fconstexpr-depth=4096 -std=c++11 -stdlib=libc++ -lcxxrt -ldl compile-time-primes-2.cpp -o compile-time-primes-2.asm
#include <array>
#include <iostream>
template<typename T>
@oblitum
oblitum / MATRIX.md
Created Feb 9, 2018 — forked from fstab/MATRIX.md
How to use matrix.org and vector.im as an IRC client
View MATRIX.md

How to use matrix.org and vector.im as an IRC client

How to Join an IRC Channel on matrix.org

Join the room #freenode_<#channel>:matrix.org, replacing <#channel> with the name of the IRC channel. For example, in order to join the #prometheus IRC channel, join the room #freenode_#prometheus:matrix.org on matrix.org.

In vector.im, rooms can be joined with the directory symbol on the bottom left.

View crianças e tecnologia
Bill Gates e Steve Jobs criaram seus filhos livres de tecnologia — e isto devia ter sido um sinal de alerta
Psicólogos estão aprendendo rapidamente quão perigosos celulares podem ser
para jovens.
Pesquisas constatam que o risco de depressão para um jovem da oitava série
pula pra 27% quando ele ou ela usa redes sociais com frequência. Crianças que
usam seus celulares por pelo menos três horas por dia tem muito mais chance de
serem suicidas. Um estudo recente constatou que a taxa de suicídio de jovens nos
EUA agora é muito maior que a taxa de homicídios, com os celulares sendo a
@oblitum
oblitum / Access NSScreen.scpt
Created Jan 27, 2018 — forked from henryroe/Access NSScreen.scpt
Demonstration of how to use an AppleScript Bundle to enable access to NSScreen in AppleScriptObjC
View Access NSScreen.scpt
(*
Copy and paste this script into a new document in AppleScript Editor.
When saving, select "Script Bundle" as File Type.
Save the file to: "~/Library/Script Libraries/Access NSScreen.scptd"
Note: you may need to create the directory: "~/Library/Script Libraries"
Note: while this gist has the file ending "scpt", by selecting the
"Script Bundle" file type, the file extension "scptd" should be added.
View 1.applescript
tell application "Google Chrome"
repeat with windowId from 1 to counts windows
if title of window windowId contains "tom.scogland@gmail.com - Gmail" then
activate window windowId
end if
end repeat
end tell
@oblitum
oblitum / readme.md
Last active Dec 2, 2017
MacBook rEFInd configuration
View readme.md
  • refind.conf.diff:
    • My changes to refind.conf, this one on OS X at /Volumes/esp/efi/refind/refind.conf.
  • refind_linux.conf:
    • Put this one on linux at /boot/refind_linux.conf.

With this configuration, on boot you'll simply get two icons, one for OS X and one for Linux (Arch), simple and clean. Because of refind_linux.conf, if you select the Linux icon and press F2 or Insert, you get the chance of selecting between the 3 boot options for Linux when problems arise.

@oblitum
oblitum / Main.purs
Last active Oct 24, 2017
nature invented it first
View Main.purs
module Main where
import Prelude
import Data.Array (take)
import Data.Foldable (foldMap)
import Data.Unfoldable (replicateA)
import Partial.Unsafe (unsafePartial)
import Data.Maybe (Maybe(..), fromJust)
import Math (Radians, log, cos, sin, sqrt, pi)
@oblitum
oblitum / description.txt
Last active Aug 26, 2017
Adds compose menu bindings for grouping and moving attachments
View description.txt
Adds compose menu bindings for grouping and moving attachments.
Three new bindings:
group-alternatives combine tagged items into a multipart/alternative group
move-up move the current attachment up in the list
move-down move the current attachment down in the list
You can’t perform that action at this time.