Skip to content

Instantly share code, notes, and snippets.

View soohyunc's full-sized avatar

Soo-Hyun Choi soohyunc

View GitHub Profile
@soohyunc
soohyunc / RescueTimeExport.py
Last active August 18, 2019 11:48 — forked from veekas/RescueTimeExport.py
RescueTime Data Export
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# RescueTime Data Exporter
# Dan Nixon
# 18/09/2011
# forked from Chris Burgess (xurizaemon)
import urllib
import datetime
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>168.219.61.252</host>
<port>8080</port>
<nonProxyHosts>165.213.180.100|localhost|165.213.118.100</nonProxyHosts>
#!/bin/sh
# From Gerrit Code Review 2.13.7
#
# Part of Gerrit Code Review (https://www.gerritcodereview.com/)
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
[user]
name = Soo-Hyun Choi
email = sh9.choi@samsung.com
[commit]
; template = TizenScripts/commit-template
[core]
compression = 9
editor = vim
deltaBaseCacheLimit = 1G
[http]
#!/bin/bash
# http://bit.ly/2ines3u
# TODO: At night only dark wallpapers.
# Wallpaper's directory.
dir="${HOME}/.cache/himawaripy/"
# export DBUS_SESSION_BUS_ADDRESS environment variable
PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
import sys, time, struct, socket, array
if len(sys.argv) != 6:
print("Usage: ./tcspoof iface srcMAC gatewayMAC srcIP:sport-range dstIP:dport")
print("E.g. ./tcspoof eth0 aa:bb:dd:99:88:77 aa:bb:cc:00:11:22 1.2.3.4:1024-65535 80.100.131.150:80") # 'DELETE / HTTP/1.0\\n\\n'")
print("The source port range is inclusive.")
print("NOTE: appending payload currently not supported for a couple reasons.")
sys.exit(1)
[user]
name = Soo-Hyun Choi
email = s.choi@hackerslab.eu
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = s.choi@hackerslab.eu
[color]
ui = auto
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
"\ep": history-search-backward
"\en": history-search-forward
<!DOCTYPE html>
<h1>Simple web camera display demo</h1>
<video autoplay></video>
<script type="text/javascript">
var video = document.getElementsByTagName('video')[0],
heading = document.getElementsByTagName('h1')[0];
if(navigator.webkitGetUserMedia) {
navigator.webkitGetUserMedia('video', successCallback, errorCallback);
function successCallback( stream ) {
@soohyunc
soohyunc / queueSize.tcl
Created June 21, 2013 10:19
ns-2 queueSize.tcl
proc setQueueSize {rate queue node1 node2} {
global ns
switch $rate {
60 {
$ns queue-limit $node1 $node2 1000
$ns queue-limit $node2 $node1 1000
if {$queue=="RED"} {
set redq [[$ns link $node1 $node2] queue]
$redq set thresh_ 100
$redq set maxthresh_ 500