Open in app

Sign In

Write

Sign In

Pedro Gomes
Pedro Gomes

47 Followers

Home

About

Jul 25, 2022

Gitlab has killed the free tier, what are the alternatives?

For years, Gitlab has been the true pioneer of DevOps. A fast moving and truly innovating service that has introduced DevOps methodologies to thousands of engineers. …

Git

3 min read

Git

3 min read


Apr 27, 2022

Gitlab CI: Can’t launch runners

If you just came across this while running Gitlab CI docker-machine instance, you may need to update the base AMI image used by docker-image as it’s currently using 16.04 (ouch!) Some errors you may find in the logs Error while stopping machine Failed to process runner Unable to query docker…

Gitlab

2 min read

Gitlab

2 min read


Apr 12, 2022

Unexpected templating type error occurred on ({{ encrypted_var }}): can only concatenate str (not \”AnsibleVaultEncryptedUnicode\”) to str

Seems there’s a bug (or a feature) somewhere in Ansible which doesn’t translate encrypted variables (but it works fine with vault files), so when you try to use them on a template it will fail with the error above. To work around that, you could try setting a fact before hand which will decrypt the secure variable into a new variable. set_fact: pass_decoded: “{{ pass }}” Use the new variable in the template:

Ansible

1 min read

Ansible

1 min read


Mar 20, 2022

Do you ever have trouble getting started on your writing projects?

Do you ever have trouble getting started on your writing projects? Do you find yourself staring at a blank screen for hours, unable to come up with anything worthwhile? If so, you’re not alone. Many people suffer from writer’s block at some point in their careers. …

2 min read

2 min read


Feb 22, 2022

How to manage your Grafana instance using Ansible

Create user for your Ansible playbook Login as admin (the root user, not a user with admin role) Create a user for your ansible playbook Give it “Grafana Admin permissions” in `/admin/users/edit/:uid` 2. Create a sample playbook like - name: Deploy user/team/folder/dashboard in Grafana for customer hosts: localhost…

Ansible

2 min read

Ansible

2 min read


Dec 5, 2021

AnsibleUndefinedVariable: ‘ansible.vars.hostvars.HostVarsVars object’ has no attribute ‘my_var’

Having issues to troubleshoot this error and finding the faulty host? Verbose mode won’t help you, neither will looking at your hosts. One way to go at it, is to run ad-hoc commands, for instance we want to test the variable “ansible_host” which is (or should be) defined in host vars (we use it for templating): ansible -i inventory all -m debug -a "var=hostvars[inventory_hostname].ansible_host" Then you could get grep to filter out the matches like so:

Ansible

1 min read

Ansible

1 min read


Oct 1, 2021

Failed to fetch key at https://rpms.remirepo.net/RPM-GPG-KEY-remi2018

If you just started getting these, upgrade your target system packages. FAILED! => {"changed": false, "msg": "failed to fetch key at https://rpms.remirepo.net/RPM-GPG-KEY-remi2018 , error was: Request failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)>"} Personally I was only installing security and bugfixes like - name: Upgrade packages yum: name…

Python

1 min read

Python

1 min read


Aug 24, 2021

How to save 90% of your Imgix monthly invoice

Paying over 4 digits every single month for a simple image resizing service? Finding it difficult to rein in this ballooning expense item? Does your account manager want to lock you down on a yearly contract to save a few percent? Imgix is the typical Silicon Valley startup with VC…

Imgix

4 min read

How to save 90% of your Imgix monthly invoice
How to save 90% of your Imgix monthly invoice
Imgix

4 min read


Aug 22, 2021

The Flippening Watch

It’s only a matter of time when Ethereum becomes the number one crypto currency and all products are priced in gweis. In some measures Ethereum already beat Bitcoin. In others, it’s well underway to become #1. It’s already doing 6x as many transactions as the Bitcoin network. It has almost as many active wallets as Bitcoin. The hype around NFT and DeFI will only keep growing ETH and leave Bitcoin well behind it’s stagnant growth.

Eth

1 min read

Eth

1 min read


Aug 17, 2021

How to export all your Pingdom export checks

First of all, quickly generate a new read-only API token in https://my.pingdom.com/app/api-tokens Then, use the following code to get a quick export of your Pingdom exports with name, hostname and path. export PINGD_AUTH="[the api key you generated in step 1]" for i in `curl -X GET https://api.pingdom.com/api/3.1/checks -H 'Authorization:Bearer $PINGD_AUTH'…

Pingdom

1 min read

Pingdom

1 min read

Pedro Gomes

Pedro Gomes

47 Followers

https://gomes.sh/

Following
  • Robinhood

    Robinhood

  • JPEG'd

    JPEG'd

  • Nassim Nicholas Taleb

    Nassim Nicholas Taleb

  • Pitipat Srichairat

    Pitipat Srichairat

  • Art of Manliness

    Art of Manliness

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech