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 / 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 / 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
@xoxefdp
xoxefdp / authentication.ts
Created June 26, 2018 19:02 — forked from btroncone/authentication.ts
Angular 2 application role access decorator, wrapping built in CanAccess functionality. Prevents view transitions when user roles are not appropriate.
import { Injectable } from 'angular2/core';
import { Storage } from './storage';
import { CurrentUser } from '../interfaces/common';
@Injectable()
export class Authentication{
private _storageService : Storage;
private _userKey : string = "CURRENT_USER";
constructor(storageService : Storage){
@xoxefdp
xoxefdp / README.md
Created June 26, 2018 19:02 — forked from deviantony/README.md
Portainer HTTP API by example

Introduction

This document presents a simple way to manage your Docker resource by using Portainer as a gateway (HTTP queries against the Portainer API).

WARNING: This documentation is valid for Portainer >= 1.18.0.

NOTE: I'm using httpie to execute HTTP queries from the CLI.

Deploy a Portainer instance

I've worked with AngularJS for many years now and still use it in production today. Even though you can't call it ideal, given its historically-formed architecture, nobody would argue that it became quite a milestone not only for evolution of JS frameworks, but for the whole web.

It's 2017 and every new product/project has to choose a framework for development. For a long time I was sure that new Angular 2/4 (just Angular below) will become the main trend for enterprise development for years to come. I wasn't even thinking of working with something else.

Today I refuse to use it in my next project myself.