This file contains 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
from subprocess import Popen | |
import os, subprocess | |
def parseEnv(envoutput): | |
handle_line = lambda l: tuple(l.rstrip().split("=", 1)) | |
pairs = map(handle_line, envoutput) | |
valid_pairs = filter(lambda x: len(x) == 2, pairs) | |
valid_pairs = [(x[0].upper(), x[1]) for x in valid_pairs] | |
return dict(valid_pairs) |
This file contains 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
[Groups] | |
NumberOfGroups = 4 | |
[1] | |
TriggerTop = [Monitor1Top] + 400 | |
TriggerRight = [Monitor1Right] | |
TriggerBottom = [Monitor1Bottom] | |
TriggerLeft = [Monitor1Left] |
This file contains 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
# this is comment | |
logstorage.dropTable iis01 | |
logstorage.createTable iis01 v3p | |
# lines before "EOF" will be used as inputstream. input lines are not trimmed and cannot commented. | |
logpresso-index.createIndex iis01 i1 <<EOF | |
delimiter | |
;/ | |
This file contains 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
from cryptopan import CryptoPan | |
import re, sys | |
c = CryptoPan("".join([chr(x) for x in range(0, 32)])) | |
p = re.compile(r"^([^ ]+) ([^ ]+)") | |
def replace(mo): | |
try: | |
domain = mo.group(1) |
This file contains 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
package org.logpresso.misc; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.HashMap; | |
public class SignatureTesterMain { |
This file contains 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
int main() { | |
/* * | |
. . * 0 | |
0 . * . | |
. / * | |
. / * | |
. / . . . | |
/ | |
. * / . * | |
/ * |
This file contains 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
# -*- coding: utf-8 -*- | |
import traceback, sys | |
import bitly_api | |
from Tkinter import Tk | |
import tkMessageBox | |
access_token = '' | |
r = Tk() |
This file contains 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
@echo off | |
setlocal | |
set IP=%1 | |
arp -d %IP% | |
ping -4 -w 100 -n 1 %IP% > NUL | |
arp -a %IP% | findstr %IP% > NUL | |
exit /b %ERRORLEVEL% |
This file contains 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
@echo off | |
:chk | |
call ipconfl.bat %1 | |
if errorlevel 1 goto exit | |
timeout /t 1 > nul | |
goto chk | |
exit /b 1 | |
:exit |
This file contains 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
package sandbox; | |
import java.util.Date; | |
import java.util.concurrent.Phaser; | |
import java.util.concurrent.atomic.AtomicBoolean; | |
public class PhaserTest implements Runnable { | |
private static AtomicBoolean paused = new AtomicBoolean(false); | |
private static Phaser p = new Phaser(1); |
OlderNewer