Skip to content

Instantly share code, notes, and snippets.

View clodo's full-sized avatar

Claudio Juan Bidau clodo

View GitHub Profile
@clodo
clodo / log
Created October 21, 2022 19:29
log
$ python pin-script.py
lib_version.err[assurance_service|intrustapi]: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
lib_version.err[assurance_service|intrustauth]: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
lib_version.err[auth_api|commons-database-service-wrapper]: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
lib_version.err[authui_service|intrustmo]: Unable to find image '058129942052.dkr.ecr.us-east-1.amazonaws.com/core/k8s/authui:prod-20211201-145509-1' locally
prod-20211201-145509-1: Pulling from core/k8s/authui
@clodo
clodo / json
Last active October 26, 2022 20:40
libraries
{'assurance_service': {'image_name': 'app/k8s/assurance_service',
'image_tag': 'v1.4.0-24',
'libs': {'commons-database-service-wrapper': {'location': 'requirements-3pt.txt',
'pattern': 'commons-database-service-wrapper<1.0.0',
'version_found': 'commons-database-service-wrapper==0.1.11'},
'commons-logging': None,
'commons-requests': {'location': 'requirements-3pt.txt',
'pattern': 'commons-requests>=1.0.1,<2.0.0',
'version_found': 'commons-requests==1.3.0'},
'intrustapi': None,
$ docker-compose -f docker-compose.yml -f docker-compose.ci.yml build --no-cache
rabbitmq uses an image, skipping
Building postgres
[+] Building 1.2s (7/7) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 36B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/postgres:12-alpine 0.0s
=> [internal] load build context
[{'company_uuid': '0c7d89a5-5141-406b-a51d-3536217d22ee', 'vendors': []}, {'company_uuid': '088e1e6e-bfb7-4136-a33f-17917fb0a58a', 'vendors': ['b2a83d53-5d45-4051-a03c-9a318b425dd8', '01866c0c-6e79-4b55-a9a5-72eefffd1f4f', 'b66842a2-ab93-49ff-b330-b8c0c6eeee64', 'b2a83d53-5d45-4051-a03c-9a318b425dd8']}, {'company_uuid': 'eaf06c51-5447-4764-b949-a3e1525ccf92', 'vendors': []}, {'company_uuid': '688c29a1-29a2-4171-8c92-92136c4ea1a1', 'vendors': []}, {'company_uuid': '0160af38-50ec-40a7-8001-3b6bd63c9fec', 'vendors': ['4629bdee-7dda-4c0a-a9f4-40a126ef8bd4', 'f0fac7ce-f57b-4f8c-a2d7-cba47d889f8a', 'bcaebfb4-9c02-4703-b1fc-79fa1a8e337a', 'd7e1365d-3afd-4564-9406-04ff4ef47f2e', 'fb8b9969-1698-4792-92ec-aefefeaadeac', '05683dbe-e327-4109-beea-662ef1814a1d', '91648e3f-8219-458f-87de-70fcf6d29939', '527f969b-e20e-426d-89bc-9d0c38b258ff', '3329cea6-8544-43a4-b7a5-2358122df9f7', '72174b40-176f-4a2b-9b82-4d33a1fe2dad', '109bcfe5-d4a2-4bf5-a625-381ee0f00243', 'f41d64e3-eb21-4f7d-966e-355e076eb374', '62b8e8d2-15ec-4538-9f4a
<!DOCTYPE html>
<html>
<head>
<title>Sky Map</title>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.1/css/all.css">
<link rel="stylesheet" type="text/css" href="css/album.css">
<script
@clodo
clodo / rename_tag.sh
Created April 11, 2019 13:56
Git rename branch
git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags
@clodo
clodo / snippet.html
Created October 18, 2018 13:40
snippet
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
hbspt.forms.create({
portalId: "2016445",
formId: "c969940c-6226-402b-9701-f5269a98b844",
css: "",
onFormSubmit: function($form) {
{
"Type" : "Notification",
"MessageId" : "7a598f1d-8eed-509f-803d-dcb1fc08f290",
"TopicArn" : "arn:aws:sns:us-east-1:782253790350:STGCustomersPush",
"Subject" : "Amazon S3 Notification",
"Message" : "{\"Records\":[{\"eventVersion\":\"2.0\",\"eventSource\":\"aws:s3\",\"awsRegion\":\"us-east-1\",\"eventTime\":\"2018-06-26T16:58:13.664Z\",\"eventName\":\"ObjectCreated:Put\",\"userIdentity\":{\"principalId\":\"AWS:AIDAJARIGOXKWYSBB5BDO\"},\"requestParameters\":{\"sourceIPAddress\":\"186.137.89.152\"},\"responseElements\":{\"x-amz-request-id\":\"7AA48AE6C6EB60EF\",\"x-amz-id-2\":\"kDUFfa49rn+1Upy6JP8iWx0crKSndOM9vcfpFhcZgIoOGzLbvYuRI6MKbfYhxgmMOMWbtBvTVyU=\"},\"s3\":{\"s3SchemaVersion\":\"1.0\",\"configurationId\":\"STGCustomerPush\",\"bucket\":{\"name\":\"abc768d6f8-mock-customers-ja2mz\",\"ownerIdentity\":{\"principalId\":\"AFTDDLTXJ4QLT\"},\"arn\":\"arn:aws:s3:::abc768d6f8-mock-customers-ja2mz\"},\"object\":{\"key\":\"13fF3tTA/deployment_file_01.csv\",\"size\":0,\"eTag\":\"d41d8cd98f00b204e9800998ecf8
Traceback (most recent call last):
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
response = self.full_dispatch_request()
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask_cors/extension.py", line 161, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/clodo/Projects/Bridge/internal-reporting-dashboard/venv/local/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
#!/usr/bin/env bash
# Shell prompt based on the Solarized Dark theme.
# Screenshot: http://i.imgur.com/EkEtphC.png
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then