Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Yili He elihe999

🎯
Focusing
Block or report user

Report or block elihe999

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View css-layout-svg-practice.markdown

CSS Layout & SVG Practice

Practice with simple CSS layout and a touch of SVG magic to replicate a section of the Gatsby website.

A Pen by eli on CodePen.

License.

@elihe999
elihe999 / pcap2wav
Created Jul 12, 2018 — forked from avimar/pcap2wav
Convert raw PCAP files into a .wav file
View pcap2wav
#!/bin/bash
#
# pcap2wav
# Original Author: Michael Collins <msc@freeswitch.org>
#Standard disclaimer: batteries not included, your mileage may vary...
# Updated by Avi Marcus <avi@bestfone.com>
#
# Accepts arg of pcap file w/only 2 RTP streams
# Creates a .<codec> file and a .wav file
# For codecs other than PCMA and PCMU the script calls fs_cli and does a little recording to create the wav file(s)
View simple-https-server.py
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
View simple-https-server.py
# python3 version, derived from python2 version https://gist.github.com/dergachev/7028596
#
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python3 simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
@elihe999
elihe999 / extract_rtp.sh
Created Jun 22, 2018 — forked from lanuma/extract_rtp.sh
Extract RTP from pcap to raw and convert to wav
View extract_rtp.sh
#!/bin/bash
pcap_file="voip.pcap"; #nama file pcap
audio_output="suara.wav"; #output audio
raw_file="suara.raw"; #nama raw file hasil extract
if [ $EUID -ne 0 ]; then
echo "This script must be run as root";
exit 1;
fi
You can’t perform that action at this time.