Skip to content

Instantly share code, notes, and snippets.

@deyvisonrocha
deyvisonrocha / _end-to-end-enc.js.md
Created August 28, 2020 23:50 — forked from therightstuff/_end-to-end-enc.js.md
Javascript / Node.js end-to-end encryption
@deyvisonrocha
deyvisonrocha / phpstorm.cmder.md
Created July 4, 2019 23:25 — forked from vluzrmos/phpstorm.cmder.md
Configurar o Laragon CMDER dentro do PHPSTORM

1- Adicionar a variável de ambiente CMDER_ROOT com o caminho para C:\laragon\bin\cmder (local do cmder no computador)

2- Abrir o phpstorm, ir em File (Menu) > Settings > Tools > Terminal e alterar o caminho padrão "cmd.exe" para:

"cmd.exe" /k ""%CMDER_ROOT%\vendor\init.bat""

3- Pode acontecer de a variável CMDER_ROOT não estar pronta, você pode precisar reiniciar sua máquina.

conky.config = {
minimum_width = 1350,
minimum_height = 15,
double_buffer = true,
own_window = true,
own_window_argb_visual = true,
own_window_class = 'ConkyAbove',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'dock',
@deyvisonrocha
deyvisonrocha / post-merge
Created May 24, 2018 12:53 — forked from GianlucaGuarini/post-merge
Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency using bower npm or composer
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# forked by Gianluca Guarini
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep -E --quiet "$1" && eval "$2"
}
@deyvisonrocha
deyvisonrocha / post-merge
Created May 24, 2018 12:51 — forked from sindresorhus/post-merge
git hook to run a command after `git pull` if a specified file was changed.In this example it's used to run `npm install` if package.json changed and `bower install` if `bower.json` changed.Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
#!/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# git hook to run a command after `git pull` if a specified file was changed
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`.
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
@deyvisonrocha
deyvisonrocha / 0_reuse_code.js
Created April 17, 2014 14:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console