Skip to content

Instantly share code, notes, and snippets.

View brenopolanski's full-sized avatar
🦙
Llama Llama

Breno Polanski brenopolanski

🦙
Llama Llama
View GitHub Profile
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@fdaciuk
fdaciuk / Esconder_console_log.md
Last active September 3, 2021 15:00
Esconder console.log() quando o site for para produção

Esconder console.log() para o site em produção

  • Trocar o www.mywebsite.com pelo endereço do site em produção;
  • Incluir isso no início do seu script.

Se passar o parâmetro ?development na URL, ele ignora e mostra os console.log().

@steelywing
steelywing / google-translate-tooltip.user.js
Last active October 22, 2023 16:18
google translate tooltip for firefox & chrome
// ==UserScript==
// @name Google Translate Tooltip
// @namespace steely.wing
// @version 1.10
// @description Translates selected text into a tooltip.
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @copyright 2014, Wing Leong (http://steelywing.iblogger.org/)
// @include *
// @require http://code.jquery.com/jquery-2.1.0.min.js
// @grant GM_getValue
@rdeavila
rdeavila / git-update-fork.sh
Last active February 19, 2024 16:02
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream
@dancasttro
dancasttro / structure-css
Created March 31, 2014 03:45
Structure of my files preprocessors(Stylus/Sass) for projects
.
├── base
│ ├── config.styl
│ ├── mixins.styl
│ ├── helpers.styl
│ └── grid.styl
├── core
│ ├── reset.styl
│ ├── forms.styl
│ ├── tables.styl
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@brenopolanski
brenopolanski / install-couchdb.sh
Last active August 29, 2015 14:01
Installing CouchDB on Ubuntu
# via
# http://wiki.apache.org/couchdb/Installing_on_Ubuntu
# Installing using an existing package
sudo apt-get install couchdb -y
### Troubleshooting
### If the aptitude/apt-get installation gives an error message then couchdb might not have access to its pid file.
### Fix:
sudo chown -R couchdb /var/run/couchdb
@brenopolanski
brenopolanski / install-atom-ubuntu(x64).md
Last active August 29, 2015 14:01
Installing Atom on Ubuntu (64bits) via PPA

To install Atom in Ubuntu 14.04, 13.10 or 12.04 (64bits only!) and derivatives (Linux Mint, elementary OS, etc.), use the following commands:

$ [sudo] add-apt-repository ppa:webupd8team/atom
$ [sudo] apt-get update
$ [sudo] apt-get install atom

Before installing Atom, remember that it's still in beta so you may find bugs or missing / incomplete features!

@brenopolanski
brenopolanski / install-indicator-synapse.md
Last active June 14, 2019 04:02
How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17

Indicator Synapse is a Spotlight Alternative, developed by Tom Beckmann.

spotlight-alternative

How to Install Indicator Synapse (Spotlight Alternative) on Ubuntu 14.04 LTS or Linux Mint 17 run this commands in terminal:

$ [sudo] add-apt-repository ppa:noobslab/apps
$ [sudo] apt-get update
$ [sudo] apt-get install indicator-synapse
@brenopolanski
brenopolanski / merge-pdf-ghostscript.md
Last active May 2, 2024 06:56
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.