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
Preserve file timestamp in multifile string replace | |
-I to grep ignores binary files, | |
@ in sed works as separator for strings with / | |
-r in touch uses existing file timestap as a reference | |
$ grep -IR aaaa /somepath/ | awk -F: '{print $1}' | while read line; do touch -r $line /tmp/timeref; sed -i 's@aaaa@bbbb@' $line; touch -r /tmp/timeref $line; done | |
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
$ cd $MYWBDIR | |
$ dpkg -L php-tcpdf | grep fonts | |
$ cp /usr/share/php/tcpdf/fonts/dejavusans* ./inc/3rdparty/libraries/tcpdf/fonts/ | |
$ cp ./inc/poche/WallabagEBooks.class.php ./inc/poche/WallabagEBooks.class.php.dist | |
$ vi ./inc/poche/WallabagEBooks.class.php |
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
Nokia-N900:~# mv /etc/X11/Xsession.d/30osso_startup_wizard /root | |
Nokia-N900:~# apt-get install openrdate | |
Nokia-N900:~# rdate -n pool.ntp.org |
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
Nokia-N900:~# diff -u /usr/sbin/pcsuite-enable.sh.dist /usr/sbin/pcsuite-enable.sh | |
--- /usr/sbin/pcsuite-enable.sh.dist 2000-01-01 15:50:20.000000000 +0200 | |
+++ /usr/sbin/pcsuite-enable.sh 2000-01-01 15:54:25.000000000 +0200 | |
@@ -71,4 +71,8 @@ | |
kill -USR1 $SYNCD_PID | |
logger "$0: sent SIGUSR1 to syncd" | |
+# mod: | |
+# enable usbnet and start sshd | |
+/sbin/ifup usb0 |
NewerOlder