Skip to content

Instantly share code, notes, and snippets.

@oblitum
oblitum / Notes
Last active Oct 13, 2020
Firefox settings
View Notes
Enable toolkit.legacyUserProfileCustomizations.stylesheets in about:config.
In the ~/.mozilla/firefox/<profile>/chrome directory, copy userChrome.css and userContent.css bellow
and clone https://github.com/MrOtherGuy/firefox-csshacks.git. This is to auto-hide the tab/address/bookmark bars,
leaving just the main content and the thinner scrollbars (from Dark Scroll). It also hides the status with links,
which may be displayed through Link Status Redux instead.
Some must have extensions:
- Dark Reader (for dark mode)
@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.

@oblitum
oblitum / .tmux.conf
Last active Jul 8, 2021
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'
@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
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 / 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 / index.html
Created Apr 11, 2016 — forked from biovisualize/index.html
Posting gist/blocks to blogger
View index.html
<!-- Override Gist styling -->
<style type="text/css">
iframe{background-color: #0a0a0a;}
div.gist-syntax {background-color:#0a0a0a!important;}
div.gist {color:#ccc!important;}
span.nt, span.kd, span.k, span.o{color:aliceblue!important;}
.gist .gist-file{border-color:#444!important;}
.gist .gist-file .gist-meta{background-color:#0a0a0a!important;}
</style>
View postmortem.go
// Better POST-MORTEM than never! 💀
package main
import (
"errors"
"fmt"
)
type RelationshipSet struct {
@oblitum
oblitum / 1-clang-O3.asm
Created Oct 11, 2013
yeppp! a trivial test's clang intel syntax assembly
View 1-clang-O3.asm
call _ZNSt6chrono3_V212system_clock3nowEv
.Ltmp100:
mov r14, rax
.Ltmp101:
#DEBUG_VALUE: i <- 0
.align 16, 0x90
.LBB0_6: # %.lr.ph.i.preheader
# =>This Loop Header: Depth=1
# Child Loop BB0_7 Depth 2
#DEBUG_VALUE: size <- 1024