Skip to content

Instantly share code, notes, and snippets.

View iamrameshkumar's full-sized avatar

Ramesh Kumar K iamrameshkumar

  • Chennai, India
View GitHub Profile
@iamrameshkumar
iamrameshkumar / cowbasic_string.hpp
Created October 12, 2021 09:50 — forked from Manu343726/cowbasic_string.hpp
(conceptual) COW string implementation
/*
* A simple Copy On Write (COW) string implementation.
*
* Copyright © 2014 Manu Sanchez. @Manu343726 on GitHub, Stack Overflow, etc.
*
* manu343726.github.io
*
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
@iamrameshkumar
iamrameshkumar / MFDesktopToRTP.cpp
Last active October 22, 2019 12:30
Desktop To RTP Using Live555 and Windows Media foundation
/// Filename: MFDesktopToRTP.cpp
///
/// Description:
/// This file contains a C++ console application that captures the realtime video stream from desktop using
/// Windows Media Foundation, encodes it as H264 and then transmits it to an RTP end point using the real-time
/// communications API from Live555 (http://live555.com/).
///
/// To view the RTP feed produced by this sample the steps are:
/// 1. Download ffplay from http://ffmpeg.zeranoe.com/builds/ (the static build has a ready to go ffplay executable),
/// 2. Create a file called test.sdp with contents as below:
Enterprise: NJVYC-BMHX2-G77MM-4XJMR-6Q8QF
Professional: KBJFW-NXHK6-W4WJM-CRMQB-G3CDH
Keys are generic ones. These are the same from MSDN account.
Product Key : -6Q8QF
Validity : Valid
Product ID : 00369-90000-00000-AA703
Advanced ID : XXXXX-03699-000-000000-00-1032-9200.0000-0672017
@iamrameshkumar
iamrameshkumar / dummy-web-server.py
Created June 3, 2018 18:49 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@iamrameshkumar
iamrameshkumar / gist:98490024c9972d5fe3f4cea556d21f8c
Created July 4, 2017 17:04 — forked from darrenmothersele/gist:7597016
Sending base64 encoded data via HTTP in C++ using openFrameworks and Poco Net Libraries
// The main openFrameworks include
#include "ofMain.h"
// Poco is included in openFrameworks 0.8.0
#include "Poco/Net/HTTPClientSession.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPResponse.h"
#include "Poco/Base64Encoder.h"
#include "Poco/Net/HTMLForm.h"
#include "Poco/Net/StringPartSource.h"
#include "Poco/StreamCopier.h"
@iamrameshkumar
iamrameshkumar / ossl-ciphers-to-java.py
Created June 27, 2017 10:48 — forked from serac/ossl-ciphers-to-java.py
Convert OpenSSL TLS Cipher String to Java Cipher List
#!/usr/bin/env python
import sys
from os.path import basename
from subprocess import Popen, PIPE
"""Map of OpenSSL symmetric cipher names to cipher/block size tuples."""
CIPHERS={
'AES': ('AES', 128),
'AES128': ('AES', 128),
@serac
serac / ossl-ciphers-to-java.py
Created September 9, 2016 13:10
Convert OpenSSL TLS Cipher String to Java Cipher List
#!/usr/bin/env python
import sys
from os.path import basename
from subprocess import Popen, PIPE
"""Map of OpenSSL symmetric cipher names to cipher/block size tuples."""
CIPHERS={
'AES': ('AES', 128),
'AES128': ('AES', 128),
@darrenmothersele
darrenmothersele / gist:7597016
Created November 22, 2013 09:06
Sending base64 encoded data via HTTP in C++ using openFrameworks and Poco Net Libraries
// The main openFrameworks include
#include "ofMain.h"
// Poco is included in openFrameworks 0.8.0
#include "Poco/Net/HTTPClientSession.h"
#include "Poco/Net/HTTPRequest.h"
#include "Poco/Net/HTTPResponse.h"
#include "Poco/Base64Encoder.h"
#include "Poco/Net/HTMLForm.h"
#include "Poco/Net/StringPartSource.h"
#include "Poco/StreamCopier.h"