Skip to content

Instantly share code, notes, and snippets.

View Wilker's full-sized avatar
🏠
Working from home

Wilker Wilker

🏠
Working from home
View GitHub Profile
git checkout master
ggpull
git checkout -b sync"$(date +'%d-%m-%Y-%H-%M')"
git merge origin development
@Wilker
Wilker / msql2
Created September 16, 2020 20:13
Install mysql2 with mysql installed via brew on MacOS High Sierra
````
gem install mysql2 -v 'YOUR.VERSION.HERE' -- --with-mysql-config=/usr/local/opt/mysql-client/bin/mysql_config \
--srcdir=/usr/local/opt/mysql/include --platform=ruby \
--with-ldflags=-L/usr/local/opt/openssl/lib \
--with-cppflags=-I/usr/local/opt/openssl/include
```
On Mojave, High Sierra, or Catalina, using homebrew.
https://gist.github.com/fernandoaleman/ee3ac6957c2ba4f7d7d33a251d58b191#gistcomment-2910891
@Wilker
Wilker / break.py
Created August 11, 2020 15:21 — forked from obfusk/break.py
python equivalent of ruby's binding.pry
import code; code.interact(local=dict(globals(), **locals()))
@Wilker
Wilker / disk_usage.sh
Created May 9, 2020 02:24
Folders consuming space
du -hsx * | sort -rh | head -10
@Wilker
Wilker / git-grep
Last active April 23, 2020 21:34
Grep inside Git History
git grep <regexp> $(git rev-list --all)
@Wilker
Wilker / hashcat_macos.sh
Created February 22, 2020 23:19 — forked from chadmayfield/hashcat_macos.sh
Install Hashcat on macOS
#!/bin/bash
git clone https://github.com/hashcat/hashcat.git
mkdir -p hashcat/deps
git clone https://github.com/KhronosGroup/OpenCL-Headers.git hashcat/deps/OpenCL
cd hashcat/ && make
./hashcat --version
./hashcat -b -D 1,2
./example0.sh
@Wilker
Wilker / config
Created August 14, 2018 03:16
i3wm config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
## Lines that start with double # are modified by me.
# i3 config file (v4)
[Desktop Entry]
Name=CriptoReal
Comment=CriptoReal Wallet
Exec=your_path_to/CriptoRealCore/criptoreal-qt %f
Icon=your_path_to_icon/criptoreal.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Economy;
X-GNOME-Bugzilla-Bugzilla=GNOME
@Wilker
Wilker / criptoreal.desktop
Created May 20, 2018 02:10
Change don't forget to set 'your_path_to' and in Debian place under ~/.local/share/applications
[Desktop Entry]
Name=CriptoReal
Comment=CriptoReal Carteira
Exec=your_path_to/CriptoRealCore/criptoreal-qt %f
Icon=your_path_to_icon/criptoreal.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Economy;
X-GNOME-Bugzilla-Bugzilla=GNOME