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
package brokendish; | |
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Cursor; | |
import java.awt.Graphics; | |
import java.awt.Insets; | |
import java.awt.Point; | |
import java.awt.datatransfer.DataFlavor; | |
import java.awt.datatransfer.Transferable; |
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
package brokendish; | |
import java.awt.BorderLayout; | |
import java.awt.Color; | |
import java.awt.Component; | |
import java.awt.Cursor; | |
import java.awt.Dimension; | |
import java.awt.EventQueue; | |
import java.awt.Graphics; | |
import java.awt.Insets; |
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
package brokendish; | |
import java.awt.BorderLayout; | |
import java.awt.Button; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import javax.swing.JApplet; | |
public class TreeAppletRun extends JApplet implements ActionListener{ |
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
package test; | |
import java.awt.*; | |
import java.awt.datatransfer.*; | |
import java.awt.dnd.*; | |
import java.io.*; | |
import javax.swing.*; | |
import javax.swing.tree.*; | |
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 -*- | |
import sys | |
import os | |
import Tkinter as Tk | |
import commands as com | |
import ScrolledText as St | |
import tkFileDialog as dlg | |
import tkMessageBox as msb |
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 | |
grep `dig $1|grep -A 1 'ANSWER SECTION'|tail -1|awk '{print($5)}'` /var/log/apache2/access_all.log | | |
awk 'BEGIN{FS="\""}{print $2}' | | |
sort | | |
uniq | | |
egrep -v "対象外文字1|対象外文字2" |
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
********ヒアドキュメントをリダイレクトしてファイルを作成******** | |
プロセスID付きのファイルを作成 | |
********** if文 開始********** | |
A-DaYO! | |
********** if文 終了********** | |
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 | |
#-------------------------------------------------------------- | |
#テスト用のファイルを作成する | |
#-------------------------------------------------------------- | |
echo '********ヒアドキュメントをリダイレクトしてファイルを作成********' | |
echo 'プロセスID付きのファイルを作成' | |
cat << EOF > test.lst$$ | |
abc 123 | |
def 456 | |
ghi 789 |
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
①grep 'ABC' /home/hoge/apache404log.txt | | |
②awk '{print $1}' | | |
③sort | | |
④uniq | | |
⑤xargs -I{} whois {} | | |
⑥grep -i country | | |
⑦sed 's/ //g' | | |
⑧sort | | |
⑨uniq | |
⑩>ABC_country.txt |
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
grep 'ABC' /home/hoge/apache404log.txt|awk '{print $1}'|sort|uniq|xargs -I{} whois {}|grep -i country|sed 's/ //g'|sort|uniq>ABC_country.txt |