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
# Copyright (c) 2014 Atif Aziz. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
""" | |
This code is adapted from one of Vitalik's earliest implementations of Ethereum, | |
written in python surprisingly. It helps demonstrate the process behind ECDSA | |
""" | |
import numpy as np | |
import hashlib, hmac | |
import sys | |
if sys.version[0] == '2': | |
safe_ord = ord | |
else: |
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
import os | |
import time | |
import numpy as np | |
import re | |
import unicodedata | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC |
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
""" | |
Expects a config file containing the app data from https://my.telegram.org/apps | |
to be saved at ``'~/.telegram/conf.yaml'`` | |
```yaml | |
cgrab: | |
id: <yourId> | |
hash: <yourHash> | |
servers: | |
test: |
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/bash | |
set -ue | |
err() { echo 1>&2 "$*"; } | |
die() { err "ERROR: $*"; exit 1; } | |
mustBool() { | |
[[ "${1#*=}" = "true" || "${1#*=}" = "false" ]] || | |
die "bad boolean property value: $1" | |
} | |
mustInt() { | |
[[ "${1#*=}" =~ [0-9]+ ]] || |
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/bash | |
# Usage: ./script.sh -o [owner-name] <PROJECT_NUMBER> <STATUS> | |
# | |
# This script fetches issues or pull requests from the specified project number with a specific status | |
# from the given owner's repository. | |
# The mandatory parameters are 'owner' passed as a flag -o and PROJECT_NUMBER, STATUS passed as positional arguments. | |
# It also accepts an optional parameter '-j' for JSON output. If provided, it pretty prints the output in markdown format. | |
# Example: ./script.sh -o my-org 123 "In Progress" | |
# ./script.sh -o my-org -j json 123 "In Progress" |
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
# Script Name: pr-unresolved-review-comments | |
# | |
# Description: | |
# This script is used to fetch unresolved review comments from a pull request in a Github repository. | |
# The script uses Github's GraphQL API to query the repository and filter out resolved comments. | |
# It returns a list of unresolved comment threads, which can then be processed as per requirements. | |
# | |
# Usage: | |
# There are two general use cases for this script. | |
# |
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/bash | |
# This script lists all the open issues in specified owner's repository or all repositories if no specific one is given. | |
# The mandatory parameter is -o (owner) and optional parameters are -r (repository) and -c (cache time). | |
# If no repository(-r) is mentioned, it fetches issues from all repositories of that owner. | |
# It also caches results of recently fetched project issues based on cache_time (-c). The default cache_time is 3600 seconds if not passed. | |
# After fetching all issues, it finds the difference between all_issues and issue_details to get issues not allocated to any project. | |
# Usage: ./script_name.sh -o [owner] -r [repository] -c [cache_time] | |
# Example: ./script_name.sh -o Microsoft -r vscode -c 5000 |
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
""" | |
Analyze and visualize Ethereum contract transactions. | |
It connects to the Ethereum mainnet, retrieves transaction logs, and creates an interactive graph showing | |
transaction history between various addresses. The script supports command-line arguments for customization such | |
as specifying contract addresses, enabling circular layouts, and excluding certain types of addresses. | |
Author: Alex McFarlane <alexander.mcfarlane@physics.org> | |
License: MIT | |
Can be called like as follows (example is USDY): |
This file has been truncated, but you can view the full file.
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
f0VMRgIBAQAAAAAAAAAAAAMAtwABAAAApCIIAAAAAABAAAAAAAAAAHDSIAMAAAAAAAAAAEAAOAAJ | |
AEAAIgAhAAYAAAAEAAAAQAAAAAAAAABAAAAAAAAAAEAAAAAAAAAA+AEAAAAAAAD4AQAAAAAAAAgA | |
AAAAAAAAAwAAAAQAAAA4AgAAAAAAADgCAAAAAAAAOAIAAAAAAAAbAAAAAAAAABsAAAAAAAAAAQAA | |
AAAAAAABAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANjNJgEAAAAA2M0mAQAAAAAAAAEA | |
AAAAAAEAAAAGAAAAUE4nAQAAAABQTigBAAAAAFBOKAEAAAAAyMMCAAAAAADwKgMAAAAAAAAAAQAA | |
AAAAAgAAAAYAAAC48ykBAAAAALjzKgEAAAAAuPMqAQAAAAAgAgAAAAAAACACAAAAAAAACAAAAAAA | |
AAAEAAAABAAAAFQCAAAAAAAAVAIAAAAAAABUAgAAAAAAAEQAAAAAAAAARAAAAAAAAAAEAAAAAAAA | |
AFDldGQEAAAATDgZAQAAAABMOBkBAAAAAEw4GQEAAAAAjJUNAAAAAACMlQ0AAAAAAAQAAAAAAAAA | |
UeV0ZAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAABS | |
5XRkBgAAAFBOJwEAAAAAUE4oAQAAAABQTigBAAAAALCxAgAAAAAAsLECAAAAAAAIAAAAAAAAAC9s |
OlderNewer