Skip to content

Instantly share code, notes, and snippets.

View joaocampinhos's full-sized avatar
🛢️
#bleçed

João Campinhos joaocampinhos

🛢️
#bleçed
View GitHub Profile

Keybase proof

I hereby claim:

  • I am joaocampinhos on github.
  • I am joaocampinhos (https://keybase.io/joaocampinhos) on keybase.
  • I have a public key ASB_XjSWHMJ36U1vb0HlNwOT_0al_MX3bRDQDEf2nhmJEwo

To claim this, I am signing this object:

@joaocampinhos
joaocampinhos / whitebox.sh
Created September 20, 2014 12:20
Dropbox - Use white menu bar icons
for p in /Applications/Dropbox.app/Contents/Resources/*-lep-inv.tiff; do cp $p ${p%-lep-inv.tiff}.tiff; done
@joaocampinhos
joaocampinhos / cenas.md
Last active August 29, 2015 14:19
FCTats

###SBD

Teste1
Inscritos 125
Presenças 104 (83.2%)
Negativas 27 (26.0%)
Média 11.6

|Teste2||

@joaocampinhos
joaocampinhos / gitupgitout.md
Last active August 29, 2015 14:23
Git up, Git out

#You need to git up, git out

git up git out

Git aliases based on Outkast song called "Git up, Git out".

###Git Up

# Better git pull to prevent polluted logs with merge messages
up = "!git remote update -p; git merge --ff-only @{u}"
@joaocampinhos
joaocampinhos / bw.vim
Created June 30, 2015 12:46
Vim Airline Custom Theme
" Personal vim-airline theme
" Mantained by João Campinhos
" v1.0 - https://gist.github.com/joaocampinhos/49b755292808149774c9
let g:airline#themes#bw#palette = {}
let s:N1 = [ '' , '' , 'black' , 15 ]
let s:N2 = [ '' , '' , 15 , 8 ]
let s:N3 = [ '' , '' , 15 , 'black' ]
let g:airline#themes#bw#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
" Personal vim-airline theme
" Mantained by João Campinhos
" v1.0
let g:airline#themes#bw#palette = {}
let s:N1 = [ '' , '' , 'black' , 15 ]
let s:N2 = [ '' , '' , 15 , 8 ]
let s:N3 = [ '' , '' , 15 , 'black' ]
let g:airline#themes#bw#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous">
<title>Insert title here</title>
<style type="text/css">
.container {
width: 50%;
}
@joaocampinhos
joaocampinhos / tech.js
Last active February 22, 2019 08:54
Disable MIT Technology Review (https://www.technologyreview.com/) paywall
var h=document.head,s=document.createElement('style');s.type='text/css',s.appendChild(document.createTextNode('.entry-login,.meter{display:none}article,.article-body__content{height:auto!important}.article-body__content:before{content:none!important}')),h.appendChild(s);
@joaocampinhos
joaocampinhos / pacaur_install.sh
Last active November 16, 2016 22:07 — forked from tadly/pacaur_install.sh
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
#
# This scripts purpose is purly to save you a few seconds on your new installation.
#
# Enjoy your time on an awesome system. Arch FTW!