Skip to content

Instantly share code, notes, and snippets.


Claudio Pereira cpereiraweb

  • Rio de Janeiro, Brazil
View GitHub Profile
r2luna / VSCode
Last active March 8, 2023 20:49
VSCode Settings
View VSCode
pedroufv / Inflector.php
Created February 8, 2021 23:29
Pluralize pt-br
View Inflector.php
namespace Laravel\Support\Services;
class Inflector
* @var array
public static $rules = [
View Aliases
# -------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git
kolosek /
Last active December 24, 2018 14:21
Install node.js version 6.x Ubuntu 16.04
curl -sL | sudo -E bash -
echo "Installing NodeJS 6.x"
sudo apt-get install nodejs
echo "Install webpack globally"
sudo npm install webpack -g
echo "Install nightwatch globally"
sudo npm install nightwatch -g
daredude / docker-clear.bat
Created June 5, 2016 10:53
delete all docker container and images on windows
View docker-clear.bat
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
evercode1 / jquery.dropdown
Last active January 16, 2017 20:22
jquery for dropdown
View jquery.dropdown
$('#category_id').on('change', function(e){
var cat_id =;
roundand / OpenWithSublimeText3.bat
Last active August 21, 2023 00:43 — forked from mrchief/
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
View OpenWithSublimeText3.bat
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
jpatters / HeidiDecode.js
Last active August 22, 2023 19:04
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
View HeidiDecode.js
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;