HowTo's , Tips , Hints etc. |
alpine
settings (Setup > Config)
Display Character Set = KOI8-R Keyboard Character Set = KOI8-R Posting Character Set = KOI8-R Unknown Character Set = <No Value Set>I experienced a problem when opening some mails. Namely, for those mails, when opened,
alpine
immediately generated
a nasty message
"Message number to jump to : 1;2c?"Then similar messages might appear many more times while scrolling through the mail (with arrow keys e.g.). The messages were constantly repeated for certain lines coming into display, while other lines were OK... Changing the
Display Character Set
from KOI8-R
to ISO-8859-1
removed the noise production, but lead to question marks displayed instead of
russian symbols. So this was not a remedy...
The problem seems to have disappeared after having selected the setting
[ ] Prefer Plain Textsuch that it looks like
[X] Prefer Plain TextWarning: the problem still occurs while scrolling through the e-mail list in certain folders.
Message number to jump to : 1;2c
, Message number to jump to : 1;2c?1;2c?1;2c?1;2c?1;2c?1;2c
Display Character Set = KOI8-R
C-middle_mouse
and (still pressing) Do Full Reset
if the VT Options menu has appeared,
hardreset
if the VT Option (no app-defaults) menu has appeared,
`?'
`<'
) .
fedotov
at a Fedora 10 linux:
Usernames are identical for the client PC and the mail.itep.ru server.
This can be compared to .pinerc
used with pine 4.64 at desy (SLD4 linux),
.pinerc
used with pine 4.44 at itep (Redhat 9 linux)
.pinerc
used with alpine 2.00 at desy as of 05.09.15 (SLD5 (?) linux ( fs sys
responds with 'i586_rhel50' 'i386_linux26'
))
~/.pinerc
at RH9 @ dom : [h1dom] ~ $ diff .pinerc.d150503.t1546 .pinerc 29c29 < inbox-path={mail.itep.ru/tls/novalidate-cert}inbox --- > inbox-path={mail.itep.ru:993/ssl/novalidate-cert}inbox 376,377c376,377 < "Personal (mail.itep.ru)" {mail.itep.ru/imap/ssl/novalidate-cert/user=fedotov}inbox.[], < "Shared (mail.itep.ru)" {mail.itep.ru/imap/ssl/novalidate-cert/user=fedotov}shared.ITEP.[] --- > "Personal (mail.itep.ru)" {mail.itep.ru:993/imap/ssl/novalidate-cert/user=fedotov}inbox.[], > "Shared (mail.itep.ru)" {mail.itep.ru:993/imap/ssl/novalidate-cert/user=fedotov}shared.ITEP.[]To be noted:
inbox-path
definition
Content-Type: TEXT/PLAIN; format=flowed; charset=KOI8-R
Subject:...
line
j=0 ; j=`expr $j + 1` if [ $i -lt 10 ]; then ...
for i in $(seq 1 4); do echo $i; done n=3 for i in $(seq 1 $n); do echo $i; done
.bashrc
: export PS1="\[\033[1;35m\][\u] \w $\[\033[0m\] "
Firefox Setup 66.0.5.exe
http://www.google.com/ncr
is redirected to https://www.google.com/
12345678
stands for eight random digits and letters): C:\Documents and Settings\Username\Application Data\Mozilla\Firefox\Profiles12345678.default\
/home/username/.mozilla/firefox/12345678.default/
/Username/Library/Application Support/Firefox/Profiles/12345678.default/
user.js
. Write the following line into that text file:user_pref("capability.policy.default.checkloaduri.enabled", "allAccess");
user.js
in the C:\Users\UserName\AppData\Roaming\Mozilla\Firefox\Profiles\ProfileName.default
directory UserName
and ProfileName
to be replaced by real names) of the following content: user_pref("capability.policy.policynames", "localfilelinks"); user_pref("capability.policy.localfilelinks.sites", "http://www.example.com"); user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");In the second line, the string
"http://www.example.com"
is an example of a site URL; it was set to https://twiki.cern.ch
in my case. "http://www.example.com http://www.example.net"
about:config
and press Enter. browser.tabs.onTop
.
C:\Users\<user>\AppData\Roaming\Mozilla\Firefox\Profiles\2ni860jy.default\sessionstore.js
2ni860jy.default
folder name is an example, the real name will be a similar quasi-random string) .\sessionstore-backups
subdirectory may contain older versions of session configuration, e.g. upgrade.js-<build_tag>
which corresponds to the state at the moment of a firefox upgrade. sessionstore.js
)
sessionstore.js
C:\Users\fedotov\AppData\Roaming\Mozilla\Firefox\Profiles\2ni860jy.default\chrome\userChrome.css
)
userChrome.css
file in order to put tabs on bottom: about:config
-> search for dom.event dom.event.clipboardevents.enabled
is true
-> make it false
by a double click on the line
/castor/cern.ch/user/l/linda
)
nsls
[-l] [-R] <dir or file>
rfdir
[-R]<dir or file>
-R
option : recursively
nsrename
old_name new_name
rfrename
old_name new_name
nsrm
[-r] [-i] <dir or file>
rfrm
[-r] <dir or file>
-r
option : recursively
-i
option : ask for an acknowledgement before removing
nsmkdir
[-p] new_dir
rfmkdir
[-p] new_dir
-p
option : creation of non-existing (parent) directories
rfcp
local_file castor_file
rfcp
castor_file local_file
rfcat
castor_file
-- retrieval to standard output rfcat $CASTOR_HOME/logfile > log
rfcat $CASTOR_HOME/logfile | less
stager_get
-M file1 [-M file2 [...]]
file1
(, file2
, ...)
stager_get
-f file_with_FileList
file_with_FileList
(one line per file)
stager_qry
-M file1 [-M file2 [...]]
file1
(, file2
, ...)
stager_gry
-f file_with_FileList
file_with_FileList
(one line per file)
stager_qry
-M dir/
dir
known to the stager Error 2/No such file or directory
... -- file not known to the stager
filename...
STAGIN
-- file being staged
filename...
STAGED
-- file has been staged
stager_rm
-M file1 [-M file2 [...]]
nsls --class file
gives a class_id
(a number) of the file
nslistclass --id class_id
-- prints out properties of the class with id = class_id
/castor/cern.ch/cms/store/relval/CMSSW_3_6_1/RelValTTbar/GEN-SIM-RECO/START36_V7-v1/0020/782BDBBC-085D-DF11-98B4-003048678F1C.rootcan be read in with:
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( '/store/relval/CMSSW_3_6_1/RelValTTbar/GEN-SIM-RECO/START36_V7-v1/0020/782BDBBC-085D-DF11-98B4-003048678F1C.root' ) )This can be found out with the edmFileUtil utility (should be run from a shell with the cms environment set up):
[lxplus255] $ edmFileUtil -d /store/relval/CMSSW_3_6_1/RelValTTbar/GEN-SIM-RECO/START36_V7-v1/0020/782BDBBC-085D-DF11-98B4-003048678F1C.root rfio:/castor/cern.ch/cms/store/relval/CMSSW_3_6_1/RelValTTbar/GEN-SIM-RECO/START36_V7-v1/0020/782BDBBC-085D-DF11-98B4-003048678F1C.rootExample 2: A castor file from the user area
/castor/cern.ch/user/f/fedotov/crab/tm/tut_Apr10/outfile_1_1_ABd.rootcan be read in with:
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( 'rfio:/castor/cern.ch/user/f/fedotov/crab/tm/tut_Apr10/outfile_1_1_ABd.root' ) )Example 3: The rfio address for a file in castor /store/caf/user/ directory seems to be a special case. The example is for the file
/castor/cern.ch/cms/store/caf/user/fedotov/test/RelValPhotonJets_Pt_10.root
[lxplus255] $ edmFileUtil -d /store/caf/user/fedotov/test/RelValPhotonJets_Pt_10.root rfio://castorcms/?svcClass=cmscafuser&path=/castor/cern.ch/cms/store/caf/user/fedotov/test/RelValPhotonJets_Pt_10.rootNote: The rfdir command accepts both
/castor/cern.ch/cms/store/caf/user/...
and
rfio://castorcms/?svcClass=cmscafuser&path=/castor/cern.ch/cms/store/caf/user...
arguments.
cmsX , X = Stage, Ls, Rm, Rmdir, Pfm
for EOS
eos
, see eos help
for the list of commands; eos help
is an example, more examples: eos ls
, eos ls -l eos/cms/store/user
eof
is an alias to /afs/cern.ch/project/eos/installation/0.1.0-22d/bin/eos.select
eos quota
lists (different) eos quotas
/usr/bin/xrd
(there is man xrd
, also xrd
followed by help
). xrd eoscms
connects to the cms eos storage
xrdcp ...
copies local files < -- > eos files
theHFEtaBounds[ieta]
, ...
ce_black_list = ce3.itep.ru
) and try
to run them again.
crab -getoutput
, it works fine. But if I try to write output directly to castor I receive some strange error...
Olga: Did you set correct permissions for CASTOR output directory?
You have to do (better to create a subdir):
rfmkdir /castor/cern.ch/user/k/krohotin/OUTPUT rfchmod 775 /castor/cern.ch/user/k/krohotin/OUTPUTAnton: Try Olga's suggestion. In case it still does not work, use a different file transfer pattern: copy them locally and then move to CASTOR .
. /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh # LCG = WLCG = Worldwide LHC Computing Grid project
...; cmsenv
. /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.sh
crab.cfg
: copy and edit a template $CRABPATH/crab.cfg
: contains essential parameters , and $CRABPATH/full_crab.cfg
: a fully documented template
crab -h # opens a help with the `less' viewer
crab -create # creates a directory, default: crab_0_YYMMDD_HHMMSS
crab -submit # last created job crab -submit -c <dir name> # an arbitrary job
crab -status # the latest job crab -status -c <dir name> # an arbitrary jobThe status includes web addresses for monitoring pages. They can be printed separately via
crab -printId # prints Task Id, CMS Dashboard, Server page
crab -getoutput # fetch output into crab.../res directory crab -getoutput -c <dir name> # arbitrary job
crab -report [ -c <dir name> ]
crab -copyData [-c <dir name>] # copy data from remote SE to crab.../res directorySpecifying either `-dest_se=' or `-dest_endpoint=' , the output can be directed to another SE.
crab -publish
(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))
~/.emacs
file.
M-x electric-indent-mode
toggles between electric-indent-mode
enabled (default) / disabled . Ret
behaviour changes between newline and indent (default) and newline only
$Id $
tags for CVS are nice, but it can be a pain when you're doing lots of checkins and have to re-load the file each time. You can M-x revert-bufer
C-x C-v
which invokes find-alternate-file
, but just so happens to have the current buffer name, so you just have to do C-x C-v RET
;; I hate tabs! (setq-default indent-tabs-mode nil)Now, if you also use tab completion everywhere
character (ASCII 9),
but won't be able too. Quoted-insert
to the rescue.
Type C-q C-i
to insert a horizontal tab character.
"
M-1 M-! date
Manual:
M-! C-x/C-c/C-v Cut and Paste (CUA)
in the Options menu; this will activate the C-v
at least
-*-Courier New-normal-r-*-*-13-*-*-*-c-*-iso8859-1
Courier New-13
scratch
buffer by pressing C-j
at the end of the line: (w32-select-font nil t)
scratch
buffer in quotes, e.g.: "ROL-K8/Courier-10"
M-x set-default-font
command : Font name:
ROL-K8/Courier-12
emacs-koi
indicating there the start-up font, e.g., the associated object can be "C:\Program Files (x86)\emacs-23.4\bin\runemacs.exe" -fn ROL-K8/Courier-12
C-x c raw-text-unix RET C-x C-f
filename RET
raw-text-unix
is one of numerous coding systems, RET
is the return key
\232
not interpreted as e.g. japan symbols
fs sys
reporting "Current sysname list is 'amd64_rhel60' 'amd64_linux26'" ). emacs -nw a_koi8_file
. C-x RET f koi8
defines the "Coding system for saving the buffer"
C-x RET t koi8
defines the "Coding system for terminal output "
C-x RET k koi8
defines the "Coding system for keyboard input " C-h C RET
may describe the coding system as follows Coding system for saving this buffer: R -- cyrillic-koi8-unix (alias: koi8-r-unix koi8-unix cp878-unix) Default coding system (for new files): R -- cyrillic-koi8-unix (alias: koi8-r-unix koi8-unix cp878-unix) Coding system for keyboard input: R -- koi8 (alias of cyrillic-koi8) Coding system for terminal output: R -- koi8 (alias of cyrillic-koi8) Coding system for inter-client cut and paste: nil Defaults for subprocess I/O: decoding: R -- cyrillic-koi8-unix (alias: koi8-r-unix koi8-unix cp878-unix) encoding: R -- cyrillic-koi8-unix (alias: koi8-r-unix koi8-unix cp878-unix) Priority order for recognizing coding systems when reading files: 1. cyrillic-koi8 (alias: koi8-r koi8 cp878) 2. utf-8 (alias: mule-utf-8) 3. iso-2022-7bit ... ...and a triple R appears in the buffer's status line (
RRR
in positions 2-4)
C-x RET r koi8-r
(... yes
) C-x RET r
is a shortcut for M-x revert-buffer-with-coding-system
), C-x RET t koi8
C-x RET k koi8
M-x normal-erase-is-backspace
toggles between C-h
erases backwards instead of invoking help M-x help
to invoke help...)
/etc/selinux/config
and set SELINUX=disabled
grep -E "A|B"
egrep "A|B"
tab
in a command line, usually does not
produce a tab. Also grep "\t"
looks for both `\'
and `t'
but independently of each other...
Way 1
grep -P '\t' ... (or: grep -P "\t" ... )Way 2 Putting the tab on the command line:
tab
key ,
"
,
left arrow
(or Cntr-a
) ,
grep "
,
Cntr-e
), and add a file (files) to be checked. ... $ grep " " filename
"write ( a_variable , * )"
: grep -i "write[ ]*[(][ ]*[[:alpha:]][[:alnum:]]*[ ]*[,][ ]*[*][ ]*[)]" */*F \ |grep -vi "write[ ]*([ ]*lun" \ |grep -vi "write[ ]*([ ]*logunit" \ |grep -vi "write[ ]*([ ]*ll" \ | grep -iv cerr
`*'
after a searched character means any number of such characters (zero included). E.g. `[ ]*'
means any number of spaces.
"write ( a_variable , 7000)..."
or "write ( a_variable , '(...)')..."
:
grep -i "write[ ]*[(][ ]*[[:alpha:]][[:alnum:]]*[ ]*[,]" */*F \ |grep -iv "write[ ]*[(][ ]*[[:alpha:]][[:alnum:]]*[ ]*[,][ ]*[*][ ]*[)]" \ |grep -vi "write[ ]*([ ]*lun" \ |grep -vi "write[ ]*([ ]*logunit" \ |grep -vi "write[ ]*([ ]*ll" \ | grep -iv cerr \ | grep -iv cline \ | grep -iv ldbg \ | grep -iv NEWBCD \ | grep -iv IENVRN
mencoder -forceidx -of lavf -oac copy -ovc copy -o output.flv clip1.flv \ clip2.flv clip3.flv
mencoder file1.mp4 file2.mp4 -ovc copy -oac copy -of lavf format=mp4 -o output.mp4Here -of lavf format=mp4 seems to define the mp4 container for the output file which is by default (w/o this option) avi. An alternative way to specify the same (?) is -of lavf -lavfopts format=mp4 . This did not work for me:
mencoder
hanged always writing an A-V: nan string, like e.g. C-z
and then abort via kill -9
).
-oac copy
to -oac faac
,
thus forcing mencoder
to recode the audio stream (-oac mp3lame
also worked
with a bit worse length of the audio stream).
mencoder 1.mp4 2.mp4 -o all.mp4 -of lavf -lavfopts format=mp4 -oac faac -ovc copy
sudo dd if=Fedora-KDE-Live-x86_64-25-1.3.iso of=/dev/sdb bs=1M conv=sync
) sums611.zip
md5sum.exe
sha1sum.exe
sha224sum.exe
sha256sum.exe
sha384sum.exe
sha512sum.exe
sha256sum.exe
inspired by
this instructionman sha256sum
: cd c:\data\...\Fedora.. c:\data\Distributives\Fedora-16-x86_64-DVD>sha256sum.exe -c Fedora-16-x86_64-CHECKSUM Fedora-16-x86_64-DVD.isoor just
c:\data\Distributives\Fedora-16-x86_64-DVD>sha256sum.exe -c Fedora-16-x86_64-CHECKSUM
sudo gedit /etc/default/rcS
yes
to no
WindowsTimeFixUTC.reg
with the following contents and then double click on it to merge the contents with the registry: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] "RealTimeIsUniversal"=dword:00000001
Windows.old
folder @ dom5 has the size of 21.4 GiB
vlc
ffmpeg
ffmpeg -i <mp3url > -c:a copy an_output_file.mp3
ffmpeg -i http://streaming.radio.co/s5c5da6a36/listen
-c:a copy BS.mp3
ffmpeg
(tested for Fedora 27 linux) ffmpeg -f alsa -i pulse -c:a libmp3lame -b:a 128k an_output_file.mp3
pavucontrol
. The "Recording" tab is blank.
pavucontrol
while the SRP still working (either in the last second(s) of the main recording, or in a new SRP run with a dummy output file).
ifup Stream
ifdown Stream
ifconfig
if0u
if0d
if0s
nslookup 37.190.94.77
as dynamic37-190-94-77.pppoe.spdop.ru -- may change with time? nslookup ppp109-252-174-49.pppoe.spdop.ru
as 109.252.174.49
nslookup ppp94-29-57-57.pppoe.spdop.ru
as 94.29.57.57
nslookup ppp91-78-100-217.pppoe.mtu-net.ru
as 91.78.100.217
nslookup ppp91-76-52-48.pppoe.mtu-net.ru
as 91.76.52.48
nslookup ppp91-76-52-50.pppoe.mtu-net.ru
as 91.76.52.50
nslookup ppp79-139-169-2.pppoe.spdop.ru
as 79.139.169.2
Manufacturer: | Huawei Technologies Co., Ltd; |
ProductClass: | HG8245T; |
SerialNumber: | 48575443CC8DD620; |
IP: | 192.168.100.1; |
HWVer: | 211EC463; |
SWVer: | V2R006C00S100; |
SWVer: | V2R006C00S120; |
IP | IP address | 192.168.100.2 |
submet mask | 255.255.255.0 | |
main gateway | 192.168.100.1 | |
DNS | preferred | 192.168.100.1 |
alternative | 8.8.8.8 |
IP | IP address | 192.168.100.3 |
submet mask | 255.255.255.0 | |
main gateway | 192.168.100.1 | |
DNS | preferred | 192.168.100.1 |
alternative | - |
IP | get automatically |
DNS | get automatically |
Rostelekom | MTS | |
InterRussia | 8 55 < region code > < local number > | 8 23 < region code > < local number > |
International | 8 10 < country code > < region code > < local number > | 8 28 < country code > < region code > < local number > |
ps2pdf
does not respect the a4 paper size of the input ps file
then the following option may help (found in man gs
): ps2pdf -sPAPERSIZE=a4 a.ps
pulseaudio --start;pulseaudio --check;echo $?; xmms ...
)
after
rm -rf /tmp/pulse-2L9K88eMlGn7
ls /tmp/ |grep pulse-
may help too?
rm -rf /tmp/pulse-* pulseaudio --start; pulseaudio --cleanup-shm;pulseaudio --check; echo $?The
--cleanup-shm
was new (shm stands for shared memory ).
txt
(or any other name) with emacs
emacs
window
Select coding system (default mule-utf-8):
file txt
txt: UTF-8 Unicode text, with very long lines
recode UTF-8..KOI8-R txt
file txt
txt: ISO-8859 text, with very long lines
txt
with emacsrus
or pico
or ...
ruskbd-yawerty-asLinux
directory README_RuYLinux.txt
for details
ruylinux/setup.exe
to install/uninstall the keyboard layout
tar --help
or tar --usage
Tar : tar cBf filename dirname
-- archive directory into a file
tar cBf - dirname > filename
-- the same effect
h
(tar cBfh ...
) : dump not symb links, but files they are pointing to ( default: symb links in archive)
tar xvf filename
-- extract the contents from an archive
<a name="myAnchor"> some displayed text </a>or just
<a name="myAnchor"></a>
<a href="#myAnchor"> a link text </a>
* Set ALLOWTOPICVIEW = Main.AlexanderFedotovThis has been checked:
Visible <!--- and hidden ---> text
Example spanning multiple lines:
<!-- * Useful to hide settings: * Set EXAMPLE = This is hidden -->
![]() |
second row of the table |
row 3 of the table bla bla |
row 4 of the table |
row 5 which is very long very long very long very long very long very long very long very long very long very long very long very long very long very long very long very long very long very long |
Here is a way to make figure captions: |
Fig.15. Then a general wording follows follows follows follows follows follows follows follows follows , FOLLOWED FINALLY by a UL list
|
------------------------------ * a picture ([[%ATTACHURL%/test.gif ][ full size ]]) with a caption (this line is under bullet): <br /> <center> | <img src="%ATTACHURLPATH%/test.gif" alt="tmpB_root.gif" width='500' /> | |second row of the table | | row 3 of the table <br> bla <br> bla | | row 4 of the table| | row 5 which is very long very long very long <br> \ very long very long very long very long very <br> \ long very long very long very long very long <br> \ very long very long very long very long very <br> \ long very long | | Here is a way to make figure captions: | |Fig.15. Then a general wording follows follows follows follows follows follows follows<br> \ follows follows , FOLLOWED FINALLY by a UL list<br> \ <ul><li>item 1 <br> item 1 continued \ <li>item 2 -- the second one \ </ul> | </center> This line is under the initial bullet, but after the table. And _this line_ is a new paragraph. ------------------------------
<div style="line-height: 100%;"> text </div>The
`100%'
is an example, generally it is `< your_value >< your_unit >'
where the unit may be one of cm, px, pt, %
.
/* This is some text! second linewith:
/* This is some text! second line
<div style="line-height: 100%;"> %SYNTAX{"cpp"}% /* This is some text! second line %ENDSYNTAX% </div>
div
)
are absent in the first version code.
</ul>
* level 1 * level 2 </ul> back to level 1 bulletis interpreted as follows (in red italic -- just to emphasise):
</ol>
<!-- ... -->
)
`*'
( three blanks should be there in total)
<!-- ====================== SETTINGS FOR THIS PAGE: (active are only those with 3 spaces before `*') ====================== HIGHLIGT (VERBATIM and SYNTAX) * Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/Main/AlexanderFedotov/My_Highlight.css HIDE LEFT BAR * Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/TWiki/PatternSkinCssCookbookNoLeftBar/hideleftbar.css HIGHLIGT + HIDE LEFT BAR * Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/Main/AlexanderFedotov/My_Highlight_Hideleftbar.css LATEX VIA MATHMODEPLUGIN * Set DISABLEDPLUGINS = LatexModePlugin * Set LATEXFONTSIZE = footnotesize DEFINE A VARIABLE (reference with %My40Blanks%) * Set My40Blanks = AN ALTERNATIVE (this works only if defined in More Topic Actions -> Edit topic preference settings ) * Set My40Blanks = -->
* Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/Main/AlexanderFedotov/My_Highlight.cssMy version of a highlighting + HidingLeftBar stylesheet:
* Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/Main/AlexanderFedotov/My_Highlight_Hideleftbar.cssFor SYNTAX, one can dump the list of supported syntax names with
enscript --help-pretty-print | grep Name
*
!):
* Set USERSTYLEURL = %ATTACHURL%/hideleftbar.csswhere the
hideleftbar.css
file is ib the attachment:
The file contains:
#patternOuter { margin-left:0; } #patternLeftBar { display:none; } /* for the content left margin use a bit smaller margin */ #patternMainContents { padding-left:2em; /*S6*/ }So one can either attach a copy of this file to a page and use the above
Set USERSTYLEURL = ...
instruction,
*
!):
* Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/TWiki/PatternSkinCssCookbookNoLeftBar/hideleftbar.cssMy version of a highlighting + HidingLeftBar stylesheet:
* Set USERSTYLEURL = https://twiki.cern.ch/twiki/pub/Main/AlexanderFedotov/My_Highlight_Hideleftbar.css
<!-- * Set myTocIndent = * Set myTocImg = <img src="https://twiki.cern.ch/twiki/pub/TWiki/PatternSkin/bullet-toc.gif" vspace="3" /> * Set myToc1 = <br>%myTocIndent%%myTocImg% * Set myToc2 = <br>%myTocIndent%%myTocIndent%%myTocImg% * Set myToc3 = <br>%myTocIndent%%myTocIndent%%myTocIndent%%myTocImg% -->can be exploited to produce a pseudo TOC :
%myToc1% link 1 %myToc1% link 2 %myToc2% link 2.1 %myToc3% link 2.2.1 %myToc3% link 2.2.2 %myToc2% link 2.3
<div id="whatever-you-want-to-call-it"></div>Reference to the tag:
<a href="#whatever-you-want-to-call-it">Link Text Here</a>Example::
*Links to Threads*: * <a href="#thread1"> From cms.portal </a> * <a href="#thread2"> To cmscaf-announce </a> %TOC{ title = "Links to e-mails:" }% ---++ <div id="thread1"></div> From cms.portal . . . . . ---++ <div id="thread2"></div>To cmscaf-announce
You write: | You get: |
&‍nbsp; |   |
__&‍nbsp;__ |   |
=&‍nbsp;= |   |
another use case of breaking TWIKI code == : | |
=‍=A== | =A= |
=‍==A=== | ==A== |
to be compared with | |
==A== | A |
===A=== | =A= |
also breaking brackets: | |
x<‍something>y | x<something>y |
to be compared with | |
x<something>y | x |
mkdir twiki.cern.ch touch twiki.cern.ch/robots.txt chmod -w twiki.cern.ch/robots.txt wget -r -l 1 -k -I /twiki/pub/Main/AVFedotovHowToDom3/,twiki/pub/TWiki \ https://twiki.cern.ch/twiki/bin/view/Main/AVFedotovHowToDom3
ssh -X paul evince /afs/path/to/document.pdf
jpg
files in the current directory
to the "size = 1272 pixels".
convert
command. It is obtained automatically
by the convert
by keeping the aspect ratio (4/3) of the original files.
for i in *.jpg do convert -size 1272x1272 $i -resize 1272x1272 +profile "*" $i.1272x954.jpg rename jpg.1272x954 1272x954 $i.1272x954.jpg doneAnd the same but:
jhead ...
ss=1272x1272; suff=1272x954 # ss=800x800; suff=800x600 # ss=600x600; suff=600x450 dir=dir$suff [ -e $dir ] || mkdir $dir for i in *.jpg do new=$dir/$i.$suff.jpg convert -size $ss $i -resize $ss +profile "*" $new jhead -te $i $new rename jpg.$suff $suff $new done
from.jpg
to file to.jpg
via: jhead -te
from.jpg to.jpg
jhead
is from the jhead-3.00-7.fc27.x86_64
package)
exiftool -TagsFromFile
from.jpg to.jpg
exiftool
is from the perl-Image-ExifTool-11.11-1.fc27.noarch
package)
# swapoff -v /dev/VolGroup00/LogVol01
# lvm lvresize /dev/VolGroup00/LogVol01 -L +256M
# mkswap /dev/VolGroup00/LogVol01
# swapon -va
# cat /proc/swaps
# free -b
rsync -avzh --exclude .OldFiles --progress naf-hone11:'.Old*' bu 2>&1 |tee -a rsync.out
.Old*
objects in at remote machine naf-hone11
but for the directory .OldFiles
, to local subdirectory bu
rsync -avzh --exclude .OldFiles --progress naf-hone11: username
username
rsync -avzh --progress naf-hone11:/nfs/dust/h1/group/username .
/nfs/dust/h1/group/username
to local subdirectory username
rsync -avzh --progress lxplus: username
username
rsync -avzh --progress lxplus:/afs/cern.ch/work/u/username/ work_username
/afs/cern.ch/work/u/username/
to local subdirectory work_username
-f
options : rsync -av -f"+ */" -f"- *" /home/pkumar root@192.168.1.29:/opt/
/home/pkumar
to remote /opt/pkumar
stat -fc %s .
sudo command
command
as root (this is just one of the numerous options of the sudo
usage)
user1
to run the sudo
, e.g. the following line can be inserted into the file /etc/sudoers
user1 ALL=(ALL) ALLwhich would allow the user user1 to run any commands anywhere
sudo
requires that the access rights of the file /etc/sudoers
are 440
(i.e. -r--r-----
)
sudo
, the authenticated user is prompted for his/her password. During next 5 minutes (a default setting) the password is not required.
bindkey "\e[3~" delete-char
.zshrc
export SAVEHIST=$HISTSIZE
to the ~/.zprofile
file: export HISTSIZE=2000 export HISTFILE=$HOME/.history.${HOST%%.cern.ch} export SAVEHIST=$HISTSIZEfollowing an advice from Zsh/HOWTO -- Configuration/History