新しいマシン買いました
Mac Mini (PPC) の調子が悪かったので Mac Mini 2014 late を買いました。スペックは Intel Core i5-4260U 1.40GHz メモリは 4GB の HDD は 500GB です。Mac OS X は残しつつ Gentoo をインストールしました。
CPU が Intel のものになったのでカーネル構築など色々簡単でした。悩んだといえばブートローダーぐらいかな。
xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
URxvt*termName: xterm-256color
URxvt*depth: 24
URxvt*saveLIne: 300000
URxvt*geometry: 120x35
URxvt*perl-ext-common: default,matcher,clipboard-osc
URxvt*inputMethod: uim
URxvt*imLocale: en_US.UTF-8
URxvt*url-launcher: chromium
URxvt*matcher*button: 1
URxvt*foreground: #B2B2B2
URxvt*background: #202020
URxvt*color0: #2e3436
URxvt*color1: #cc0000
URxvt*color2: #4edc4e
URxvt*color3: #c4a000
URxvt*color4: #3465a4
URxvt*color5: #75507b
URxvt*color6: #06989a
URxvt*color7: AntiqueWhite
URxvt*color8: Grey25
URxvt*color9: Red
URxvt*color10: #00ff00
URxvt*color11: Yellow
URxvt*color12: #5c5cff
URxvt*color13: Magenta
URxvt*color14: Cyan
URxvt*color15: White
URxvt*lefterSpace: -1
URxvt*lineSpace: 0
URxvt.font: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:antialiase=true
URxvt.boldfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:bold:antialiase=true
URxvt.italicfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:italic:antialiase=true
URxvt.bolditalicfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true:bold:italic,xft:Ricty:pixelsize=14:bold:italic:antialiase=true
xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
URxvt*termName: xterm-256color
URxvt*depth: 24
URxvt*saveLIne: 300000
URxvt*geometry: 120x35
URxvt*perl-ext-common: default,matcher,clipboard-osc
URxvt*inputMethod: uim
URxvt*imLocale: en_US.UTF-8
URxvt*url-launcher: chromium
URxvt*matcher*button: 1
URxvt*foreground: #B2B2B2
URxvt*background: #202020
URxvt*color0: #2e3436
URxvt*color1: #cc0000
URxvt*color2: #4edc4e
URxvt*color3: #c4a000
URxvt*color4: #3465a4
URxvt*color5: #75507b
URxvt*color6: #06989a
URxvt*color7: AntiqueWhite
URxvt*color8: Grey25
URxvt*color9: Red
URxvt*color10: #00ff00
URxvt*color11: Yellow
URxvt*color12: #5c5cff
URxvt*color13: Magenta
URxvt*color14: Cyan
URxvt*color15: White
URxvt*lefterSpace: -1
URxvt*lineSpace: 0
URxvt.font: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:antialiase=true
URxvt.boldfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:bold:antialiase=true
URxvt.italicfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:italic:antialiase=true
URxvt.bolditalicfont: xft:Roboto\ Mono\ for\ Powerline:pixelsize=14:antialiase=true:bold:italic,xft:Ricty:pixelsize=14:bold:italic:antialiase=true
以上、です。また気分で変える可能性がありますけど…
let g:rc_dir = expand('~/.vim')
let s:dein_dir = expand('~/.vim/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
if &runtimepath !~# '/dein.vim'
if !isdirectory(s:dein_repo_dir)
execute '!git clone https://github.com/Shougo/dein.vim' s:dein_repo_dir
endif
execute 'set runtimepath^=' . fnamemodify(s:dein_repo_dir, ':p')
endif
if dein#load_state(s:dein_dir)
call dein#begin(s:dein_dir)
let s:toml = g:rc_dir . '/rc/dein.toml'
let s:lazy_toml = g:rc_dir . '/rc/dein_lazy.toml'
call dein#load_toml(s:toml, {'lazy': 0})
call dein#load_toml(s:lazy_toml, {'lazy': 1})
call dein#end()
call dein#save_state()
endif
if dein#check_install()
call dein#install()
endif
filetype plugin on
URxvt*termName: xterm-256color
URxvt*depth: 24
URxvt*saveLIne: 300000
URxvt*geometry: 120x35
URxvt*perl-ext-common: default,matcher,clipboard-osc
!URxvt*perl-ext-common: default,matcher,clipboard-osc,xim-onthespot
URxvt*inputMethod: uim
URxvt*imLocale: en_US.UTF-8
!URxvt*preeditType: OnTheSpot
!URxvt*preeditType: OverTheSpot
URxvt*url-launcher: chromium
URxvt*matcher*button: 1
URxvt*foreground: #B2B2B2
URxvt*background: #202020
!URxvt*background: black
URxvt*color0: #2e3436
URxvt*color1: #cc0000
URxvt*color2: #4edc4e
URxvt*color3: #c4a000
URxvt*color4: #3465a4
URxvt*color5: #75507b
URxvt*color6: #06989a
URxvt*color7: AntiqueWhite
URxvt*color8: Grey25
URxvt*color9: Red
URxvt*color10: #00ff00
URxvt*color11: Yellow
URxvt*color12: #5c5cff
URxvt*color13: Magenta
URxvt*color14: Cyan
URxvt*color15: White
URxvt*lefterSpace: -1
URxvt*lineSpace: 0
URxvt.font: xft:Terminus:pixelsize=14:antialiase=true,xft:Ricty:pixelsize=14:antialiase=true
URxvt.boldfont: xft:Terminus:piselsize=14:antialiase=true:bold,xft:Ricty:pixelsize=14:bold:antialiase=true
URxvt.italicfont: xft:Terminus:piselsize=14:antialiase=true:italic,xft:Ricty:pixelsize=14:italic:antialiase=true
URxvt.bolditalicfont: xft:Terminus:piselsize=14:antialiase=true:bold:italic,xft:Ricty:pixelsize=14:bold:italic:antialiase=true
URxvt.imFont: -xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso10646-1
gentoo-pxe-convert.sh
#!/bin/bash
# automates the procedure outlined at: http://blog.dastrup.com/?p=12
MOUNT=$1
OUT=$2
if [ x$MOUNT == "x" -o x$OUT == "x" ]; then
echo usage: $0 [MOUNT] [OUT]
exit 1
fi
echo converting gentoo iso mounted at $MOUNT into PXE-bootable stuff at $OUT
mkdir -p $OUT
cp $MOUNT/isolinux/gentoo $OUT/
cp $MOUNT/isolinux/gentoo.igz $OUT/
cp $MOUNT/image.squashfs $OUT/
mkdir -p $OUT/work
pushd $OUT/work > /dev/null 2>&1
echo decompressing initrd
xz -d -c ../gentoo.igz | cpio -idv > /dev/null 2>&1
mkdir -p mnt/cdrom
mv ../image.squashfs mnt/cdrom/
patch -p0 --ignore-whitespace <<'EOF'
--- init.orig 2016-01-31 07:22:56.619082092 +0900
+++ init 2016-01-31 07:28:40.100068255 +0900
@@ -455,10 +455,6 @@
CHROOT=${NEW_ROOT}
fi
- if [ /dev/nfs != "$REAL_ROOT" ] && [ sgimips != "$LOOPTYPE" ] && [ 1 != "$aufs" ]; then
- bootstrapCD
- fi
-
if [ "${REAL_ROOT}" = '' ]
then
warn_msg "No bootable medium found. Waiting for new devices..."
@@ -591,7 +587,7 @@
else
bad_msg "Block device ${REAL_ROOT} is not a valid root device..."
REAL_ROOT=""
- got_good_root=0
+ got_good_root=1
fi
done
@@ -670,8 +666,6 @@
[ -z "${LOOP}" ] && find_loop
[ -z "${LOOPTYPE}" ] && find_looptype
- cache_cd_contents
-
# If encrypted, find key and mount, otherwise mount as usual
if [ -n "${CRYPT_ROOT}" ]
then
@@ -712,7 +706,7 @@
# Upgrade to cached version if possible
[ "${DO_cache}" -a -f "${_CACHED_SQUASHFS_PATH}" ] \
&& _squashfs_path=${_CACHED_SQUASHFS_PATH}
- mount -t squashfs -o loop,ro "${_squashfs_path}" "${NEW_ROOT}/mnt/livecd" || {
+ mount -t squashfs -o loop,ro "/mnt/cdrom/${LOOPEXT}${LOOP}" "${NEW_ROOT}/mnt/livecd" || {
bad_msg "Squashfs filesystem could not be mounted, dropping into shell."
if [ -e /proc/filesystems ]; then
fgrep -q squashfs /proc/filesystems || \
EOF
echo recompressing initrd
#find . -print | cpio -o -H newc 2>/dev/null | xz -9 -c - > ../gentoo.igz
find . -print | cpio -o -H newc 2>/dev/null > ../gentoo.igz
popd > /dev/null 2>&1
rm -r $OUT/work
echo done.
使い方はISOイメージをマウントし、例えばマウントポイントが/mnt/cdromならgentoo-pxe-convert.sh /mnt/cdrom hogeって感じにするとhogeの中にgentoo、gentoo,igzってファイルが出来上がるのでtftpdでKERNELとINITRDとして指定します。
tftpd'(32|64)のpxelinux.cfg/defaultだと次のようになります。
DEFAULT menu.c32 LABEL gentoo-amd64 MENU LABEL ^1. Gentoo-amd64 KERNEL /gentoo-amd64/gentoo APPEND initrd=/gentoo-amd64/gentoo.igz root=/dev/ram0 init=/linuxrc loop=/image.squashfs looptype=squashfs cdroot=1 real_root=/dev/loop0 LABEL gentoo-x86 MENU LABEL ^2. Gentoo-x86 KERNEL /gentoo-x86/gentoo APPEND initrd=/gentoo-x86/gentoo.igz root=/dev/ram0 init=/linuxrc loop=/image.squashfs looptype=squashfs cdroot=1 real_root=/dev/loop0
Gentooなのですぐに変更されると思うんだけれどしばらくは使えると思います。そしてオリジナルの作者に感謝!
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
この要になっているのを次のようにします。set -g mouse on
これでマウスが使えるようになりましたが Tmux 1.9の時と動作が違うので、できる限り近付けるように設定していきます。
keychain --quiet "$HOME"/.ssh/id_rsa
[ -z "$HOSTNAME" ] && HOSTNAME=$(uname -n)
[ -f "$HOME/.keychain/$HOSTNAME"-sh ] && \
source "$HOME/.keychain/$HOSTNAME"-sh
[ -f "$HOME/.keychain/$HOSTNAME"-sh-gpg ] && \
source "$HOME/.keychain/$HOSTNAME"-sh-gpg
keychain --agents gpg,ssh --quiet "$HOME"/.ssh/id_rsa
[ -z "$HOSTNAME" ] && HOSTNAME=$(uname -n)
[ -f "$HOME/.keychain/$HOSTNAME"-sh ] && \
source "$HOME/.keychain/$HOSTNAME"-sh
[ -f "$HOME/.keychain/$HOSTNAME"-sh-gpg ] && \
source "$HOME/.keychain/$HOSTNAME"-sh-gpg
if [ -n "${TMUX}" ]; then
function sudo() {
export local window_name
window_name=$(tmux display -p '#{window_name}')
command sudo "$@"
tmux rename-window "$window_name"
}
fi
#====================================================================== # TTYTTER Settings YYYY-MM-DD (gotta code that for ruby 1.9) #====================================================================== simplestart=1 hold=1 ssl=1 ansi=1 vcheck=1 verify=1 dostream=1 mentions=1 searchhits=32 autosplit=1 timestamp=0 timestamp=%a %b %d %T %Z %Y #shorturl=http://is.gd/api.php?longurl= #====================================================== Interface urlopen=open -a chromium %U avatar=feh %U newline=1 notifytype= notifies=dm,me,reply,search,default #notifies=dm,reply colourdefault=CYAN colourdm=MAGENTA colourlist=BLUE colourme=GREEN colourprompt=OFF colourreply=YELLOW coloursearch=OFF colourwarn=MAGENTA #=================================================== Plugins #exts=/home/kn0wledge/.ttytter-extensions/PrettyTweets.pl exts=/home/kn0wledge/.ttytter-extensions/oxhak_ttytter_output.pl #exts=/home/kn0wledge/.ttytter-extensions/time.pl #exts=/home/kn0wledge/.ttytter-extensions/timestamp.pl #================================================== Friends/readline readline="@kn0wledge" #================================================== |
# oxhak tytter output extension # https://github.com/oxhak/ttytter-extension # https://plus.google.com/101484008937520775428/posts?hl=fr # https://twitter.com/OxHaK use utf8; use Text::LineFold; $lf = Text::LineFold->new( OutputCharset => '_UNICODE_' ); $handle = sub { my $ref = shift; # this is a hashref to the tweet structure my ($time, $ts) = &$wraptime($ref->{'created_at'}) if &getvariable('timestamp'); my $timestamp = defined($ts)?'['.$ts.'] ':''; my $sn = &descape($ref->{'user'}->{'name'}); my $txt = &descape($ref->{'text'}) ; (my $txtfinal = $txt) =~ s/\n//g; (my $wrapped = $txtfinal); (my $folded = $lf->fold($wrapped, 'PLAIN')); (my $wrappedfinal = $folded); my $menu_select = $ref->{'menu_select'}; my $string = "\e[38;5;160m\e[48;5;15m\e[1m" ${menu_select} . ''. "\e[38;5;255m\e[48;5;8m\e[1m ". ${sn} . ''. "\033[m\e[49m\n". ${wrappedfinal} . ''. "\n \n"; print $streamout $string; return 1; # one logical tweet accepted }; |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
diff -urPN a/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux.cc b/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux.cc
--- a/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux.cc 2015-07-16 05:30:08.000000000 +0900
+++ b/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux.cc 2015-07-28 06:59:15.478133281 +0900
@@ -236,8 +236,6 @@
if (suppress_next_result_ || IsTextInputTypeNone())
return;
- composition_ = composition_text;
-
if (is_sync_mode_) {
if (!composition_.text.empty() || !composition_text.text.empty())
composition_changed_ = true;
@@ -245,6 +243,8 @@
SendFakeProcessKeyEvent(0);
GetTextInputClient()->SetCompositionText(composition_text);
}
+
+ composition_ = composition_text;
}
void InputMethodAuraLinux::OnPreeditEnd() {
diff -urPN a/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux_unittest.cc b/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux_unittest.cc
--- a/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux_unittest.cc 2015-07-16 05:30:08.000000000 +0900
+++ b/chromium-44.0.2403.89/ui/base/ime/input_method_auralinux_unittest.cc 2015-07-28 07:09:14.228367499 +0900
@@ -606,6 +606,18 @@
test_result_->ExpectAction("compositionstart");
test_result_->ExpectAction("compositionupdate:a");
test_result_->Verify();
+
+ // crbug.com/513124.
+ context_->SetSyncMode(true);
+ context_->SetEatKey(true);
+ context_->AddCommitAction("c");
+ context_->AddCompositionUpdateAction("");
+ input_method_auralinux_->DispatchKeyEvent(key);
+
+ test_result_->ExpectAction("keydown:229");
+ test_result_->ExpectAction("compositionend");
+ test_result_->ExpectAction("textinput:c");
+ test_result_->Verify();
}
TEST_F(InputMethodAuraLinuxTest, MixedAsyncAndSyncTest) {
git clone https://github.com/pindexis/qfc $HOME/.qfc
[[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh"