Skip to content

Instantly share code, notes, and snippets.

View NickBouwhuis's full-sized avatar
👾
CYBER

Nick Bouwhuis NickBouwhuis

👾
CYBER
View GitHub Profile
#!/bin/bash
# download the image
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img -O /tmp/jammy-server-cloudimg-amd64.img
# create a new VM
qm create 9001 --name ubuntu --memory 2048 --net0 virtio,bridge=vmbr0
# import the downloaded disk to local-lvm storage
qm importdisk 9001 /tmp/jammy-server-cloudimg-amd64.img local-lvm
openapi: 3.0.3
info:
title: Imgflip API
description: API documentation for integrating with Imgflip
version: 1.0.0
servers:
- url: https://api.imgflip.com
paths:
/get_memes:
get:
iVBORw0KGgoAAAANSUhEUgAAAGQAAABzCAMAAABZ71dFAAAAwFBMVEVHcEzYrVXmxnnWq07iv3OGTwmaZBaZd0LFn1Hr2qjpz4vq0ZLYo0LmxXjRmzfEji7nzIXPmTHlxXfQmC/lsE+JVBLpz47w4a7kw3Hqw3zozo7UlyHx8OyGemH7+/u6nGHk4Nq+gyS8exnKljPIkS6tchnPmjnFiyPXoT7lsVDfqEP778tRRjbxu1UEAwMuJx/nyoasp5vz5LfhuGXGwbjx4KrWmy3568KVi3Xt15rVrGLkwW3p0ZLzz3jnx3puYk0+gPMUAAAAGHRSTlMAMkoX/f7+Awf+tPt4k5tTcMDW4dqg5dhJAHXKAAAMi0lEQVR4XrTV6W6kOBQF4KKRjUfDVCkKeYC7eKPWJVv3bO//VnNtgpjuLgKU1Ef5GdXH4fqa1XTMl9JUq18as6r/btZmNY+pquqOB6pWpon0Wgv2K4sUMRL4jXAzHqhY10V5B/JlH53GrEy/WQqO8Ok+xGrkQpSp0kIQabWp7kHAol8LMmE0LQuCSskDLUYCa4sgVT6vHCPlKLURchFSC6LVRBUxTNy7bLBW9R1NWCmNCKUoo0bV7APlgFL/mkVKlZo4K0qqYkb/q+wM5oyopchaEK+VQvSFKGMbmw0C74i1TH4h8kd61bkKPJbDzZH8IWJ4MRiBibxMfikSmRwoUSw8bkyPp07GVCmyhGIkBBDRs/R+EmRJmkjsAa0WxLvHh4f1uq4339XdtIE8E4uRFVyGyERjJEDPaZnTX8ihdS3apihLY8qNc44tE2CHOEjIsl0MgCFKKIcpR6DXV4EfJa9ErIHoQ/FktTLLDlfrfTZi6+jnsLRIhk2GtogWgXkRIiMN5OJHAt0IJEnZvB85FsScPxM5NptAbezjbiEITgxP5HWPsFeCzCXkXo1DWroVB1ZrTAhgZjQQzENyW1PH/XcGw80u2iJTX0VbIDsPSS3qpiOGiQDyLQUw4WwzkkCt5n2ti2afiSH50qCb
import requests
import forex_python.converter
# Define variables
stocks = {"AAPL": 100, "TSLA": 100, "MSFT": 100}
finnhub_token = 'xxx'
lunchmoney_token = 'xxx'
lunchmoney_assetid = 1234
# Initialize the total worth in EUR.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.18290215730667114</real>
@NickBouwhuis
NickBouwhuis / pjsip.conf
Last active February 20, 2022 19:07
Asterisk - Starter pjsip.conf with one phone and one provider
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
; Phones
[6001]
type=endpoint
context=from-internal
@NickBouwhuis
NickBouwhuis / extensions.conf
Created February 20, 2022 19:06
Asterisk - Starter extensions.conf for use with phones and a provider
[from-internal]
exten = 200,1,Answer()
same = n,Wait(1)
same = n,Playback(hello-world)
same = n,Hangup()
exten = _[+X].,1,Noop (Outgoing call to ${EXTEN} via example)
same.= n,Dial(PJSIP/${EXTEN}@example)
same = n,Hangup()
general {
dabmode 1
nbframes 0
tist true
}
remotecontrol { telnetport 0 }
ensemble {
id 0x4fff ; you can also use decimal if you want
; Sample configuration file for ODR-DabMod
[remotecontrol]
telnet=1
telnetport=2121
zmqctrl=1
zmqctrlendpoint=tcp://127.0.0.1:9400
[log]
syslog=0

Keybase proof

I hereby claim:

  • I am nickbouwhuis on github.
  • I am nickbouwhuis (https://keybase.io/nickbouwhuis) on keybase.
  • I have a public key whose fingerprint is 972A 834C 01AB 74E2 3BD5 A95A 91CA 49C4 52DD 6FF6

To claim this, I am signing this object: