Skip to content

Instantly share code, notes, and snippets.

@dhgouveia2
dhgouveia2 / Vagrantfile
Last active March 27, 2024 18:41
Kube 3cluster lab - vmware_desktop provider
Vagrant.configure("2") do |config|
#VM settings
config.vm.provider "vmware_desktop" do |v|
v.vmx["memsize"] = "2048"
v.vmx["numvcpus"] = "2"
end
config.vm.box = "bento/ubuntu-22.04"
#!/bin/bash
# Flush IPtables rules
iptables -F
# Ensure default deny firewall policy
iptables -P INPUT DROP
iptables -P OUTPUT DROP
iptables -P FORWARD DROP
@dhgouveia2
dhgouveia2 / gw2.telegram.py
Created August 18, 2021 17:01
Simple Telegram Bot that notifies me when an item is sold in GW2 Trading Post
#!/bin/python
import requests
import json
from datetime import datetime
GW2_API_KEY = "" # Get it from https://account.arena.net/applications with 'account', 'tradingpost' scopes
GW2_API_LANG = "en" # en, es, de, fr and zh: https://wiki.guildwars2.com/wiki/API:2#Localisation
TELEGRAM_API_KEY = "" # Get this from telegram using @BotFather
TELEGRAM_CHAT_ID = [""] # Search how to get the chatID of your username or use @RawDataBot