I hereby claim:
- I am vindard on github.
- I am vindard (https://keybase.io/vindard) on keybase.
- I have a public key ASBTyEWfpz4FHFYS3rGY43hxUU0XljrViwc903QBv_RFTAo
To claim this, I am signing this object:
| Verifying that +vindard is my blockchain ID. https://onename.com/vindard |
I hereby claim:
To claim this, I am signing this object:
| # Can try it out with this command: | |
| # $ python nestedTweets.py https://twitter.com/aantonop/status/1082420365291388928 | |
| import re, requests, sys | |
| def currentTweet(url): | |
| data = requests.get(url) | |
| try: | |
| tweet = re.findall("og:description.*“(.*)”", data.text)[0] | |
| user = re.findall("og.url.*\/(.*)\/status", data.text)[0] |
| def decode(options): | |
| a = lndecode(options.lnaddress, options.verbose) | |
| ######################### | |
| # HANDLE TAGS | |
| ######################### | |
| all_tags = { | |
| 'r': "Routes", | |
| 'd': "Description", | |
| 'f': "Fallback", |
| import json, csv, requests, sys | |
| from subprocess import check_output | |
| # Get channels raw data | |
| savefile = 'channels.csv' | |
| ''' | |
| channel_source = 'listchannels.txt' | |
| with open(channel_source, 'r') as f: | |
| all_channels = json.loads(f.read())['channels'] | |
| ''' |
| # NOTE: At 17 revision after ~2 weeks I think it's fair to say that this | |
| # gist has grown into its own little project. | |
| # | |
| # Given this, I've moved the project across to its own proper repo now | |
| # to facilitate better tracking & development. All further development | |
| # can now be found at: https://github.com/vindard/lnd-backup | |
| # | |
| #--------------------------------------------------------------------------- | |
| #!/bin/bash |
| #!/bin/bash | |
| # SET GPG KEY FOR ENCRYPTING WITH (COMPRESSES AS WELL) | |
| GPG="" | |
| # SET DROPBOX API KEY FOR UPLOADS | |
| DROPBOX_APITOKEN="" | |
| # OPTIONAL SET A DEVICE NAME TO BE USED FOR BACKUPS (DEFAULTS TO /etc/hostname) | |
| DEVICE="" |
| def build_tree(depth=3): | |
| curr_level = [1, 1] | |
| tree=[[1], curr_level] | |
| for i in range(depth-2): | |
| next_level = [] | |
| for i in range(len(curr_level)-1): | |
| next_level.append(curr_level[i] + curr_level[i+1]) | |
| next_level = [1, *next_level, 1] | |
| curr_level = list(next_level) | |
| tree.append(curr_level) |
| ARRIVAL=$(date -d @1556127000) | |
| echo 'Coming around:' | |
| echo ${ARRIVAL} |
| # Sample data | |
| img2_dims = [ | |
| [ | |
| [ | |
| 'a', | |
| 'b' | |
| ], | |
| ], | |
| [ | |
| [ |