Author: qnighy
"University of Agitsune" is a team which will participate in ICPC 2013 World Final. The members are hos_lyric, rng_58, and wrong(japlj).
This is what I heard about What is Agitsune.
#!/bin/bash | |
cat <<EOF | |
net-setup has been done? | |
"yes" to continue | |
EOF | |
read confirmation | |
[ "$confirmation" == "yes" ] || exit |
野心的な新機能案や、互換性等の理由でおよそ採用されないであろう夢を書き連ねています。
Fixnum と Bignum を削除して、Integer クラスに統合する。両者は Flonum のように内部的に切り替えられる。
Integer#/ の結果を Rational で返すようにする。 https://bugs.ruby-lang.org/issues/5512#change-37021
$OutputEncoding = New-Object -typename System.Text.UTF8Encoding | |
[Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding |
#!/bin/sh | |
IF=$1 | |
# Gets MAC address of the interface | |
MY_MAC_ADDR=`ip link show $IF | awk '/ether/ {print $2}'` | |
# Get the ID of the subnet that the interface is connected to | |
MY_SUBNET_ID=`curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/$MY_MAC_ADDR/subnet-id 2> /dev/null` |
#!/usr/bin/env ruby | |
Dir.chdir(File.dirname(__FILE__)) | |
require 'digest/sha2' | |
require 'uri' | |
require 'open-uri' | |
require 'json' | |
API_KEY = 'api_key' | |
TUMBLELOG = 'scrap.sorah.jp' |
HP ProLiant MicroServer http://h50146.www5.hp.com/products/servers/proliant/micro/
CPU model name: AMD Turion(tm) II Neo N40L Dual-Core Processor
CPU MHz: 800.000
#!/bin/sh | |
[[ -n "$1" && -n "$2" ]] || { echo "Usage: $0 <interface to grab multicast packets from> <interface to send modified packets to> [target MAC address 1] [target MAC address 2] ..."; exit 0 ; } | |
IIF=$1 | |
OIF=$2 | |
shift | |
shift | |
SRC_MACADDR=`ip link show $OIF | awk '/ether/ {print $2}' | tr -d :` |
#!/usr/bin/env ruby | |
# coding: utf-8 | |
require 'open3' | |
require 'tempfile' | |
class Avconv | |
def initialize(path, bin = 'avconv') | |
@path = path | |
@bin = bin | |
@tempfile = Tempfile.new ['sd-hd', '.ts'] |