Skip to content

Instantly share code, notes, and snippets.

View Benargee's full-sized avatar

Benargee Benargee

  • Ontario, Canada
View GitHub Profile
@whoo24
whoo24 / client.cpp
Created June 24, 2013 07:15
Basic Winsock Program
#include "stdafx.h"
#include <WinSock2.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
void run_client()
{
WSADATA wsaData;
WSAStartup( MAKEWORD(2,2), &wsaData );
@ysaotome
ysaotome / install_pyenv.sh
Last active August 7, 2021 13:27
pyenv install for CentOS 6.5 x86_64
#!/bin/zsh
# pyenv install for CentOS 6.5 x86_64
yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
@A412
A412 / stripe_api
Last active January 6, 2019 03:40
geeni stripe api
base url is www.geeni.org
first two indentations are paths
CAPITALS are request methods
last identation is queries
return is in {}
state is 1 for success 0 for anything else
message is "success" or failure message
stripeid/chargeid is stripe internal id for object, already written to firebase so no need to
site will use HTTPS/SSL in future but currently does not so stick to test ccs / bank accounts