Skip to content

Instantly share code, notes, and snippets.

View sasairc's full-sized avatar

sasairc sasairc

View GitHub Profile
#!/bin/bash
#
#
# Author:
# sasairc (@sasairc2)
#
# License
# MIT
#
@sasairc
sasairc / tumblr_apache.css
Created December 12, 2014 02:03
Apache2_modoki.htmlの上余白を気にならなくする
body {
margin-top : -13px ;
}
Attribute Similarity ratio Value
User agent <0.1% "Mozilla/5.0 (X11; Linux x86_64; rv:32.0) Gecko/20100101 Firefox/32.0 SeaMonkey/2.29.1"
Accept 55.44% "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
Connection 59.82% "close"
Content encoding 60.12% "gzip, deflate"
Content language 0.17% "ja,en-us;q=0.7,en;q=0.3"
List of plugins 1.12% "Plugin 0: Shockwave Flash; Shockwave Flash 11.2 r202; libflashplayer.so. "
Platform 13.42% "Linux x86_64"
Cookies enabled 87.72% "yes"
Do Not Track 56.61% "NC"
#!/bin/bash
#
# Author:
# sasairc (@sasairc2)
#
# License
# MIT
#
readonly W="\033[48;5;255m \033[m"
#!/bin/bash
#
# Author:
# sasairc (@sasairc2)
#
# License
# MIT
#
readonly Y="\033[48;5;220m \033[m"
@sasairc
sasairc / unko.c
Created January 11, 2015 10:34
うんこ
#define SLEEP 72422
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
int rand_create(int min, int max);
void rand_unko(char* unko);
# renge.orig の readonly basedir="PREPRE" を置き換え
TARGET := renge
ORIGIN := renge.orig
PREFIX := /usr/local
RM := rm
all: $(TARGET)
renge:
@sasairc
sasairc / random.sh
Last active August 29, 2015 14:13
/dev/urandomのサンプル
#!/bin/bash
#
# 乱数のサンプル
#
RANDMAX=64
for ((i = 0; i < 100; i++)); do
var=$(\
od -vAn -tu1 -N8 < /dev/urandom |\
@sasairc
sasairc / cowsay-utf8-debian.diff
Created January 23, 2015 12:16
cowsayのutf-8化するやつ
*** cowsay 2015-01-23 21:14:21.000000000 +0900
--- cowsay-utf8 2015-01-23 21:14:52.195994602 +0900
***************
*** 11,16 ****
--- 11,17 ----
use File::Basename;
use Getopt::Std;
use Cwd;
+ use Encode `decode`;
@sasairc
sasairc / sake.sh
Last active August 29, 2015 14:14
#!/bin/bash
#
# Author:
# sasairc (@sasairc2)
#
# License
# WTFPL
#
readonly W=" "