Skip to content

Instantly share code, notes, and snippets.

View yuryu's full-sized avatar

Emma Haruka Iwao yuryu

View GitHub Profile
@yuryu
yuryu / pre-warm-elb.pl
Last active June 2, 2021 21:52
ELB Warm-up tool
#!perl
use strict;
use warnings;
use Parallel::ForkManager;
use POSIX;
use String::Random;
my $c_start = 1;
my $c_end = 64;
@yuryu
yuryu / .bashrc
Created September 21, 2013 07:04
Cute prompt
# PS1
function ps_exit() {
a=$?
if [ $a -ne 0 ]; then
echo "/(T_T)\\"
else
echo "\\(^o^)/"
fi
exit $a;
}
@yuryu
yuryu / hostsbench.c
Created August 22, 2013 10:20
name lookup benchmark
#define _POSIX_C_SOURCE 199309L
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <memory.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
@yuryu
yuryu / .screenrc
Created July 5, 2012 11:06
Mac pbcopy helper
bufferfile "$HOME/screen-exchange"
bind ^] eval 'writebuf -e utf8' 'exec sh -c "cat ~/screen-exchange | ~/invoke-pbcopy.sh"' 'echo pasted.'