Skip to content

Instantly share code, notes, and snippets.

View staybuzz's full-sized avatar

Yuuki Mori staybuzz

  • The University of Electro-Communications
View GitHub Profile
"""
input:
n // 命令数
command1
command2
...
commandn
limitation:
命令数は 2,000,000 を超えない。
#!/bin/bash -x
date
mkdir $HOME/.local
wget https://github.com/esnet/iperf/archive/refs/tags/3.11.tar.gz
tar zxf 3.11.tar.gz
pushd iperf-3.11
./configure --prefix $HOME/.local
make -j4
#/!bin/bash
sudo ip l add veth1 type veth peer name veth2
sudo ip netns add host01
sudo ip netns add host02
sudo ip l set veth1 netns host01
sudo ip l set veth2 netns host02
sudo ip netns exec host01 ip l set up dev veth1
sudo ip netns exec host01 ip a add 10.0.0.1/24 dev veth1
sudo ip netns exec host02 ip l set up dev veth2
package org.toorcamp.HelloSTK;
import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISOException;
import sim.toolkit.EnvelopeHandler;
import sim.toolkit.ProactiveHandler;
import sim.toolkit.ToolkitConstants;
import sim.toolkit.ToolkitException;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import cv2
import numpy as np
from PIL import Image, ImageDraw
# ref: https://note.com/npaka/n/nddb33be1b782
# 画像のオーバーレイ
def overlayImage(src, overlay, location):
overlay_height, overlay_width = overlay.shape[:2]
# 背景をPIL形式に変換
@staybuzz
staybuzz / index.html
Created May 9, 2020 03:23
Flask + Redis
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form method="POST">
<input type="text" name="username" placeholder="Your name">
<input type="submit" value="submit">
@staybuzz
staybuzz / deploy.sh
Last active August 21, 2021 00:41
for ISUCON
#!/bin/bash -x
APP_NAME=webapp
APP_ROOT=/home/isucon/${APP_NAME}
cd $APP_ROOT
# update repo
git pull origin master
# nginx
sudo cp -r configs/nginx /etc/nginx
@staybuzz
staybuzz / cuckoo_sig_categories_ver2.0.csv
Created January 5, 2019 07:28
List of Cuckoo Sandbox 2.0 signature's name and categories. Signatures from https://github.com/cuckoosandbox/community/tree/2.0/modules/signatures are as of January 5, 2019.
name categories
alina_pos_file ['pos']
alina_pos_url ['pos']
allocates_rwx ['unpacking']
android_antivirus_virustotal ['antivirus']
android_dangerous_permissions ['android']
android_dynamic_code ['android']
android_embedded_apk ['android']
android_google_play_diff ['android']
android_native_code ['android']
@staybuzz
staybuzz / cuckoo_sig_categories.csv
Last active January 5, 2019 07:15
List of Cuckoo Sandbox signature's name and categories. Signatures from https://github.com/cuckoosandbox/community/tree/master/modules/signatures are as of January 4, 2019.
name categories
adds_user ['commands']
adds_user_admin ['commands']
alina_pos_file ['pos']
alina_pos_url ['pos']
allocates_execute_remote_process ['injection', 'shellcode']
allocates_rwx ['unpacking']
amsi_bypass ['script', 'malware', 'powershell', 'amsi']
android_antivirus_virustotal ['antivirus']
android_dangerous_permissions ['android']