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
sudo echo "deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free" > /etc/apt/sources.list.d/backports.list | |
sudo apt-get update | |
sudo apt-get -t squeeze-backports install nautilus-dropbox |
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 |
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
#!/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 | |
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
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 | |
# | |
# 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
#!/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
<?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
<?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> |
OlderNewer