Skip to content

Instantly share code, notes, and snippets.

View soohyunc's full-sized avatar

Soo-Hyun Choi soohyunc

View GitHub Profile
set meta-flag on
set input-meta on
set convert-meta off
set output-meta on
"\ep": history-search-backward
"\en": history-search-forward
[user]
name = Soo-Hyun Choi
email = [email protected]
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = [email protected]
[color]
ui = auto
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)
#!/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-)
[user]
name = Soo-Hyun Choi
email = [email protected]
[commit]
; template = TizenScripts/commit-template
[core]
compression = 9
editor = vim
deltaBaseCacheLimit = 1G
[http]
#!/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
<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>
@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