- create and alias/ symlink for the file, I use 'watcher.sh' in my home directory
- when you fire up a
gnome-terminal
- enter
~/watcher.sh
and leave that tab running in the background
- enter
- when you crash and reboot, and fire up a
gnome-terminal
- enter
~/watcher.sh restore
to restore all your windows and tabs that you previously had open, and it will cotninue watching automatically after that is done
- enter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
## | |
## This automation was created to be used with MACOS based on the instructions from drduh | |
## (https://github.com/drduh/YubiKey-Guide) | |
## | |
## You need to install gpg first: | |
## brew install gnupg hopenpgp-tools ykman pinentry-mac | |
## and GPG Suite can also come in handy (https://gpgtools.org/) | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// web3 provider with fallback for old version | |
window.addEventListener('load', async () => { | |
// New web3 provider | |
if (window.ethereum) { | |
window.web3 = new Web3(ethereum); | |
try { | |
// ask user for permission | |
await ethereum.enable(); | |
// user approved permission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id": "0d593b03242553b24568b3dbccceadd8cb419795091f6e75267f37d8e6100771c10b3bd55285eae9adc99c3e1b0a770f152e132c20c8425b94d43c7d65fc36a9"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 700 | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 0b11111111111111110000000000000000 - 0b100000000000000000 | |
4294770688 | |
> ((0xffff - 2) * 0x10000) | |
4294770688 | |
> ((0xffff - 2) << 16) | |
-196608 # WHY??>? | |
> ((0xffff - 2) << 16) >>> 0 | |
4294770688 |
NewerOlder