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
""" | |
input: | |
n // 命令数 | |
command1 | |
command2 | |
... | |
commandn | |
limitation: | |
命令数は 2,000,000 を超えない。 |
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 -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 |
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 | |
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 |
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 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.
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
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形式に変換 |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<form method="POST"> | |
<input type="text" name="username" placeholder="Your name"> | |
<input type="submit" value="submit"> |
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 -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 |
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
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'] |
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
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'] |
NewerOlder