Skip to content

Instantly share code, notes, and snippets.

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

Jose Diaz xoxefdp

🏠
Working from home
View GitHub Profile
@xoxefdp
xoxefdp / git-pushing-multiple.rst
Created May 30, 2017 04:21 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@xoxefdp
xoxefdp / win10-remove-docker.ps1
Created February 28, 2018 11:04
How to completely remove docker on Windows 10
# https://success.docker.com/article/How_to_completely_remove_Docker_in_Windows_10
$ErrorActionPreference = "SilentlyContinue"
kill -force -processname 'Docker for Windows', com.docker.db, vpnkit, com.docker.proxy, com.docker.9pdb, moby-diag-dl, dockerd
try {
./MobyLinux.ps1 -Destroy
} Catch {}
@xoxefdp
xoxefdp / update-dnsdynamic.sh
Last active June 23, 2018 10:22 — forked from Mic92/update-dnsdynamic.sh
Update Public Ip on dnsdynamic.com
#!/bin/sh
# EDIT this
[email protected]
PASSWORD=yoursecret
DOMAIN=example.dnsd.me
IP=`curl --silent -k https://myip.dnsdynamic.com/`
curl --silent --user "$EMAIL:$PASSWORD" -k "https://www.dnsdynamic.org/api/?hostname=$DOMAIN&myip=$IP"
@xoxefdp
xoxefdp / dynamic-dns-providers
Created June 23, 2018 12:06 — forked from neu5ron/dynamic-dns-providers
List of services/providers that offer free dynamic dns domains.
dynu.com
dyn.com
no-ip.com / noip.com
changeip.com
afraid.org
duckdns.org
dnsdynamic.org
duiadns.net
myonlineportal.com
dns4e.com
@xoxefdp
xoxefdp / tmux-cheatsheet.markdown
Created June 24, 2018 10:02 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@xoxefdp
xoxefdp / adding_trusted_sites.ps1
Last active June 26, 2018 11:26
Way to add batch urls to internet explorer trusted sites
#---------------------------------------------------------------------------------
#The sample scripts are not supported under any Microsoft standard support
#program or service. The sample scripts are provided AS IS without warranty
#of any kind. Microsoft further disclaims all implied warranties including,
#without limitation, any implied warranties of merchantability or of fitness for
#a particular purpose. The entire risk arising out of the use or performance of
#the sample scripts and documentation remains with you. In no event shall
#Microsoft, its authors, or anyone else involved in the creation, production, or
#delivery of the scripts be liable for any damages whatsoever (including,
#without limitation, damages for loss of business profits, business interruption,
@xoxefdp
xoxefdp / create_ssl_certificate.sh
Created June 26, 2018 12:05
Creates an ssl certificate with a random generated passphrase
#!/bin/bash
# https://gist.github.com/xoxefdp/981df1776d2a653bc0ce5687142d0fa3
# Check if argument for dhcp interface is present
if [ $# -lt 2 ]; then
printf "Supply arguments for CERTIFICATE_NAME, CERTIFICATE_SUBJ"
exit 1
fi
@xoxefdp
xoxefdp / ca.md
Created June 26, 2018 19:00 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@xoxefdp
xoxefdp / introrx.md
Created June 26, 2018 19:02 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@xoxefdp
xoxefdp / ip_forward.md
Created June 26, 2018 19:02 — forked from tzermias/ip_forward.md
Forward traffic from wlan0 to eth0 interface

Forward traffic from a laptop's eth0 to wlan0

###To laptop

Specify an IP address to eth0 (here 192.168.56.1)

sudo ifconfig eth0 192.168.56.1 netmask 255.255.255.0