Skip to content

Instantly share code, notes, and snippets.

View flaviomuniz's full-sized avatar
🕶️
Focusing

Flavio Muniz flaviomuniz

🕶️
Focusing
View GitHub Profile
@flaviomuniz
flaviomuniz / README.md
Created October 28, 2017 17:19 — forked from e7d/README.md
[Debian] Setup a Squid anonymous proxy
#!/bin/sh
set -x
git checkout master
git fetch
git pull
git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete
git branch --merged | grep -v master | xargs git branch -d
git fetch -p
@flaviomuniz
flaviomuniz / joker.sh
Last active February 3, 2016 15:47
Crontab Joke :p
#Create a crontab with this script to joke your friend.
#Change __IMG__PATH__ to path with your image, download image and save in a hide directory.
/1 * * * * curl -o /tmp/joker.jpg DOWNLOAD_IMG_URL; osascript -e 'tell application "System Events" to set picture of every desktop to ("/tmp/joker.jpg" as POSIX file as alias)' killall Dock;
@flaviomuniz
flaviomuniz / therubyracer
Created September 17, 2015 12:22
Fix libv8 in El Capitan
brew tap homebrew/dupes
brew install apple-gcc42
export CC=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/gcc-4.2
export CXX=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/g++-4.2
export CPP=/usr/local/Cellar/apple-gcc42/4.2.1-5666.3/bin/cpp-4.2
brew uninstall v8
gem uninstall libv8
@flaviomuniz
flaviomuniz / loadbalancer
Created January 12, 2015 17:16
loadbalancer nginx
upstream _name_ {
server ip_1:port;
server ip_2:port;
server ip_3:port;
server ip_4:port;
...
}
server {
@flaviomuniz
flaviomuniz / gist:9e6026f3dc9083e2e216
Created September 12, 2014 17:52
jsonview black theme
body {
white-space: pre;
color: white;
font-size: 14px;
font-family: Helvetica;
background: black;
}
.property {
color: orange;
* Foco sidebar
** CTRL + 0
* Mostrar ou esconder barra
** CMD + K + B || CTRL + ALT + CMD +D
* Full screen
** CMD + CTRL + F
* Distraction free
<html>
<head>
<style>
ol { counter-reset: item }
li { display: block }
li:before { content: counters(item, ".") " "; counter-increment: item }​
</style>
</head>
<body>