Skip to content

Instantly share code, notes, and snippets.

View h0bbel's full-sized avatar
🥷
busy not developing.

Christian Mohn h0bbel

🥷
busy not developing.
View GitHub Profile
# Script to update a given Shodan Alert with new public IP, if the IP has changed
# v0.5 — Christian Mohn | vNinja.net
#!/bin/bash
# Variables
MYIPFILE="shodanip.txt" # The file where you keep your current public IP
MYIP=`shodan myip` # Get public IP through Shodan CLI and store it in the $MYIP variable
SHODANALERTID="XXXXXXXXXXXXXXXX" # Shodan Alert ID — NB! Replace with your own
@h0bbel
h0bbel / gist:a01d36abc6dc57d8fa876fdd42fa2603
Last active February 9, 2022 08:59
Custom REST sensor for EVO Fitness visitors at a given center, for Home Assistant (configuration.yaml)
- platform: rest
resource: https://visits.evofitness.no/api/v1/locations/451c2ecf-3268-4b2b-ac62-efa3206b6b14/current
value_template: "{{ value_json.current }}"
name: evocurrent
@h0bbel
h0bbel / sources.list
Last active September 25, 2024 00:46
/etc/apt/sources.list for Ubuntu 18.04.1 LTS Bionic Beaver
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ bionic-updates main restricted

Keybase proof

I hereby claim:

  • I am h0bbel on github.
  • I am cmohn (https://keybase.io/cmohn) on keybase.
  • I have a public key whose fingerprint is 7772 04CE 1839 8E83 1A33 3C8D B60F 4263 BFD6 00C7

To claim this, I am signing this object: