You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰
error: gpg failed to sign the data
fatal: failed to write commit object
Understand the error (important to solve it later!)
| #!groovy | |
| // https://medium.com/rocket-travel-engineering/running-advanced-git-commands-in-a-declarative-multibranch-jenkinsfile-e82b075dbc53 | |
| // Jenkins only checks out the branch for performance reasons so to be able to do more advanced git commands we need to | |
| // also fetch master (or anything else you need) | |
| pipeline { | |
| agent any | |
| stages { | |
| stage ("info") { | |
| when { |
| a4b.amazonaws.com | |
| access-analyzer.amazonaws.com | |
| account.amazonaws.com | |
| acm-pca.amazonaws.com | |
| acm.amazonaws.com | |
| airflow-env.amazonaws.com | |
| airflow.amazonaws.com | |
| alexa-appkit.amazon.com | |
| alexa-connectedhome.amazon.com | |
| amazonmq.amazonaws.com |
$ uname -r
| import tempfile | |
| from PIL import Image | |
| class PhotoCreateAPIViewTest(TestCase): | |
| def setUp(self): | |
| super().setUp() | |
| self.tmp_file = tempfile.NamedTemporaryFile(suffix='.jpg') | |
| image = Image.new('RGB', (100, 100)) |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |
| 0 | |
| 0 1.5 | |
| 0 0.5 | |
| 0.2 0.1 | |
| 0.5 0 | |
| 0.8 0.1 | |
| 1 0.5 | |
| 1 1.5 | |
| 0.8 1.9 | |
| 0.5 2 |
I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)
| def get_count(q): | |
| count_q = q.statement.with_only_columns([func.count()]).order_by(None) | |
| count = q.session.execute(count_q).scalar() | |
| return count | |
| q = session.query(TestModel).filter(...).order_by(...) | |
| # Slow: SELECT COUNT(*) FROM (SELECT ... FROM TestModel WHERE ...) ... | |
| print q.count() |