#! /bin/python
import sys
from scapy.all import *
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/sh | |
sudo iptables -F | |
sudo iptables -P INPUT ACCEPT | |
sudo iptables -P FORWARD ACCEPT | |
sudo iptables -P OUTPUT ACCEPT | |
sudo /etc/init.d/apache2 restart | |
sudo sysctl -w vm.drop_caches=3 | |
vmstat 1 700 > status.log & |
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/sh | |
sudo tail -f /var/log/apache2/p3/access.log | awk '{ | |
d = sprintf("%s-%s",$1,$4) | |
if($1 ~ /::1/) | |
{ | |
}else if(list[$1]=="done"){ | |
}else if(!(d in data)){ |
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
#include<iostream> | |
#include<iomanip> | |
int main(int argc, char *argv[]){ | |
int n; | |
double input; | |
std::cout << "n次元の連立方程式:"; | |
std::cin >> n; | |
double a[n][n]; | |
double e[n][n]; |
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
#include<iostream> | |
#include<iomanip> | |
int main(int argc, char *argv[]){ | |
int n; | |
double input; | |
std::cout << "n次の正方行列? n:"; | |
std::cin >> n; | |
double a[n][n]; | |
for(int i=0;i<n;i++){ |
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
#include<iostream> | |
#include<iomanip> | |
int main(int argc, char *argv[]){ | |
int n; | |
double input; | |
std::cout << "n次の正方行列? n:"; | |
std::cin >> n; | |
double a[n][n]; | |
double e[n][n]; |
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 | |
i=0; | |
tail -f path | awk '{if(list[$1]=="done"){}else if(list[$1] == $4){print $1;list[$1]="done"}else{list[$1] = $4}}' | while read line | |
do | |
i=$(( i + 1 )) | |
echo "$i:$line" | |
done |
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
while true | |
do | |
D=`data -d '5 seconds ago' +"%d/%b/%Y:%k:%M:%S"` | |
sleep 1 | |
cat /etc/httpd/logs/access_log | grep "$D" | cut -d " " -f 1 | sort | uniq -c |sort -nr | awk '$1 > 2{print $2}' | |
done |
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
LD ACC,FFh | |
ST ACC,(image) | |
LD ACC,dptr1 | |
ST ACC,(dptr) | |
L0: LD ACC,(dp | |
LD IX,ACC | |
ADD ACC,03h | |
ST ACC,(dptr) |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<time.h> | |
int count_string(char *str,char *s); | |
int string_length(char *str); | |
void makeSkipDistArray(int array[],char str[]); | |
int countStrinInStrings(int sda[],char str[],char word[]); |