Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Yili He elihe999

🎯
Focusing
View GitHub Profile
@elihe999
elihe999 / cloudSettings
Last active Aug 3, 2020
vscode extensions
View cloudSettings
{"lastUpload":"2020-08-03T13:30:58.250Z","extensionVersion":"v3.4.3"}
@elihe999
elihe999 / flashingpushbutton.h
Created Oct 18, 2019 — forked from jniemann66/flashingpushbutton.h
Making a flashing button in Qt
View flashingpushbutton.h
#ifndef FLASHINGPUSHBUTTON_H
#define FLASHINGPUSHBUTTON_H
#include <QPushButton>
#include <QTimer>
// class flashingPushButton
// Description: a QPushButton which flashes on and off whenever it is Disabled (to indicate that the app is busy processing ...)
class flashingPushbutton : public QPushButton{
@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
@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.