Skip to content

Instantly share code, notes, and snippets.

View Ostico's full-sized avatar

Domenico Lupinetti Ostico

View GitHub Profile
@Ostico
Ostico / instance-name-tag.sh
Created August 18, 2023 15:16 — forked from swithrow/instance-name-tag.sh
EC2 Instance Name Tag in the bash prompt.
#!/bin/bash
#
# copy this into /etc/profile.d/instance-name-tag.sh
#
# you will need:
# - curl, jq, and aws cli installed
# - an IAM role that gives the EC2 instance access to describe tags
#
@Ostico
Ostico / README.md
Last active September 14, 2023 16:29 — forked from zoilomora/README.md
How to use a custom `resolv.conf` file with systemd-resolved in Ubuntu

How to use a custom resolv.conf file with systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

    sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf: