`cat ~/.fehbg`
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
exec gnome-session
1 <!-- Personalizacoes -->
2
3 <!-- Usando as teclas do metacity para menu e executar programa, isto ser util :) -->
4 <keybind key="A-F1">
5 <action name="execute">
6 <execute>gnome-panel-control --main-menu</execute>
7 </action>
8 </keybind>
9 <keybind key="A-F2">
10 <action name="execute">
11 <execute>gnome-panel-control --run-dialog</execute>
12 </action>
13 </keybind>
14
15 <!-- Para mover entre os desktops mais facilmente -->
16 <keybind key="A-1">
17 <action name="Desktop"><desktop>1</desktop></action>
18 </keybind>
19 <keybind key="A-2">
20 <action name="Desktop"><desktop>2</desktop></action>
21 </keybind>
22 <keybind key="A-3">
23 <action name="Desktop"><desktop>3</desktop></action>
24 </keybind>
25 <keybind key="A-4">
26 <action name="Desktop"><desktop>4</desktop></action>
27 </keybind>
28 <keybind key="A-5">
29 <action name="Desktop"><desktop>5</desktop></action>
30 </keybind>
31
32 <!-- Esta e para reconfigurar sem ter que iniciar o OB de novo -->
33 <keybind key="C-A-r">
34 <action name="Reconfigure"/>
35 </keybind>
36
37 <!-- Teclas multimidia -->
38 <keybind key="XF86AudioPlay">
39 <action name="Execute"><execute>tocar_xmms.sh</execute></action>
40 </keybind>
41 <keybind key="XF86AudioStop">
42 <action name="Execute"><execute>xmms --stop</execute></action>
43 </keybind>
44 <keybind key="XF86AudioRaiseVolume">
45 <action name="Execute"><execute>~/bin/volume.py mais</execute></action>
46 </keybind>
47 <keybind key="XF86AudioLowerVolume">
48 <action name="Execute"><execute>~/bin/volume.py menos</execute></action>
49 </keybind>
50 <keybind key="XF86AudioMute">
51 <action name="Execute"><execute>~/bin/volume.py mudo</execute></action>
52 </keybind>
53 <keybind key="XF86AudioPrev">
54 <action name="Execute"><execute>xmms --rew</execute></action>
55 </keybind>
56 <keybind key="XF86AudioNext">
57 <action name="Execute"><execute>xmms --fwd</execute></action>
58 </keybind>
59 <keybind key="Print">
60 <action name="Execute"><execute>screenshot scr</execute></action>
61 </keybind>
62 <keybind key="C-Print">
63 <action name="Execute"><execute>screenshot win</execute></action>
64 </keybind>
65 <keybind key="XF86Close">
66 <action name="Close"/>
67 </keybind>
68 <keybind key="C-XF86Close">
69 <action name="Kill"/>
70 </keybind>
71
72 <!-- Para facilitar a movimentacao dos programas entre os desktops -->
73 <keybind key="S-A-1">
74 <action name="SendToDesktop"><desktop>1</desktop></action>
75 </keybind>
76 <keybind key="S-A-2">
77 <action name="SendToDesktop"><desktop>2</desktop></action>
78 </keybind>
79 <keybind key="S-A-3">
80 <action name="SendToDesktop"><desktop>3</desktop></action>
81 </keybind>
82 <keybind key="S-A-4">
83 <action name="SendToDesktop"><desktop>4</desktop></action>
84 </keybind>
85 <keybind key="S-A-5">
86 <action name="SendToDesktop"><desktop>5</desktop></action>
87 </keybind>
88
89 <!-- Firefox, Thunderbird e outros programas a serem lancados -->
90 <keybind key="XF86Mail">
91 <action name="Execute"><execute>/usr/bin/thunderbird</execute></action>
92 </keybind>
93 <keybind key="XF86WWW">
94 <action name="Execute"><execute>/usr/bin/firefox</execute></action>
95 </keybind>
96 <keybind key="C-A-t">
97 <action name="Execute"><execute>Eterm -t glass</execute></action>
98 <!--
99 <action name="Execute"><execute>xterm -bg black -fg white</execute></action>
100 -->
101 </keybind>
102
103 <!-- /Personalizações -->
1 #!/bin/bash
2
3 . /sbin/functions.sh
4
5 for e in `ls structure*.sql`;
6 do
7 var1=${e/structure_v};
8 var1=${var1/\.sql};
9 dropdb -qU dvown 'foobar_'$var1 &>/dev/null
10 sleep 1s;
11 createdb -qU dvown 'foobar_'$var1;
12 sleep 1s;
13 if [ -e 'data_v'$var1'.sql.bz2' ]
14 then
15 rm 'data_v'$var1'.sql'
16 fi
17 bzip2 -dk 'data_v'$var1'.sql.bz2'
18 psql -qU dvown 'foobar_'$var1 < 'structure_v'$var1'.sql' &>/dev/null;
19 psql -qU postgres 'foobar_'$var1 < 'data_v'$var1'.sql' &>/dev/null;
20 einfo 'Base foobar_'$var1' criada.';
21 sleep 1s;
22 done
1 #!/bin/bash
2
3 . /sbin/functions.sh
4
5
6 einfo "Estes script recria todos os dumps de base dao gestao, personalizado para uma ocasião."
7 for e in `ls data*.sql`;
8 do
9 var1=${e/data_v};
10 var1=${var1/\.sql};
11
12
13 echo
14 echo
15
16 einfo "Base foobar_${var1}"
17
18 echo -e "\t`einfo 'Criando dump da estrutura -> structure_v'${var1}'.sql'`"
19 pg_dump -s -i -O -U dvown 'foobar_'$var1 > 'structure_v'$var1'.sql' 2>'error.structure_v'$var1'.log'
20 eend $?
21
22 echo -e "\t`einfo 'Criando dump dos dados -> data_v'${var1}'.sql'`"
23 pg_dump -a -D -X disable-triggers -i -O -U dvown 'foobar_'$var1 > 'data_v'$var1'.sql' 2>'error.data_v'$var1'.log'
24 eend $?
25
26 echo -e "\t`einfo 'Compactando dump dos dados -> data_v'${var1}'.sql.bz2'`"
27 rm 'data_v'$var1'.sql.bz2'
28 bzip2 -z9k 'data_v'$var1'.sql'
29 eend $?
30
31 done
32 echo
33 echo
34 ewarn "Se houve erros verifique os logs."
35 echo
- O link leve a um applet java que conecta direto no canal #gentoobr.
1: for e in `find http/cpub/pt -type d | grep -v CVS`;
2: do
3: foobar=`find $e -type f -maxdepth 1`;
4: for i in $foobar;
5: do
6: echo ${i/$e\/} >> $e/.cvsignore
7: done
8: done
$ echo $a
$ echo ${a/O/.} # sed s///
$ echo ${a//O/.} # sed s///g
$ echo $a | sed 's/O/./g'
$ echo ${a//O/.tyturtu}
$ rpm -q bash
$ b=O
$ echo ${a//$b/.}