Skip to content

Instantly share code, notes, and snippets.

View sasairc's full-sized avatar

sasairc sasairc

View GitHub Profile
diff -c yasuna-7.0.0/Makefile horagai/Makefile
*** Makefile 2015-06-10 11:02:13.933331570 +0900
--- Makefile 2015-06-10 11:03:08.387768866 +0900
***************
*** 1,12 ****
#
! # Makefile for yasuna
#
! TARGET = yasuna
@sasairc
sasairc / horagai
Last active April 16, 2025 04:49 — forked from 844196/horagai
82行目の末尾に変な文字コードが混入していたので削除
ぬあのようにあのようにア紫やおおお
chi枯れしぼむ・.・(小さな声)
MUR大変だった向こう脛ーこんにちは
重い。... これ ... ああ、とてもすでに今日、
それがそのようなキツいんすでも、私は好きでしょう、そして辞職するために既に来るために、なんで。何かがぶっとぅです。-
どのようにする起こるか〜ナ・トグや〜
彼は移動します -- それは迅速です...
ワイシャツすでに…ずぶぬれになります
洗面所のケースは、元気を回復します
2つのケース
@sasairc
sasairc / body.c
Last active August 29, 2015 14:22
headとtailがあるのに、bodyが無いなんておかしい(?)
/*
* body - Print the center 10 lines of each FILE to standard output.
*
* body.c
*
* Copyright (c) 2015 sasairc
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar.HocevarHocevar See the COPYING file or http://www.wtfpl.net/
* for more details.
@sasairc
sasairc / DIR.c
Last active August 29, 2015 14:22
MS-DOSの"DIR"コマンドもどき
/*
* DIR.c
*
* MS-DOSのハリボテDIRモドキ
*
* License: WTFPL2
*/
#include <stdio.h>
#include <stdlib.h>
@sasairc
sasairc / bpkm.c
Last active August 29, 2015 14:22
Baby, please kill me.
/* Baby, please kill me. */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
int i;
char* misc = NULL;
@sasairc
sasairc / sake.sh
Last active August 29, 2015 14:14
#!/bin/bash
#
# Author:
# sasairc (@sasairc2)
#
# License
# WTFPL
#
readonly W=" "
@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 / 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 |\
# renge.orig の readonly basedir="PREPRE" を置き換え
TARGET := renge
ORIGIN := renge.orig
PREFIX := /usr/local
RM := rm
all: $(TARGET)
renge:
@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);