Skip navigation.

Szabó Ambrus's Page

Pieces of My History

SVN

Mirror an svn repository with svnsync: (http://www.kirkdesigns.co.uk/mirror-svn-repository-svnsync)
On the Slave

svnadmin create /svr/svn/myrepo
chown -R www-data:www-data /svr/svn/myrepo


/srv/svn/repos/myproject/hooks/start-commit).:

#!/bin/sh
USER="$2"
if [ "$USER" = "svnsync" ];
  then exit 0;
fi
echo "Only the svnsync user may commit new revisions" >&2 exit 1

Create the file /srv/svn/repos/myproject/hooks/pre-revprop-change.

#!/bin/sh
USER="$3"
if [ "$USER" = "svnsync" ];
  then exit 0;
fi
echo "Only the svnsync user may change revision properties" >&2 exit 1

chmod 755 /srv/svn/repos/myproject/hooks/start-commit
chmod 755 /srv/svn/repos/myproject/hooks/pre-revprop-change


On the Master

Our Slave machine is now ready, so jump over to the Master machine. First thing we need to do here is to initialise the svnsync target.

svnsync initialize https://target/myproject/ https://source/myproject/ \
--sync-username svnsync --sync-password syncpassword \
--source-username sourceusername --source-password sourcepassword

/srv/svn/repos/myproject/hooks/post-commit:
#!/bin/sh
SVNSYNC=/usr/bin/svnsync
TO=http://my.slave.machine/myproject/
SYNC_USER=svnsync
SYNC_PASS=syncpassword
SOURCE_USER=me
SOURCE_PASS=mypassword
 
$SVNSYNC --non-interactive sync $TO \
--sync-username $SYNC_USER --sync-password $SYNC_PASS \
--source-username $SOURCE_USER --source-password $SOURCE_PASS &  exit 0

Create the file /srv/svn/repos/myproject/hooks/post-revprop-change:
#!/bin/sh
SVNSYNC=/usr/bin/svnsync
TO=http://my.slave.machine/myproject/
SYNC_USER=svnsync
SYNC_PASS=syncpassword
SOURCE_USER=me
SOURCE_PASS=mypassword
 
$SVNSYNC --non-interactive copy-revprops $TO \
--sync-username $SYNC_USER --sync-password $SYNC_PASS \
--source-username $SOURCE_USER --source-password $SOURCE_PASS $2 & exit 0


Make sure both of these scripts are executable.
chmod 755 /srv/svn/repos/myproject/hooks/post-commit
chmod 755 /srv/svn/repos/myproject/hooks/post-revprop-change

Vim

copy to buffer
y -> "+y
p -> "+p

FREEBSD

/etc/make.conf:
# utf8 char
WITH_WIDE_CHARS=1



Update ports:
portsnap fetch update
pkgdb -F
portsdb -Uu
portupgrade -a

OLD:
portversion -l '<'


cp /usr/share/examples/cvsup/stable-supfile .
Build World
# cd /usr/src
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
# reboot
--- after reboot ---
# cd /usr/src
# mergemaster -p
# make installworld
# mergemaster -iU
# make delete-old
# make delete-old-libs
# reboot


/etc/rc.conf
powerd_enable="YES"
ataidle_enable="YES"
ataidle_devices="ad0"
ataidle_ad0="-I 60 -S 120 -A 1 -P 128"

Perl

Syntax check: perl -I/home/.... -MO=Lint %

Linux commands

Change Default editor in Debian Etch: update-alternatives --config editor

Console keymap: dpkg-reconfigure console-data

Title
  • export PROMPT_COMMAND=''
  • xtermset -T "alma/karancsony"


svn co svn+ssh://your.remote-server.com/home/svn/test

Debian source

Apt source:

Opera
deb http://deb.opera.com/opera testing non-free

Import to key using the following commands

gpg --keyserver subkeys.pgp.net --recv-key 6A423791
gpg --fingerprint 6A423791
gpg --armor --export 6A423791| apt-key add -

Hívatkozás


OpenWrt command line:
-
nvram set boot_wait=on
nvram set boot_time=10
nvram commit && reboot
-
cd /tmp/
wget http://downloads.openwrt.org/kamikaze/8.09/brcm-2.4/openwrt-wrt54g-squashfs.bin
mtd write /tmp/openwrt-wrt54g-squashfs.bin linux && reboot
-
passwd
mtd erase nvram && reboot




Limit source apt-get

/etc/apt/apt.conf.d/76download file ->
Acquire
{
Queue-mode "access";
http
{
Dl-Limit "200";
};
};

Music


Radio
  • ChroniX Radio: Grit - Loud & Clear - www.chronixradio.com
  • XRM - Alternativ

New music wanted list:
  • Butthole Surfers - Pepper
  • Marcy Playground - Sex and Canydy
  • Counting Crows - Mr. Jones
  • Jars Of Clay - Flood
  • Foo Fighters - Everlong
  • Eyes Wile Shut - waltz no 2
  • Bourne Ultimatum - Extreme Ways
  • Avenged Sevenfold - Almost Easy
  • Primus - Tommy The Cat
  • Slipknot - Snuff
  • Killswitch Engage - Holy Diver
  • Serj Tankian - Empty Walls
  • Seether - Fake It
  • Deftones - Change
  • Sixx A M - Life Is Beautiful
  • Sub Dub Micromachine - Slave Of My Mind
  • Alter Bridge - Rise Today
  • Red Hot Chili Peppers - Snow
November 2009
M T W T F S S
October 2009December 2009
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30