Skip to content

Instantly share code, notes, and snippets.

View sabioes's full-sized avatar
💭
I may be slow to respond.

Carlos Silva sabioes

💭
I may be slow to respond.
View GitHub Profile
@sabioes
sabioes / git.migrate
Created February 8, 2024 06:15 — forked from niksumeiko/git.migrate
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@sabioes
sabioes / install-ovs-source
Created November 22, 2017 11:48 — forked from balioune/install-ovs-source
Install openvSwitch for source code
#!/bin/bash
echo "Removing old ovs configuration."
sudo /etc/init.d/openvswitch-switch stop
sudo kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`
sudo rm -rf /usr/local/var/run/openvswitch
sudo mkdir -p /usr/local/var/run/openvswitch
sudo rm -rf /usr/local/etc/openvswitch
sudo mkdir -p /usr/local/etc/openvswitch
sudo rm -rf /var/run/openvswitch