Skip to content

Instantly share code, notes, and snippets.

Avatar
👾
CYBER

Nick Bouwhuis nickbouwhuis

👾
CYBER
View GitHub Profile
View stocks-to-lunchmoney.py
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.
View nick.itermcolors
<?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 / extensions.conf
Created Feb 20, 2022
Asterisk - Starter extensions.conf for use with phones and a provider
View extensions.conf
[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()
@nickbouwhuis
nickbouwhuis / pjsip.conf
Last active Feb 20, 2022
Asterisk - Starter pjsip.conf with one phone and one provider
View pjsip.conf
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0
; Phones
[6001]
type=endpoint
context=from-internal
View dabmux.mux
general {
dabmode 1
nbframes 0
tist true
}
remotecontrol { telnetport 0 }
ensemble {
id 0x4fff ; you can also use decimal if you want
View dabmod.ini
; Sample configuration file for ODR-DabMod
[remotecontrol]
telnet=1
telnetport=2121
zmqctrl=1
zmqctrlendpoint=tcp://127.0.0.1:9400
[log]
syslog=0
View keybase.md

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: