This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
# RescueTime Data Exporter | |
# Dan Nixon | |
# 18/09/2011 | |
# forked from Chris Burgess (xurizaemon) | |
import urllib | |
import datetime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Soo-Hyun Choi | |
email = [email protected] | |
[commit] | |
; template = TizenScripts/commit-template | |
[core] | |
compression = 9 | |
editor = vim | |
deltaBaseCacheLimit = 1G | |
[http] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Soo-Hyun Choi | |
email = [email protected] | |
[sendemail] | |
smtpserver = smtp.gmail.com | |
smtpserverport = 587 | |
smtpencryption = tls | |
smtpuser = [email protected] | |
[color] | |
ui = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set meta-flag on | |
set input-meta on | |
set convert-meta off | |
set output-meta on | |
"\ep": history-search-backward | |
"\en": history-search-forward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder