https://wiki.archlinux.org/index.php/Systemd/User
https://streakycobra.github.io/posts/saas-or-spacemacs-as-a-service/ running an end user daemon in systemd
https://askubuntu.com/questions/676007/how-do-i-make-my-systemd-service-run-via-specific-user-and-start-on-boot
https://serverfault.com/questions/739451/systemd-user-service-doesnt-autorun-on-user-login/802302
https://emacs.stackexchange.com/questions/24823/emacs-as-daemon-doesnt-load-theme
https://emacs.stackexchange.com/questions/26/using-daemon-mode-in-gnome-3
https://emacs.stackexchange.com/questions/23976/emacs-as-server-daemon-struggles
https://emacs.stackexchange.com/questions/28431/how-know-if-emacs-is-being-initialized-in-daemon-mode
https://emacs.stackexchange.com/questions/24095/bashrc-script-to-automatically-create-emacs-server-session-on-startup
https://emacs.stackexchange.com/questions/8147/using-desktop-mode-with-emacs-daemon
https://emacs.stackexchange.com/questions/22273/emacs-daemon-not-working-properly-emacs-server-runs-fine - Problem described is fixed by using different sockets. Solution is a socket related one, and is also related to immediately following link
https://emacs.stackexchange.com/questions/3370/emacs-daemon-frozen-when-started-with-emacsclient-file/5454#5454
https://emacs.stackexchange.com/questions/3209/prevent-emacsclient-from-blocking-other-instances
https://emacs.stackexchange.com/questions/24823/emacs-as-daemon-doesnt-load-theme?rq=1
https://stackoverflow.com/questions/18904529/after-emacs-deamon-i-can-not-see-new-theme-in-emacsclient-frame-it-works-fr
https://stackoverflow.com/questions/3984730/emacs-gui-with-emacs-daemon-not-loading-fonts-correctly
https://emacs.stackexchange.com/questions/41/start-two-separate-emacs-daemons-for-console-and-gui/1053#1053
OP’s issue could be fixed by advice
which in turn could obviated by use of after-make-frame-functions
hooks
-
Check on how to use run SQL queries in shell scripts
-
check how the align option command works
-
How to add formatted output.
-
https://www.everythingcli.org/git-like-a-pro-sort-git-tags-by-date/ Article here contains good info on printing the output with separators and piping it to an awk command for better formatting.
-
Have the list of buffers display permanently in emacs/spacemacs sr-speedbar mentioned - https://emacs.stackexchange.com/questions/17446/permanent-window-with-list-of-opened-buffers
https://www.emacswiki.org/emacs/SrSpeedbar * -
Emacs - pretty print source code This area is not so clear from searching, and is apparently language dependent.
-
https://stackoverflow.com/questions/992685/auto-formatting-a-source-file-in-emacs
-
https://github.com/tuhdo/semantic-refactor/blob/master/srefactor-demos/demos-elisp.org
-
https://stackoverflow.com/questions/1609805/code-formatter-beautifier-for-c-on-linux-for-emacs-user
-
https://www.emacswiki.org/emacs/IndentingC - C source code
-
https://superuser.com/questions/268029/how-can-i-disable-smart-indentation-in-emacs-and-force-either-spaces-or-tabs
https://superuser.com/questions/109566/configure-emacs-to-insert-spaces-when-pressing-the-the-tab-key
M-x set-variable<RET> indent-tabs-mode<RET> nil
Or in your .emacs file:
(setq-default indent-tabs-mode nil)
https://stackoverflow.com/questions/36719386/spacemacs-set-tab-width
https://stackoverflow.com/questions/69934/set-4-space-indent-in-emacs-in-text-mode
https://www.emacswiki.org/emacs/SmartTabs
https://emacs.stackexchange.com/questions/32677/what-keystrokes-are-required-to-navigate-back-from-the-bash-shell-to-the-editing
https://www.emacswiki.org/emacs/IndentationBasics
https://www.emacswiki.org/emacs/DirectoryVariables
There is a guide at https://stackoverflow.com/questions/36719386/spacemacs-set-tab-width, based on a more involved example at http://blog.binchen.org/posts/easy-indentation-setup-in-emacs-for-web-development.html
This is related to https://www.emacswiki.org/emacs/IndentingSourceCode
(defun my-setup-indent (n) ;; java/c/c++ (setq c-basic-offset n) ;; web development (setq coffee-tab-width n) ; coffeescript (setq javascript-indent-level n) ; javascript-mode (setq js-indent-level n) ; js-mode (setq js2-basic-offset n) ; js2-mode, in latest js2-mode, it's alias of js-indent-level (setq web-mode-markup-indent-offset n) ; web-mode, html tag in html file (setq web-mode-css-indent-offset n) ; web-mode, css in html file (setq web-mode-code-indent-offset n) ; web-mode, js code in html file (setq css-indent-offset n) ; css-mode )
http://zshwiki.org/home/scripting/array
https://superuser.com/questions/737350/iterating-over-keys-or-k-v-pairs-in-zsh-associative-array
https://stackoverflow.com/questions/37387781/how-to-add-to-an-associative-array-in-zsh
https://unix.stackexchange.com/questions/51998/whats-the-right-way-to-sort-a-associated-array-in-bash-or-zsh
http://zsh.sourceforge.net/Doc/Release/Parameters.html
https://superuser.com/questions/636126/does-zsh-support-hash-table-as-a-built-in-data-type
https://stackoverflow.com/questions/40167128/in-zsh-how-do-you-test-if-an-associative-array-aka-hash-table-has-a-certain-p/43346359
https://unix.stackexchange.com/questions/284105/zsh-hash-directory-completion
Original query was how to list last commits on all branches on all relevant repos, displaying full directory names on each branch, their remotes and the remote URLs.
Questions began with https://stackoverflow.com/questions/44433867/does-git-log-have-the-option-of-iterating-a-command-over-all-or-some-branches and https://stackoverflow.com/questions/44525202/can-the-url-of-the-remote-be-included-in-the-output-of-git-for-each-ref-comman
The latter has a good enough answer.
Main questions with more information on the solution are https://stackoverflow.com/questions/5188320/how-can-i-get-a-list-of-git-branches-ordered-by-most-recent-commit?rq=1 and https://stackoverflow.com/questions/2514172/listing-each-branch-and-its-last-revisions-date-in-git. http://www.commandlinefu.com/commands/view/2345/show-git-branches-by-date-useful-for-showing-active-branches has some methods using git and sed.
Answer to own question teaches some bash techniques new to me.
Method is based on answer EMACS:SE-19936.
Sample script in answer was modified
(setq use-spacemacs (getenv "USE_SPACEMACS")) (when (> (length use-spacemacs) 0) (setq user-emacs-directory "~/.spacemacs.d/")) ; defaults to ~/.emacs.d/ (load (expand-file-name "init.el" user-emacs-directory))
spacemacs
script created in ~/bin
to launch Spacemacs directory. emacs
will launch as normal . Approach from now will be to install Spacemacs to ~/.spacemacs.d. It is in the documentation.
One suggestion on the spacemacs page is to install spacemacs to a separate .emacs.d
under a ~/spacemacs
but that appears to be for the purpose of testing. The logic of changing the HOME
environment variable is also questionable
mkdir ~/spacemacs git clone https://github.com/syl20bnr/spacemacs.git ~/spacemacs/.emacs.d HOME=~/spacemacs emacs
The other more sensible suggestion is to install spacemacs to a spacemacs
directory under the .emacs.d
directory and use a switch to load the init.el
file in the spacemacs
subdirectory.
(setq spacemacs-start-directory "~/.emacs.d/spacemacs/") (load-file (concat spacemacs-start-directory "init.el"))
As an exercise it may be a good idea to use a case statement to select the configuration based an on environment variable similar to the ~/bin/spacemacs
script.
There may be other files in other accounts
# script tp save files of personal .profile, there could be # more in other accounts mkdir -p ~/workpad/config cp ~/.ba* ~/workpad/config/. cp ~/.directory ~/workpad/config/. cp ~/.house_aliases ~/workpad/config/. cp ~/.gitconfig ~/workpad/config/. cp ~/.profile ~/.screenrc ~/.spacemacs ~/.vimrc ~/workpad/config/.
Ensuring bash configuration doesn’t break is the main concern and so far it looks like it doesn’t. Can’t be too sure though. Making sure that rc files, functions and aliases are put in place is the main concern now.
srvadmin
account may need greater care.
gogs
may not be the ideal. Perhaps are dockerized Redmine may be better. That needs to be tested.
icdiff - https://github.com/jeffkaufman/icdiff and cdiff - https://github.com/ymattw/cdiff
icdiff installed centrally.
Base system installation must include apt-get install python-setuptools python3-setuptools
vimdiff still looks better. More familiarity required with icdiff options. It would be better if vimdiff could be setup just to compare and not switch to editing mode.
icdiff - https://github.com/jeffkaufman/icdiff and cdiff - https://github.com/ymattw/cdiff
icdiff looks more promising. Whether to install globally or locally is the main issue.
icdiff installed centrally.
Base system installation must include apt-get install python-setuptools python3-setuptools
vimdiff still looks better. More familiarity required with icdiff options. It would be better if vimdiff could be setup just to compare and not switch to editing mode.
Settled on https://github.com/psprint/zsh-navigation-tools which appears to be the goto tool for that function and is included with the oh-my-zsh distribution. It seems pretty straightforward and I have to lookup the docs.
Superuser question - https://superuser.com/questions/417627/oh-my-zsh-history-completion
More up to date version - https://superuser.com/questions/417627/oh-my-zsh-history-completion/841319#841319
adding export USER=gogs
to top of script allows it work. `gogs appears to check it in some way.
Next step is to check default environment values are set, which ones are missing in a crontab running and know where they should be placed in dependent scripts. Perhaps in the individual crontab entries where required.
In Debian Jessie default environment variables in cron acquired via cron entry is: * * * * * env > ~/cronenv
are (values in file ~/cronenv
) are
HOME=/home/gogs LOGNAME=gogs PATH=/usr/bin:/bin LANG=en_GB SHELL=/bin/sh PWD=/home/gogs
Debian Stretch/Sid has the following - LANGUAGE has been added but not sure what the :
is doing there
LANGUAGE=:en_GB.utf8 HOME=/home/rchurch LOGNAME=rchurch PATH=/usr/bin:/bin LANG=en_GB.UTF-8 SHELL=/bin/sh PWD=/home/rchurch
In order to for user to logon and inspect the events, commands are run in a screen session. The The screen command has the form screen -d -m -S sessionName bash -c 'script.sh; exec bash'
. The exec bash
is needed for some reason. Examples are documented at MTC:1301. Workings and configuration of`xpra` must be revisted. pfbadmin needs it.
The @reboot script for gogs did not work because the environment variables when crontab are not properly set for the use and some programs require it. The solution for now will be to add export USER=gogs
to the execution script.
There are some links to print out what variables are set when crontab runs and the missing once can be add to crontab or the actual execution scripts.
https://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with
https://unix.stackexchange.com/questions/49419/manually-run-a-cron-job-simulate-running-cron-job
https://serverfault.com/questions/85893/running-a-cron-job-manually-and-immediately
https://serverfault.com/questions/84542/how-can-i-test-a-new-cron-script
http://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables
http://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables/89596#89596
After importing it, running result in error message:
Failed to open a session for the virtual machine CS_VBOX_VM_01. VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED). Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
It could be the default in the version of VirtualBox used on Linux, or imported from a setting actually used in the Windows version
Creating Docs on buffer and window navigation in Emacs, Spacemacs, Vim primarily with tmux and screen
Queries at EmacsSE:33183 and SpacemacsRDT:6dwkfq
Main manual is at Single Page Manual and Page per Topic
emacs docs found at Buffers and Windows
C-x 2
, C-x 3
and C-x 0
split horizontal, split vertical and delete respectively. Bringing up list of buffers
:set autoread
is offered but apparently not good enough. Source of what is apparently the best option is http://vim.wikia.com/wiki/Have_Vim_check_automatically_if_the_file_has_changed_externally. Related answers are:
https://superuser.com/questions/181377/auto-reloading-a-file-in-vim-as-soon-as-it-changes-on-disk/370814#370814
https://stackoverflow.com/questions/2490227/how-does-vims-autoread-work
https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim
question asked at https://stackoverflow.com/questions/44259789/does-git-have-a-debug-or-verbose-option-explaining-what-it-is-doing. Promising answers from Google search "git debug options" are
https://stackoverflow.com/questions/6178401/how-can-i-debug-git-git-shell-related-problems
https://askubuntu.com/questions/336907/really-verbose-way-to-test-git-connection-over-ssh
https://projects.cs.uaf.edu/redmine/projects/public/wiki/How_do_I_make_Git_give_more_verbose_output
http://www.philandstuff.com/2014/02/09/git-pickaxe.html
One a side note search came up with https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git, which goes into using git blame
and git bisect
into debugging code for places where errors arose.
Discovered Simple way to change messages after node creation which is a solution for Is there a way to add a timestamp to messages print from drupal_set_message()?
Tells about Custom Submit Messages and how same can be accomplished with Rules module.
Geany doesn’t seem to be well supported, but there is a page at https://github.com/DGivney/geany-lua-scripts which has some code on scripting for geany. Kate has vi editing enabled at
To enable the VI input mode, go to
Settings → Configure Kate… → Editing → VI Input Mode.
It can also be toggled with the “VI Input Mode” setting in the “Edit” menu. (The default shortcut key is Meta+Ctrl+V – where Meta usually is the Windows key).
There is also a link at https://wiki.geany.org/_media/config/scripts/vim-keybindings.lua
info found at http://spacemacs.org/doc/FAQ.html#make-copypaste-working-with-the-mouse-in-x11-terminals
section 2.16
code added is added to the dotspacemacs/user-config
section in .spacemacs
:
(xterm-mouse-mode -1)
Other relevant URLs were http://xivilization.net/~marek/blog/2015/06/22/disabling-mouse-in-spacemacs
https://emacs.stackexchange.com/questions/21540/how-to-disable-mouse-in-spacemacs
https://www.reddit.com/r/spacemacs/comments/4c7t2w/how_to_disable_capturing_mouse_when_using_in/
http://endlessparentheses.com/disable-mouse-only-inside-emacs.html
https://emacs.stackexchange.com/questions/32575/how-can-emacs-mouse-capture-in-a-terminal-be-disabled-to-enable-copy-and-past
but they didn’t appear to be X11 terminal oriented
===
Two sources were located - https://www.cyberciti.biz/faq/howto-set-date-time-from-linux-command-prompt/ and https://unix.stackexchange.com/questions/151547/linux-set-date-through-command-line.
Command used was date --utc -s '2017-05-16 01:15:00'
convert a set of graphic files from one format to another. The example in this case is converting from .jpg to .png files.
Related links are and https://superuser.com/questions/71028/batch-converting-png-to-jpg-in-linux
Found algorithms at https://tosbourn.com/insert-gists-without-javascript/. It essential involves opening the gist as javascript and stripping some content out of it.
-
Find any reference of \n and remove it.
-
Find any reference of \ and remove it.
-
Find any double spaces and remove them.
-
Then just remove the document.write(' and '); from the start and end of the two lines.
The 2 lines left are the CSS and the HTML. The example prefers to be the CSS in the HTML doc, but I will keep them separate. CSS though may differ for different document types.
Website name is vonhabsi.github.io and it is based on creating a repository with the same name as the domain name. ie vonhabsi.github.io
Different types and guides followed
-
https://pages.github.com/ This pages goes through basics of cloning the site at
username.github.io
making a change and pushing changes back. The master branch is the one used to create the site. It will make sense to develop locally in a separate branch, merge to master and push it when ready. -
An alternative based on using multiple projects is to have an orphan branch in each relevant repo named
gh-pages
. If the account name isvonhabsi
then each repo with a nameproject-repo-N
with agh-pages
branch will have its website appear atvonhabsi.github.io/project-repo-N
. There is also another page at https://service.github.com which has what seems to be a more hands on approach to learning about github. -
The main video (an unlisted one) showing the basic starting process is https://www.youtube.com/watch?v=RaKX4A5EiQo&t=757s. It is also clickable at the end of the embedded introductory video at https://pages.github.com.
-
The main Youtube channel for Github is https://www.youtube.com/user/github and there is another channel for training at https://www.youtube.com/user/GitHubGuides which hosts the above mentioned guide.
-
Integrations Directory - https://github.com/integrations. This is a page which allows you to create different services offered by different companies, probably by connection to you Github account. The include services like Travis CI, Slack, Trello, Appveyor, Docker etc
-
U&L SE - https://unix.stackexchange.com/questions/267361/syntax-highlighting-in-the-terminal - Syntax Highlighting In the Terminal
-
U&L SE - https://unix.stackexchange.com/questions/90990/less-command-and-syntax-highlighting - Less Command and Syntax Highlighting
-
Vim Wikia - http://vim.wikia.com/wiki/Using_vim_as_a_syntax-highlighting_pager - Using Vim as a syntax highlighting pager
-
Superuser - https://superuser.com/questions/71588/how-to-syntax-highlight-via-less/71593 - How To Syntax Highlight via Less
-
Gnu.org - https://www.gnu.org/software/src-highlite/source-highlight.html - GNU Source-highlight 3.1.8
-
Andre Simon - http://www.andre-simon.de/doku/highlight/en/highlight.php - Original Developer of GNU Source
Other options are the use of the python pygments package, and Vim’s $VIMRUNTIME/macros/less.sh program which is bundled with Vim.
Both source-highlight from GNU and the Vim viewer $VIMRUNTIME/macros/less.sh
worked well enough.
installed via debian package. Current debian packages are out of date at 3.18, including stretch
. Authors version is at 3.26
apt-get install source-highlight
# link is required to get some of the scripts out there to work
ln -s /usr/share/source-highlight/src-hilite-lesspipe.sh /usr/bin/src-hilite-lesspipe.sh
# aliases added for colored less output
# based SU:71588
# based on linking /usr/bin to file in /usr/share
export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
export LESS=' -R '
#adapts for larger files
alias lessh='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -M '
# terdon ULSE:267361
cless(){
LESSOPEN='| source-highlight --failsafe --out-format=esc256 -o STDOUT -i %s 2>/dev/null ' less -R "$@"
}
icdiff - https://github.com/jeffkaufman/icdiff and cdiff - https://github.com/ymattw/cdiff
icdiff looks more promising. Whether to install globally or locally is the main issue.
icdiff installed centrally.
Base system installation must include apt-get install python-setuptools python3-setuptools
vimdiff still looks better. More familiarity required with icdiff options. It would be better if vimdiff could be setup just to compare and not switch to editing mode.
Settled on https://github.com/psprint/zsh-navigation-tools which appears to be the goto tool for that function and is included with the oh-my-zsh distribution. It seems pretty straightforward and I have to lookup the docs.
Superuser question - https://superuser.com/questions/417627/oh-my-zsh-history-completion
More up to date version - https://superuser.com/questions/417627/oh-my-zsh-history-completion/841319#841319
adding export USER=gogs
to top of script allows it work. `gogs appears to check it in some way.
Next step is to check default environment values are set, which ones are missing in a crontab running and know where they should be placed in dependent scripts. Perhaps in the individual crontab entries where required.
In Debian Jessie default environment variables in cron acquired via cron entry is: * * * * * env > ~/cronenv
are (values in file ~/cronenv
) are
HOME=/home/gogs LOGNAME=gogs PATH=/usr/bin:/bin LANG=en_GB SHELL=/bin/sh PWD=/home/gogs
Debian Stretch/Sid has the following - LANGUAGE has been added but not sure what the :
is doing there
LANGUAGE=:en_GB.utf8 HOME=/home/rchurch LOGNAME=rchurch PATH=/usr/bin:/bin LANG=en_GB.UTF-8 SHELL=/bin/sh PWD=/home/rchurch
In order to for user to logon and inspect the events, commands are run in a screen session. The The screen command has the form screen -d -m -S sessionName bash -c 'script.sh; exec bash'
. The exec bash
is needed for some reason. Examples are documented at MTC:1301. Workings and configuration of`xpra` must be revisted. pfbadmin needs it.
The @reboot script for gogs did not work because the environment variables when crontab are not properly set for the use and some programs require it. The solution for now will be to add export USER=gogs
to the execution script.
There are some links to print out what variables are set when crontab runs and the missing once can be add to crontab or the actual execution scripts.
https://stackoverflow.com/questions/2135478/how-to-simulate-the-environment-cron-executes-a-script-with
https://unix.stackexchange.com/questions/49419/manually-run-a-cron-job-simulate-running-cron-job
https://serverfault.com/questions/85893/running-a-cron-job-manually-and-immediately
https://serverfault.com/questions/84542/how-can-i-test-a-new-cron-script
http://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables
http://unix.stackexchange.com/questions/27289/how-can-i-run-a-cron-command-with-existing-environmental-variables/89596#89596
After importing it, running result in error message:
Failed to open a session for the virtual machine CS_VBOX_VM_01. VT-x is disabled in the BIOS for all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED). Result Code: NS_ERROR_FAILURE (0x80004005) Component: ConsoleWrap Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
It could be the default in the version of VirtualBox used on Linux, or imported from a setting actually used in the Windows version
Creating Docs on buffer and window navigation in Emacs, Spacemacs, Vim primarily with tmux and screen
Queries at EmacsSE:33183 and SpacemacsRDT:6dwkfq
Main manual is at Single Page Manual and Page per Topic
emacs docs found at Buffers and Windows
C-x 2
, C-x 3
and C-x 0
split horizontal, split vertical and delete respectively. Bringing up list of buffers
:set autoread
is offered but apparently not good enough. Source of what is apparently the best option is http://vim.wikia.com/wiki/Have_Vim_check_automatically_if_the_file_has_changed_externally. Related answers are:
https://superuser.com/questions/181377/auto-reloading-a-file-in-vim-as-soon-as-it-changes-on-disk/370814#370814
https://stackoverflow.com/questions/2490227/how-does-vims-autoread-work
https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim
question asked at https://stackoverflow.com/questions/44259789/does-git-have-a-debug-or-verbose-option-explaining-what-it-is-doing. Promising answers from Google search "git debug options" are
https://stackoverflow.com/questions/6178401/how-can-i-debug-git-git-shell-related-problems
https://askubuntu.com/questions/336907/really-verbose-way-to-test-git-connection-over-ssh
https://projects.cs.uaf.edu/redmine/projects/public/wiki/How_do_I_make_Git_give_more_verbose_output
http://www.philandstuff.com/2014/02/09/git-pickaxe.html
One a side note search came up with https://git-scm.com/book/en/v2/Git-Tools-Debugging-with-Git, which goes into using git blame
and git bisect
into debugging code for places where errors arose.
Discovered Simple way to change messages after node creation which is a solution for Is there a way to add a timestamp to messages print from drupal_set_message()?
Tells about Custom Submit Messages and how same can be accomplished with Rules module.
Geany doesn’t seem to be well supported, but there is a page at https://github.com/DGivney/geany-lua-scripts which has some code on scripting for geany. Kate has vi editing enabled at
To enable the VI input mode, go to
Settings → Configure Kate… → Editing → VI Input Mode.
It can also be toggled with the “VI Input Mode” setting in the “Edit” menu. (The default shortcut key is Meta+Ctrl+V – where Meta usually is the Windows key).
There is also a link at https://wiki.geany.org/_media/config/scripts/vim-keybindings.lua
info found at http://spacemacs.org/doc/FAQ.html#make-copypaste-working-with-the-mouse-in-x11-terminals
section 2.16
code added is added to the dotspacemacs/user-config
section in .spacemacs
:
(xterm-mouse-mode -1)
Other relevant URLs were http://xivilization.net/~marek/blog/2015/06/22/disabling-mouse-in-spacemacs
https://emacs.stackexchange.com/questions/21540/how-to-disable-mouse-in-spacemacs
https://www.reddit.com/r/spacemacs/comments/4c7t2w/how_to_disable_capturing_mouse_when_using_in/
http://endlessparentheses.com/disable-mouse-only-inside-emacs.html
https://emacs.stackexchange.com/questions/32575/how-can-emacs-mouse-capture-in-a-terminal-be-disabled-to-enable-copy-and-past
but they didn’t appear to be X11 terminal oriented
===
Two sources were located - https://www.cyberciti.biz/faq/howto-set-date-time-from-linux-command-prompt/ and https://unix.stackexchange.com/questions/151547/linux-set-date-through-command-line.
Command used was date --utc -s '2017-05-16 01:15:00'
convert a set of graphic files from one format to another. The example in this case is converting from .jpg to .png files.
Related links are and https://superuser.com/questions/71028/batch-converting-png-to-jpg-in-linux
Found algorithms at https://tosbourn.com/insert-gists-without-javascript/. It essential involves opening the gist as javascript and stripping some content out of it.
-
Find any reference of \n and remove it.
-
Find any reference of \ and remove it.
-
Find any double spaces and remove them.
-
Then just remove the document.write(' and '); from the start and end of the two lines.
The 2 lines left are the CSS and the HTML. The example prefers to be the CSS in the HTML doc, but I will keep them separate. CSS though may differ for different document types.
Website name is vonhabsi.github.io and it is based on creating a repository with the same name as the domain name. ie vonhabsi.github.io
Different types and guides followed
-
https://pages.github.com/ This pages goes through basics of cloning the site at
username.github.io
making a change and pushing changes back. The master branch is the one used to create the site. It will make sense to develop locally in a separate branch, merge to master and push it when ready. -
An alternative based on using multiple projects is to have an orphan branch in each relevant repo named
gh-pages
. If the account name isvonhabsi
then each repo with a nameproject-repo-N
with agh-pages
branch will have its website appear atvonhabsi.github.io/project-repo-N
. There is also another page at https://training.github.com which has what seems to be a more hands on approach to learning about github. -
The main video (an unlisted one) showing the basic starting process is https://www.youtube.com/watch?v=RaKX4A5EiQo&t=757s. It is also clickable at the end of the embedded introductory video at https://pages.github.com.
-
The main Youtube channel for Github is https://www.youtube.com/user/github and there is another channel for training at https://www.youtube.com/user/GitHubGuides which hosts the above mentioned guide.
-
Integrations Directory - https://github.com/integrations. This is a page which allows you to create different services offered by different companies, probably by connection to you Github account. The include services like Travis CI, Slack, Trello, Appveyor, Docker etc
-
U&L SE - https://unix.stackexchange.com/questions/267361/syntax-highlighting-in-the-terminal - Syntax Highlighting In the Terminal
-
U&L SE - https://unix.stackexchange.com/questions/90990/less-command-and-syntax-highlighting - Less Command and Syntax Highlighting
-
Vim Wikia - http://vim.wikia.com/wiki/Using_vim_as_a_syntax-highlighting_pager - Using Vim as a syntax highlighting pager
-
Superuser - https://superuser.com/questions/71588/how-to-syntax-highlight-via-less/71593 - How To Syntax Highlight via Less
-
Gnu.org - https://www.gnu.org/software/src-highlite/source-highlight.html - GNU Source-highlight 3.1.8
-
Andre Simon - http://www.andre-simon.de/doku/highlight/en/highlight.php - Original Developer of GNU Source
Other options are the use of the python pygments package, and Vim’s $VIMRUNTIME/macros/less.sh program which is bundled with Vim.
Both source-highlight from GNU and the Vim viewer $VIMRUNTIME/macros/less.sh
worked well enough.
installed via debian package. Current debian packages are out of date at 3.18, including stretch
. Authors version is at 3.26
apt-get install source-highlight
# link is required to get some of the scripts out there to work
ln -s /usr/share/source-highlight/src-hilite-lesspipe.sh /usr/bin/src-hilite-lesspipe.sh
# aliases added for colored less output
# based SU:71588
# based on linking /usr/bin to file in /usr/share
export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
export LESS=' -R '
#adapts for larger files
alias lessh='LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s" less -M '
# terdon ULSE:267361
cless(){
LESSOPEN='| source-highlight --failsafe --out-format=esc256 -o STDOUT -i %s 2>/dev/null ' less -R "$@"
}