Linux startup script

Create script in /etc/init.d sudo nano /etc/init.d/NameOfYourScript The following is an example based on starting up the no-ip service [/usr/local/bin/noip], but change the name of the script and the command to start and stop it and it would work for any command. #! /bin/sh # /etc/init.d/noip### BEGIN INIT INFO # Provides:          noip # Required-Start:    $remote_fs… Continue reading Linux startup script

XFCE4 Vnc Linux

#!/bin/sh unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS startxfce4 &

Display Virtuals As NoEdit Fields In Keystone Admin UI

Use the post init hook. For example: Assume the Post list model has the following, of which contentFull will be filled from the content.full virtual: … content: { brief: { type: Types.Html, wysiwyg: true, height: 150 }, extended: { type: Types.Html, wysiwyg: true, height: 400 } }, contentFull: {type: Types.Html, wysiwyg: true, height: 400, noedit:… Continue reading Display Virtuals As NoEdit Fields In Keystone Admin UI

Published
Categorized as Coding

Useful Windows programs

– dupeGuru – FolderSize – handbrake – Rambox – heidiSQL – 7-Zip – genymotion

Published
Categorized as Windows

Git pull submodule

Git Pull with Submodule For a repo with submodules, we can pull all submodules using git submodule update –init –recursive for the first time. All submodules will be pulled down locally. To update submodules, we can use git submodule update –recursive –remote or simply git pull –recurse-submodules

Published
Categorized as Coding