Skip to content

Instantly share code, notes, and snippets.

View carlosfaria94's full-sized avatar

Carlos Faria carlosfaria94

View GitHub Profile
copy file or dir from local machine to server
rsync -avz -e "ssh -i /home/user/ssh/secure.pem" /path/to/folder/ centos@172.20.4.18:/path/to/directory/
copy file or dir from server to local machine
rsync -avz -e "ssh -i /home/user/ssh/secure.pem" centos@172.20.4.18:/path/to/directory/ /path/to/directory/
@carlosfaria94
carlosfaria94 / pantheon-revert.md
Last active August 10, 2019 11:08
A transaction when reverts in Ganache has not the same output when in a Pantheon network

Ganache

Transaction succeeded output:

result { blockHash:
   '0x07071ddd9b6ad9cdf8653ca3f32f1a6d3bdb43236e5bce9c0b7a7d31a72a95d0',
  blockNumber: 357,
  contractAddress: null,
  cumulativeGasUsed: 29884,

Keybase proof

I hereby claim:

  • I am carlosfaria94 on github.
  • I am carlosfaria (https://keybase.io/carlosfaria) on keybase.
  • I have a public key ASDQ-41SwGJgA9eja6mJDU62vivDHPagrkxO3jYpxUZz2Qo

To claim this, I am signing this object:

@carlosfaria94
carlosfaria94 / blockstack.txt
Last active June 17, 2019 12:05
Blockstack ID
Verifying that "carlosfaria.id" is my Blockstack ID. https://onename.com/carlosfaria
@carlosfaria94
carlosfaria94 / Triangle
Created October 2, 2013 21:29
Desenho de uma área triangular
#include <iostream>
#include <iomanip>
using namespace std;
void main() {
const int CENTER_COLUMN = 25, NUMBER_OF_ROWS = 10;
for(int row=0; row < NUMBER_OF_ROWS; ++row)
cout << setfill(' ') << setw(CENTER_COLUMN - row) << ' '
<< setfill('*') << setw(2 * row + 1) << '*' << endl;
}