This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'puppetlabs_spec_helper/rake_tasks' | |
require 'puppet-lint/tasks/puppet-lint' | |
PuppetLint.configuration.send('disable_80chars') | |
PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp"] | |
desc "Run all RSpec code examples" | |
RSpec::Core::RakeTask.new(:rspec) do |t| | |
t.rspec_opts = File.read("spec/spec.opts").chomp || "" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fixtures: | |
repositories: | |
symlinks: | |
"mymodule": "#{source_dir}" | |
"stdlib": "/etc/puppet/modules/stdlib" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
USERNAME="" | |
REALM="" | |
PASSWORD="" | |
METHOD="REGISTER" | |
DIGEST_URI="" | |
NONCE="" | |
EXPECTED="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<nop> | |
<action> | |
<exec play_pcap_audio="rtp_opus.pcap"/> | |
</action> | |
</nop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"action": "conversation", | |
"name": "audio_delay_2", | |
"startOnEnter": true, | |
"record": true | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
F15 ACK Alice -> Proxy 1 | |
ACK sip:[email protected] SIP/2.0 | |
Via: SIP/2.0/TCP client.atlanta.example.com:5060;branch=z9hG4bK74b76 | |
Max-Forwards: 70 | |
Route: <sip:ss1.atlanta.example.com;lr>, | |
<sip:ss2.biloxi.example.com;lr> | |
From: Alice <sip:[email protected]>;tag=9fxced76sl | |
To: Bob <sip:[email protected]>;tag=314159 | |
Call-ID: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <openssl/evp.h> | |
#include <openssl/rand.h> | |
#include <openssl/bio.h> | |
#include <openssl/buffer.h> | |
#include <zlib.h> | |
static char *base64_decode(const char *input, int length, int *output_length) { | |
BIO *bio, *b64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gcc decrypt.c -o decrypt -lssl -lz -lcrypto | |
encrypted="..." | |
tag="..." | |
iv="..." | |
key="..." | |
./decrypt "${encrypted}" "${tag}" "${iv}" "${key}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import binascii | |
import opuslib | |
import wave | |
total_len = 0 | |
def process_audio_data(audio_data, wav_file): | |
# print(binascii.hexlify(audio_data)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyshark | |
import opuslib | |
import wave | |
import argparse | |
FRAME_SIZE = 960 | |
SAMPLE_RATE = 48000 | |
CHANNEL_COUNT = 1 | |
SAMPLE_WIDTH = 2 |