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
# usage : `. ./alias-aws.sh` | |
CONTAINER_HOME=/ | |
if [[ "x$(id -u)" == "x0" ]]; then | |
CONTAINER_HOME=/root | |
fi | |
function awscli() { | |
docker run --rm -it -v ~/.aws:$CONTAINER_HOME/.aws -v $(pwd):/aws -u $(id -u):$(id -g) amazon/aws-cli $@ | |
} |
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
!v:: | |
SetTitleMatchMode,2 | |
DetectHiddenWindows, Off | |
if WinExist("ahk_class POEWindowClass") | |
{ | |
WinActivate | |
Send, {Enter} | |
Send, ^v | |
Send, {Enter} | |
} |
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
import org.araqne.api.*; | |
import org.araqne.ansicode.*; | |
class StringScriptInputStream implements ScriptInputStream { | |
def scanner; | |
StringScriptInputStream(String str) { | |
scanner = new Scanner(new StringReader(str)); | |
} |
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
#!/bin/bash | |
# Licensed to the Apache Software Foundation (ASF) under one | |
# or more contributor license agreements. See the NOTICE file | |
# distributed with this work for additional information | |
# regarding copyright ownership. The ASF licenses this file | |
# to you 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 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); |
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
@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
# -*- 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
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
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 { |
NewerOlder