Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
// SPDX-License-Identifier: MIT | |
// OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) | |
pragma solidity ^0.8.0; | |
import "./IERC20.sol"; | |
import "./extensions/IERC20Metadata.sol"; | |
import "../../utils/Context.sol"; | |
/** |
console.log('It was love at first sight.'); | |
console.log('The first time Yossarian saw the chaplain he fell madly in love with him.'); | |
console.log('Yossarian was in the hospital with a pain in his liver that fell just short of being jaundice.'); | |
console.log('The doctors were puzzled by the fact that it wasn\'t quite jaundice.'); | |
console.log('If it became jaundice they could treat it.'); | |
console.log('If it didn\'t become jaundice and went away they could discharge him.'); | |
console.log('But this just being short of jaundice all the time confused them.'); |
fetch("https://api.nasa.gov/neo/rest/v1/neo/browse?api_key=34oLy4FhODjKGewo2VIy8dsfgSGq6Qb1TQEpAX5s") | |
.then(function(response) { | |
// SUCCESS RESPONSE | |
console.log(response); | |
}) | |
.catch(function(response) { | |
// FAILURE RESPONSE | |
console.log('Error! Please try again'); | |
}); |
Probably one of the easiest things you'll ever do with gpg
Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH
First get the public key
keybase pgp export | gpg --import
Next get the private key
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
git clone --bare git@github.com:usi-systems/easytrace.git
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
Use case: You have repository A with remote location rA, and repository B (which may or may not have remote location rB). You want to do one of two things:
NB: Check out git subtree
/git submodule
and this Stack Overflow question before going through the steps below. This gist is just a record of how I solved this problem on my own one day.
Before starting, make sure your local and remote repositories are up-to-date with all changes you need. The following steps use the general idea of changing the remote origin and renaming the local master branch of one of the repos in order to combine the two master branches.
I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.
I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...