This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
' 文字コードをUTF-16リトルエンディアン、改行をCR+LFで保存してください | |
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements] | |
"Meiryo UI"="Noto Sans CJK JP" | |
"Meiryo"="Noto Sans CJK JP" | |
"MS Gothic"="Ume Gothic" | |
"MS Mincho"="Ume Mincho" | |
"MS PGothic"="Ume P Gothic" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<include ignore_missing="yes" prefix="xdg">fontconfig/msfonts.conf</include> | |
<match target="font"> | |
<edit name="rgba" mode="assign"> | |
<const>rgb</const> | |
</edit> | |
<edit name="hinting" mode="assign"> | |
<bool>false</bool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<include ignore_missing="yes" prefix="xdg">fontconfig/msfonts.conf</include> | |
<match target="font"> | |
<edit mode="assign" name="rgba"><const>rgb</const></edit> | |
<edit mode="assign" name="hinting"><bool>false</bool></edit> | |
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit> | |
<edit mode="assign" name="antialias"><bool>true</bool></edit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Convert HUE/360 Palette to LibreOffice Color Palette. | |
# Usage: hue3602soc.sh [ HUE360_palette.txt ] | |
# | |
# input file structure | |
# color name: #(color code) | |
# | |
# input file example: | |
# white: #ffffff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Convert GIMP Palette to LibreOffice Color Palette. | |
# Usage: hue3602soc.sh [ GIMP_palette.gpl ] | |
# | |
# Copyright: Jun NOGATA <nogajun@gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uedamac:MEMO ueda$ echo "わたしは aho です。4 さいです。" | | |
sed 's/\([^a-zA-Z0-9]\) \([a-zA-Z0-9]\)/\1\2/g' | | |
sed 's/\([a-zA-Z0-9]\) \([^a-zA-Z0-9]\)/\1\2/g' | |
わたしはahoです。4さいです。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
parse_options(){ | |
N=5 # default line number | |
while getopts "n:" OPT; do | |
case ${OPT} in | |
n) N="$OPTARG" ;; | |
esac | |
done | |
shift $(($OPTIND-1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
N=$(head -n1 $1) | |
S=$(tail -n1 $1) | |
A=$(echo ${S}|tr -d [BCDF]) | |
B=$(echo ${S}|tr -d [ACDF]) | |
C=$(echo ${S}|tr -d [ABDF]) | |
D=$(echo ${S}|tr -d [ABCF]) | |
F=$(echo ${S}|tr -d [ABCD]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fizzbuzz(){ | |
NUM="" | |
(($1 % 3 == 0)) && NUM=${NUM}Fizz | |
(($1 % 5 == 0)) && NUM=${NUM}Buzz | |
[ ! ${NUM} ] && NUM=$1 | |
echo ${NUM} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mplayer -playlist http://mfile.akamai.com/129933/live/reflector:46051.asx\ | |
-ao pcm:waveheader:fast:file=/dev/stdout -vo null -vc dummy -really-quiet -quiet |\ | |
lame -h -ms - ~/20120320-nhkfm.mp3 |