Skip to content

Instantly share code, notes, and snippets.

@u0d7i
u0d7i / disable_vim_auto_visual_on_mouse.txt
Last active February 27, 2024 14:08
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
my ~/.vimrc for preserving global defaults and only changing one option:
source $VIMRUNTIME/defaults.vim
set mouse-=a
@u0d7i
u0d7i / all_gists_via_api.txt
Last active April 18, 2019 13:12
Download all my gists (via API)
$ wget -q -O - https://api.github.com/users/u0d7i/gists | grep raw_url | awk -F\" '{print $4}' | xargs -n1 wget
@u0d7i
u0d7i / n900_startup_rdate.txt
Created July 29, 2015 18:49
N900 - remove startup wizard, set date via NTP
Nokia-N900:~# mv /etc/X11/Xsession.d/30osso_startup_wizard /root
Nokia-N900:~# apt-get install openrdate
Nokia-N900:~# rdate -n pool.ntp.org
@u0d7i
u0d7i / n900_pcsuite_usbnet.txt
Last active August 29, 2015 14:26
N900 - usbnet and sshd on connect in PC Suite mode
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