$ cat t.py
from pprint import pprint
from pytheory import Tone, Fretboard, charts_for_fretboard
tones = (
Tone.from_string("F2"),
Tone.from_string("C3"),
Tone.from_string("G3"),
Tone.from_string("D4"),
$ cat t.py
from pprint import pprint
from pytheory import Tone, Fretboard, charts_for_fretboard
tones = (
Tone.from_string("F2"),
Tone.from_string("C3"),
Tone.from_string("G3"),
Tone.from_string("D4"),
Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
| proxy_cache_path /tmp/cacheapi levels=1:2 keys_zone=microcacheapi:100m max_size=1g inactive=1d use_temp_path=off; | |
| server { | |
| listen 443 ssl http2 default_server; | |
| listen [::]:443 ssl http2 default_server; | |
| server_name example.com; | |
| location /api/ { | |
| # Rate Limiting | |
| limit_req zone=reqlimit burst=20; # Max burst of request |
| version: '2' | |
| services: | |
| zookeeper: | |
| image: "confluentinc/cp-zookeeper:4.1.0" | |
| hostname: zookeeper | |
| ports: | |
| - "2181:2181" | |
| environment: | |
| ZOOKEEPER_CLIENT_PORT: 2181 |
| import cv2 | |
| import time | |
| person_cascade = cv2.CascadeClassifier( | |
| os.path.join('/path/to/haarcascade_fullbody.xml')) | |
| cap = cv2.VideoCapture("/path/to/test/video") | |
| while True: | |
| r, frame = cap.read() | |
| if r: | |
| start_time = time.time() |
| import concurrent.futures | |
| import functools | |
| import operator | |
| import time | |
| from pprint import pprint | |
| TEXT = """Lorem ipsum dolor sit amet, consectetuer adipiscing elit. | |
| Donec odio. Quisque volutpat mattis eros. Nullam malesuada erat ut turpis. | |
| Suspendisse urna nibh, viverra non, semper suscipit, posuere a, pede. | |
| Donec nec justo eget felis facilisis fermentum. Aliquam porttitor mauris |
| height = 7 | |
| width = 7 | |
| board_spaces_occupied = [ | |
| [ 1, 0, 1, 1, 1, 0, 0], | |
| [ 1, 1, 0, 1, 1, 0, 1], | |
| [ 1, 1, 1, 1, 0, 0, 1], | |
| [ 1, 0, 1, 0, 1, 1, 1], | |
| [ 1, 0, 0, 1, 1, 1, 1], | |
| [ 0, 0, 1, 0, 0, 1, 1], | |
| [ 0, 1, 1, 0, 1, 1, 1], |
So, you've created a Python app (be it a graphical user interface with Qt or the like, or a simple command line interface). Great! But how are others going to use it? Python applications often have dependencies (e.g. from third-party modules), and they also need a Python interpreter to run them. For a developer, installing all the necessary bits and bobs to make things work is okay, but that's unacceptable for a normal user - they just want to download the thing and run it.
Below are simple instructions to publish your app on the three main operating systems: Windows, macOS and Linux.
| from datetime import datetime, timedelta | |
| import functools | |
| def timed_cache(**timedelta_kwargs): | |
| def _wrapper(f): | |
| update_delta = timedelta(**timedelta_kwargs) | |
| next_update = datetime.utcnow() + update_delta | |
| # Apply @lru_cache to f with no cache size limit |
GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.
You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.
$ python githubcloner.py --org organization -o /tmp/output