Skip to content

Instantly share code, notes, and snippets.

View roughpandaz's full-sized avatar
💭
Decentralizing the world one step at a time

Rongxin roughpandaz

💭
Decentralizing the world one step at a time
View GitHub Profile
@roughpandaz
roughpandaz / git-pushing-multiple.rst
Created September 2, 2022 18:18 — 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

@roughpandaz
roughpandaz / cryptokitties.sol
Created August 8, 2018 23:08 — forked from arpit/cryptokitties.sol
Cryptokitties Contract from the Eth blockchain
pragma solidity ^0.4.11;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;