Skip to content

Instantly share code, notes, and snippets.

View lucasmezencio's full-sized avatar
:bowtie:
Neeeeeeeeerd

Lucas Mezêncio lucasmezencio

:bowtie:
Neeeeeeeeerd
View GitHub Profile
@johberd
johberd / convert.sh
Last active July 1, 2023 22:32
Script for recursively converting all files to UTF-8 (Mac OS X)
#!/bin/bash
# Original by LEXO, http://www.lexo.ch
# Link: https://www.lexo.ch/blog/2013/01/linux-bash-shell-script-for-recursively-converting-all-files-with-various-charsets-in-a-directory-into-utf-8-shell-skript-fur-das-rekursive-konvertieren-von-allen-files-in-einem-verzeichnis-mit-belie/
# Changed by Johannes Berdin, http://johannesberdin.de
# for running under Mac OS X
#
# Version 1.0
#
# This bash script converts all files from within a given directory from any charset to UTF-8 recursively
@ericelliott
ericelliott / essential-javascript-links.md
Last active December 10, 2025 04:01
Essential JavaScript Links
@sponomarev
sponomarev / command.sh
Created November 9, 2013 10:43
Remove iTerm2 icon from Dock
# remove
/usr/libexec/PlistBuddy -c 'Add :LSUIElement bool true' /Applications/iTerm.app/Contents/Info.plist
# restore
/usr/libexec/PlistBuddy -c 'Delete :LSUIElement' /Applications/iTerm.app/Contents/Info.plist
@codeswimmer
codeswimmer / .gitconfig
Last active December 21, 2015 15:49
my .gitconfig file
[color "diff"]
meta = blue black bold
ui = true
[core]
editor = mate -w
[github]
user = codeswimmer
token = a99dfdd250ec9af4352a1c416cede0e8
[push]
default = simple
@michaelklapper
michaelklapper / virtualbox_vagrant_home.bat
Last active May 23, 2023 06:24
Reconfigure VirtualBox and Vagrant home directory for Windows Set VirtualBox home directory to: C:\VMs Store vagrant boxes: C:\VMs\vagrant.d
# VirtualBox home directory.
"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setproperty machinefolder "C:\VMs"
# Vagrant home directory for downloadad boxes.
REG ADD HKCU\Environment /v VAGRANT_HOME /t REG_SZ /d "C:\VMs\vagrant.d"
@lucasmezencio
lucasmezencio / vhost.conf
Created November 5, 2012 00:54
Default Vhost
<VirtualHost *:80>
ServerName example.local
DocumentRoot /path/to/example/public
SetEnv APPLICATION_ENV "development"
<Directory /path/to/example/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
@lucasmezencio
lucasmezencio / commit_message.md
Last active April 14, 2023 16:50
Como escrever a mensagem de um commit / How to write a commit message

As mensagens dos commits devem servir para três importantes coisas:

  • Para acelerar o processo de revisão.
  • Para ajudar a escrever uma boa nota de lançamento.
  • Para ajudar os futuros mantenedores (que pode ser você), ou ajudar a descobrir porque uma mudança foi feita no código ou porque uma funcionalidade foi adicionada.

Escreva sua mensagem de commit desta forma:

@codeswimmer
codeswimmer / gotham.py
Created August 24, 2012 20:13 — forked from jart/gotham.py
Lorem Gotham w/ Rhyming
r"""
gotham
~~~~~~
Gothic Poetry Generator
"""
import marshal
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@lucasmezencio
lucasmezencio / gist:3314588
Created August 10, 2012 14:23
Remove all SVN folders recursively from a folder
find . -name ".svn" -exec rm -rf {} \;