Skip to content

Instantly share code, notes, and snippets.

Woosuk Suh pipoket

Block or report user

Report or block pipoket

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
@pipoket
pipoket / clock.html
Created Oct 4, 2019 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
View clock.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@pipoket
pipoket / test_echo.py
Created Mar 24, 2017
For KAIST 2017 Spring CS341 Socket program test
View test_echo.py
import sys
DATA = b"\x01\x01\x01\x01\x02\x02\x02\x02\x02\x02\x03\x03\x04\x02\x01\x09\x09\\0"
sys.stdout.write(DATA)
sys.stdout.flush()
@pipoket
pipoket / nginx.conf
Last active May 1, 2017 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@pipoket
pipoket / rasphone.txt
Created Aug 15, 2015
Windows VPN Script
View rasphone.txt
[myvpn]
MEDIA=rastapi
Port=VPN2-0
Device=WAN Miniport (IKEv2)
DEVICE=vpn
PhoneNumber=pptp.vpn.address
View flume.py
#!/usr/bin/env python
#
# tap -> flume
#
# requires: python thrift bindings + compiled flume thrift binding.
#
import sys
import time
import struct
@pipoket
pipoket / counter.py
Created Jul 2, 2012 — forked from ericmoritz/counter.py
A counter stored in Riak that handles conflict resolutions on read
View counter.py
import logging
import riak
log = logging.getLogger(__name__)
class RiakCounter(object):
def __init__(self, bucket, key):
self.bucket = bucket
self.bucket.set_allow_multiples(True)
self.key = key
@pipoket
pipoket / udpserver.py
Created Nov 25, 2011
UDP server implementation for gevent. Copied from http://code.google.com/p/gevent/issues/detail?id=50
View udpserver.py
# Copyright (c) 2009-2010 Denis Bilenko. See LICENSE for details.
"""UDP/SSL server"""
import sys
import errno
import traceback
from gevent import socket
from gevent import core
from gevent.baseserver import BaseServer
@pipoket
pipoket / gethreading.py
Created Nov 25, 2011 — forked from serialx/gethreading.py
gevent getthreading
View gethreading.py
import gevent, gevent.event
import threading, Queue, collections, time, functools
def _threads_poller_f():
while _OsThread._threads_count:
try:
t, rv, isexc = _OsThread._threads_results.get_nowait()
except Queue.Empty:
gevent.sleep()
else:
You can’t perform that action at this time.