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 / 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),
@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 / TestPattern.cpp
Created November 19, 2017 11:56 — forked from roxlu/TestPattern.cpp
Example usage of X264. We create a raw YUV pattern and encode it with x264.
#include <cmath>
#include <assert.h>
#include <core/TestPattern.h>
TestPattern::TestPattern()
:w(0)
,h(0)
,frame_num(0)
,duration(0)
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
git push -u --force origin master
@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
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
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <uv.h>
#include "cassandra.h"
#define USE_COMPOUND_PARTITION_KEY 0
@iamrameshkumar
iamrameshkumar / README.md
Created August 23, 2018 15:06 — forked from tuxmartin/README.md
Minimal Poco websocket C++ client

Stazeni a kompilace POCO

wget http://pocoproject.org/releases/poco-1.7.3/poco-1.7.3.tar.gz
tar xzf poco-1.7.3.tar.gz
cd poco-1.7.3
./configure --minimal --static --no-samples --no-tests
time make -j4 -s
cd lib/Linux/x86_64/
for f in *.a; do "strip $f"; done
@iamrameshkumar
iamrameshkumar / LoginForm.js
Created February 3, 2019 08:08 — forked from EduardoSaverin/LoginForm.js
Material UI React Login Form
import React from 'react';
import { Paper, withStyles, Grid, TextField, Button, FormControlLabel, Checkbox } from '@material-ui/core';
import { Face, Fingerprint } from '@material-ui/icons'
const styles = theme => ({
margin: {
margin: theme.spacing.unit * 2,
},
padding: {
padding: theme.spacing.unit
}
@iamrameshkumar
iamrameshkumar / VideoStreaming.cpp
Created March 8, 2019 17:13
Video Streaming Sample
#include <Windows.h>
#include <mfapi.h>
#include <mfidl.h>
#include <Mfreadwrite.h>
#include <mferror.h>
#include <d3d9.h>
#pragma comment(lib, "mfreadwrite")
#pragma comment(lib, "mfplat")
#pragma comment(lib, "mfuuid")