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 / GITCMD.txt
Last active April 25, 2017 16:07
GIT CMD
CONFIGURING:
$ git config --global user.name “NAME”
$ git config --global user.email “email@email.com”
CLONING:
$ git clone https://github.com/ermus19/meteo.git
UPDATING:
$ git pull
@ruben-rodriguez
ruben-rodriguez / keybase.md
Created February 18, 2017 12:45
Keybase.io ID

Keybase proof

I hereby claim:

  • I am ermus19 on github.
  • I am akiyoshi (https://keybase.io/akiyoshi) on keybase.
  • I have a public key whose fingerprint is 4E1C 99A5 B005 8AFE 6227 2DA8 D020 B530 ACB5 58B1

To claim this, I am signing this object:

@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>
@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 / cleanHistory.sh
Created October 30, 2017 16:41
Bash history removal
#!/bin/bash
cat /dev/null > ~/.bash_history && history -c && exit
// ==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 / 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
@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 / 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 / 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