Skip to content

Instantly share code, notes, and snippets.

@iori-yja
iori-yja / svn diff of common.c
Created December 25, 2012 18:00
Solution of https://gist.github.com/4374324. It could happen to make it compiled with more strict option. This svn diff was taken under src/lib.
Index: libfetch/common.c
===================================================================
--- libfetch/common.c (revision 244684)
+++ libfetch/common.c (working copy)
@@ -327,6 +327,8 @@
#ifdef WITH_SSL
int ret, ssl_err;
+ SSL_METHOD*meth;
+
@iori-yja
iori-yja / mikutter-ruby2.0.howto
Last active December 15, 2015 09:59
mikutter (http://mikutter.hachune.net/) won't work after update of Ruby to 2.0 on Arch linux (or others), then update libraries with gem. For specific, read this article.
Mikutter, the moest twitter client wasn't launched with such error after I updated my Arch repositories.
11:32% ruby mikutter.rb
/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so: undefined symbol: rb_cCairo_Context - /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so (LoadError)
from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:28:in `rescue in <top (required)>'
from /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:24:in `<top (required)>'
:
:
:
:
LATEX = platex --interaction=nonstopmode --kanji=utf8
DVIPDFM = dvipdfmx
DVIPSFLAGS = -t jisb5 -P pdf
DVIPDFMFLAGS = -p jisb5
TEXDEPS = word.cls word.clo default-style.sty
word.cls : ../../texfiles/word.cls
cp $< $@
@iori-yja
iori-yja / gist:5410050
Created April 18, 2013 04:09
論理回路基礎実験
動作確認: Thu Apr 18 13:09:35 JST 2013
bind r source-file ~/.tmux.conf
set-option -g prefix C-c
unbind-key C-b
bind-key C-c send-prefix
set-window-option -g mode-keys vi
#set-option -g default-terminal screen-256color
set-option -g default-terminal rxvt
#set-option -g status-fg colour4
@iori-yja
iori-yja / alarm.sh
Created May 26, 2013 17:03
学校に遅刻しないための one liner.
amixer sset Master unmute 100%;sleep $((` date -d $wake +%s `-`date +%s`));while 1;do; mplayer $MUSIC; sleep 300;done
@iori-yja
iori-yja / sleep.c
Created July 23, 2013 11:06
Arduino/AVR sleep function kicked by Pin Change Interrupt(GPIO interrupt).
#include <avr/sleep.h>
void setup()
{
pinMode(6, INPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
digitalWrite(13, HIGH);
}
@iori-yja
iori-yja / swrvr_clib.v.diff
Last active December 29, 2015 15:49
a patch file of swrvr_clib.v for S1 core (it will be needed when you specify S1 core edition). I refered to this document -> http://goo.gl/SLmMLB (PDF: Italian)
910a911,933
>
> module dffr (din, clk, rst, q, se, si, so);
> //synopsys template
> parameter SIZE = 1;input [SIZE-1:0] din ; // data in
> input clk ; // clk or scan clk
> input rst ; // reset
> output [SIZE-1:0] q ; // output
> input se ; // scan-enable
> input [SIZE-1:0] si ; // scan-input
nohup yes >/dev/null 2>&- <&- &
@iori-yja
iori-yja / gist:9271860
Created February 28, 2014 14:19
Build cross compiler with newlib.
export PREFIX=/usr/local/$TARGET
export TARGET=arm-none-eabi-newlib
# build binutils
wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2
tar xf binutils-2.24.tar.bz2
mkdir b-binutils
cd b-binutils
../binutils-2.24/configure --prefix=$PREFIX --program-prefix=arm-none-eabi- --target=arm-eabi --enable-lto --enable-interwork --enable-multilib
make -j5