Skip to content

Instantly share code, notes, and snippets.

View ruben-rodriguez's full-sized avatar
⛩️
I may be slow to respond.

Ruben Rodriguez ruben-rodriguez

⛩️
I may be slow to respond.
View GitHub Profile
@ruben-rodriguez
ruben-rodriguez / gist:b6d0199bf1d84cc139409f1447ae7dd1
Created April 13, 2020 16:55
Quickly download FTP like site with WGET
wget -r --no-parent --no-check-certificate https://<site>
@ruben-rodriguez
ruben-rodriguez / VirtualBox shared folders
Created September 28, 2018 09:18
VirtualBox shared folders
1 - Insert guest additions to running machine from Devices menu
2 - Mount the CD with guest additions:
$ sudo mount /dev/cdrom /media
$ ls -lh /media
3 - Install building dependencies:
$ sudo apt-get update
$ sudo apt-get install dkms build-essential linux-headers-generic linux-headers-$(uname -r)
4 - Execute installer:
$ sudo /media/VBoxLinuxAdditions.run
5 - Create and share folder from VirtualBox machine settings (folder name in this example is 'shared')
@ruben-rodriguez
ruben-rodriguez / Start job running for Wait for Network to be Configured
Last active August 14, 2023 05:31
Start job running for Wait for Network to be Configured
$ systemctl disable systemd-networkd-wait-online.service
$ systemctl mask systemd-networkd-wait-online.service
@ruben-rodriguez
ruben-rodriguez / pinentry
Created September 21, 2018 09:15
Disable pinentry box on windows GPG agent
Create file ~/.gnupg/gpg.conf
Add following line: pinentry-mode loopback
Restart gpg-agent:
$ gpgconf --kill gpg-agent; gpg-connect-agent /bye
@ruben-rodriguez
ruben-rodriguez / INSTALL.md
Created April 20, 2018 09:48 — forked from takeit/INSTALL.md
Write to NTFS on macOS Sierra (osxfuse + ntfs-3g)
  1. Install osxfuse:
brew cask install osxfuse
  1. Reboot your Mac.

  2. Install ntfs-3g:

@ruben-rodriguez
ruben-rodriguez / hosts
Created February 5, 2018 11:03
Pointless hosts file :)
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 adeventtracker.spotify.com
127.0.0.1 ads-fa.spotify.com
127.0.0.1 analytics.spotify.com
127.0.0.1 audio2.spotify.com
127.0.0.1 b.scorecardresearch.com
127.0.0.1 bounceexchange.com
127.0.0.1 bs.serving-sys.com
127.0.0.1 content.bitsontherun.com
127.0.0.1 core.insightexpressai.com
// ==UserScript==
// @name Aliexpress
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://trade.aliexpress.com/orderList.htm*
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @grant GM_setClipboard
@ruben-rodriguez
ruben-rodriguez / cleanHistory.sh
Created October 30, 2017 16:41
Bash history removal
#!/bin/bash
cat /dev/null > ~/.bash_history && history -c && exit
@ruben-rodriguez
ruben-rodriguez / bfg.txt
Created April 25, 2017 16:04
Removing file history from Git
Before pruning the data update the branches head solving the problem (master / develop)
git clone --mirror https://github.com/example.git
cd git
bfg --delete-files <file>
git reflog expire --expire=now --all && git gc --prune=now --aggressive
@ruben-rodriguez
ruben-rodriguez / GPG.txt
Last active April 5, 2017 06:57
GPG & github gpg sign
gpg --import private_key.asc
gpg --list-secret-keys --keyid-format LONG
gpg --delete-secret-key <key>
gpg --edit-key <key>
passwd
git config --global user.signingkey <key>