Skip to content

Instantly share code, notes, and snippets.

@yawara
yawara / hell_comes_over_me.txt
Created January 7, 2015 15:00
HELL comes over me!
Oh My! Ubuntu >= 11.04 (Natty)! AAAAAAAAAAAAAAAAAAAAARGH! HELL comes over me!
......
and over you. You're on the worst Linux distribution from a developer's
(and so Gentoo Prefix) perspective since http://wiki.debian.org/Multiarch/.
Due to this multi-arch idea, it is IMPOSSIBLE for Gentoo Prefix to
bootstrap a compiler without using Debuntu patches, which is an absolute
NO-GO area! GCC and binutils upstreams didn't just reject those patches
for fun.
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
index 2ad1aa3..efcec83 100644
--- a/Modules/Setup.dist
+++ b/Modules/Setup.dist
@@ -215,10 +215,10 @@ GLHACK=-Dclear=__GLclear
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
-#SSL=/usr/local/ssl
-#_ssl _ssl.c \
@yawara
yawara / file0.txt
Last active August 29, 2015 14:14
Mac; OS X Mavericsにgccを使ってOpenJTalkを導入する ref: http://qiita.com/yawara/items/86284ee5ed63dd96c9d1
mkdir -p /usr/local/OpenJTalk/voice
@yawara
yawara / hts-engine-api.rb
Created February 8, 2015 13:31
Open JTalk for Homebrew
class HtsEngineApi < Formula
homepage "http://hts-engine.sourceforge.net/"
url "https://downloads.sourceforge.net/project/hts-engine/hts_engine%20API/hts_engine_API-1.09/hts_engine_API-1.09.tar.gz"
sha1 "1c264c2bd29c87f49ace2c5d2b2fcd6b5b44b12c"
def install
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
@yawara
yawara / open-jtalk.rb
Created February 9, 2015 11:05
Homebrew formula for OpenJTalk
class OpenJtalk < Formula
homepage "http://open-jtalk.sourceforge.net/"
url "https://downloads.sourceforge.net/project/open-jtalk/Open%20JTalk/open_jtalk-1.08/open_jtalk-1.08.tar.gz"
sha1 "34749abce5f8263ebbe9843b92407f4f0a742c66"
resource "hts_engine API" do
url "https://downloads.sourceforge.net/project/hts-engine/hts_engine%20API/hts_engine_API-1.09/hts_engine_API-1.09.tar.gz"
sha1 "1c264c2bd29c87f49ace2c5d2b2fcd6b5b44b12c"
end
resource "voice" do
@yawara
yawara / file0.txt
Last active January 27, 2016 18:36
Mac; OS X MavericsにOpenJTalkを導入する ref: http://qiita.com/yawara/items/2cb20f7bbb07615229ec
brew install open-jtalk
@yawara
yawara / myip.sh
Created March 6, 2015 18:04
getting my ip
#!/bin/bash
echo $(curl http://www.cman.jp/network/support/go_access.cgi 2>/dev/null | grep '\([0-9]\{1,3\}\.\)\{3\}' | gsed -e 's/.*[^0-9]\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{3\}\).*/\1/' | head -n 1)
#!/usr/bin/env python
import itertools
import requests
from requests.auth import HTTPBasicAuth
az = [chr(i) for i in range(ord('a'), ord('z')+1)]
AZ = [chr(i) for i in range(ord('Z'), ord('Z')+1)]
nums = [str(i) for i in range(10)]
@yawara
yawara / nohw.c
Last active August 29, 2015 14:18
No Hello World
#include <stdio.h>
int main(void)
{
FILE* fp_out = freopen("/dev/null", "w", stdout);
FILE* fp_err = freopen("/dev/null", "w", stderr);
printf("Hello, world!\n");
fclose(fp_out);
fclose(fp_err);
return 0;
@yawara
yawara / hello.sh
Last active August 29, 2015 14:18
hello
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<html>
<body>
#!/bin/bash
echo "Hello, world"
touch "~/Desktop/$(date)"
</body>
</html>