$ #ls -l /usr/share/vim*/colors To set it permanently go to ~/.vimrc, set color default
Javascript Get All Class element and convert it into array
var elems = Array.prototype.slice.call(document.querySelectorAll(‘.js-switch’)); Explanation: document.querySelectorAll(‘ClassName ID’) – Get All Class or id element and put into object Array.prototype.slice.call – Convert Object into Array Looping:- elems.forEach(function(html) { ### Your Code Here ### });
Gnome Terminal – ssh execute with command
gnome-terminal –command ‘ssh -t -p22122 julius@jumper.aims.tameko.co “tmux a”‘
Shell Scripting Accepting Argv , getops , checking , echoing
#!/bin/bash #getopts checking for argv and define it into variables #options that needs to receive parameter have to enter : after the option EG: f:u:d: #In This Example h does not accept parameter. it execute the case only while getopts u:d:p:f:h option do case “${option}” in u) USER=${OPTARG};; d) DATE=${OPTARG};; p) PRODUCT=${OPTARG};; f) FORMAT=$OPTARG;; h) […]