You're Robin
and you want to commit as Batman
.
[user]
email = [email protected]
name = robin
[core]
sshCommand = ssh -i ~/.ssh/robin_pk
You're Robin
and you want to commit as Batman
.
[user]
email = [email protected]
name = robin
[core]
sshCommand = ssh -i ~/.ssh/robin_pk
Sometimes it is useful to route traffic through a different machine for testing or development. At work, we have a VPN to a remote facility that we haven't bothered to fix for routing, so the only way to access a certain machine over that VPN is via an SSH tunnel to a machine that is reachable over the VPN. Other times, I have used this technique to test internet-facing requests against sites I am developing. It is pretty easy, and if you don't use firefox regularly, you can treat Firefox as your "Proxy" browser and other browsers can use a normal configuration (Although you can also configure an entire system to use the proxy, other articles exists that discuss this potential).
// source: https://medium.com/swlh/this-is-how-to-use-the-react-context-api-with-hooks-for-a-clean-code-architecture-2019-e66662ec7ab8 | |
const AppContext = createContext(); | |
function AppContextProvider({ children }) { | |
const [amount, setAmount] = useState(0); | |
function deposit(value) { | |
setAmount(amount + value); | |
} |