Skip to content

Instantly share code, notes, and snippets.

View dwilkie's full-sized avatar

David Wilkie dwilkie

View GitHub Profile
@dwilkie
dwilkie / import_contacts.rb
Last active December 9, 2021 08:51
Import contacts into SCFM
## import_contacts.rb
# Imports contacts into SCFM from CSV file.
### CSV file format
# CSV File must have a `phone_number` or `telephone_number` column
# which contains the phone number of the contact. The phone number
# must be in international E.164 format. All other additional columns
# are added to the contact's metadata with the key being the column header
@dwilkie
dwilkie / import_stories.rb
Last active January 14, 2022 11:45
Import UNICEF IF Workplan into Pivotal Tracker
## import_stories.rb
# Imports stories from the UNICEF Workplan into Pivotal Tracker from CSV file.
### CSV file format
# Export the UNICEF worklplan as CSV.
### Usage
@dwilkie
dwilkie / tcpdump.sh
Last active January 24, 2024 13:27
Docker tcpdump
sudo docker run -it --rm --net container:59da80a76475 nicolaka/netshoot # Replace 59da80a76475 with the running container ID
tcpdump -Xvv -i eth0 -s0 -w capture.pcap
curl -F "file=@capture.pcap" https://file.io
@dwilkie
dwilkie / rayo.md
Created January 30, 2024 07:16
Rayo Commands

Rayo Commands

Start FreeSWITCH Console

$ fs_cli -p secret

Get Rayo Status

@dwilkie
dwilkie / record.xml
Created April 3, 2024 15:25
TwiML record
<Response>
<Say voice="Polly.Russell">Hi Jen please leave a message after the beep</Say>
<Record action="https://somleng-recordings.free.beeceptor.com"/>
</Response>
<Response>
<Say voice="Polly.Aditi">Hello</Say>
</Response>
@dwilkie
dwilkie / .gitignore
Last active May 21, 2024 17:17
Bulk Download all Invoices from Wave
*.csv
*.pdf
.DS_Store