Home - auto-mate/CheatSheetWiki GitHub Wiki
Other | Sysinternals | ||
---|---|---|---|
Maths Notes | Sysinternals |
Icons Making
Java JRE add certificate
Keyboard Shortcuts
My Style Guide
Narrator
PC Directory via Network
Split Files
TinyMCE
Win 10 icons
Max line width 80 characters. (120 at a push) [displays well on A4 Portrait 80 or Landscape 120]
Naming
CONSTANT_DESC
methodName()
ClassName
variableName
Tab use 2 chars (unless forced eg php=4)
Whitespace horiz (before after =, +, -, += etc )
x = y
x += y
if space and helps readability use
abc = 1
abcdef = 2
def = 3
whitespace horiz ( items in brackets, space to left and end )
x = func( a, b )
{ 1 space;
2 spaces;
}
OR
x = func( a, b ) {
2 spaces;
2 spaces;
}
Refactor to keep functions short.
Vertical space one line between functions and logical areas if vital (can it be refactored).
Functions in a seperate reusable library file where at all poss.
Comments - if vital directly above code one line space above
Preffered on the line if room and v short else all at bottom with ref no's e.g.
x = func( a, b ) { //rf 2
2 spaces; //rf 2.1
2 spaces; //rf 2.2
}
/*
Code References:
rf 2
function to make some calculation
rf 2.1
detail about this line/section
rf 2.2
detail about this line/section
*/
chrome.exe --headless --run-all-compositor-stages-before-draw --print-to-pdf="c:\\temp\\filename.pdf" https://address/webpage.htm --virtual-time-budget=10000
Be in the folder with cacerts and export cert from a webpage in chome with default settings then run below
password is "changeit". Sey "yes" to trust cert.
keytool -import -file <PATH_TO_CERT_SAVED_FROM_WEBSITE> -alias <YOUR_CHOICE> -keystore cacerts
- date:>13/01/2018 date:<16/01/2018 name:*.pdf size:<16MB size:>2MB
- type:.pdf
- name:Em* kind:=folder
- name:Da type:.pdf
Keys | Action |
---|---|
Ctrl + X | Cut the selected item |
Ctrl + C | (or Ctrl + Insert) Copy the selected item. |
Ctrl + V | (or Shift + Insert) Paste the selected item. |
Ctrl + Z | Undo an action. |
Windows logo key + V | View Clipboard History (Settings > Sys > Clpbrd,toggle Clpbrd history) |
Ctrl + Right arrow | Move the cursor to the beginning of the next word. |
Ctrl + Left arrow | Move the cursor to the beginning of the previous word. |
Ctrl + Down arrow | Move the cursor to the beginning of the next paragraph. |
Ctrl + Up arrow | Move the cursor to the beginning of the previous paragraph. |
Shift with any arrow key | Expand Select |
Keys | Action |
---|---|
Alt + Tab | Switch between open apps. |
Alt + F4 | Close the active item, or exit the active app. |
Windows logo key + SHIFT + S | Partial Screenshot |
Windows logo key + D | Display and hide the desktop. |
Windows logo key + M | Minimise all Windows |
Windows logo key + Shift + M | Restore minimized windows on the desktop. |
Windows logo key + P | Select Presentation |
Windows logo key + period (.) or semicolon (;) | Open emoji panel. |
Windows logo key + comma (,) | Temporarily peek at the desktop. |
Windows logo key + (+) | Magnifier. |
Windows logo key + number | Open the desktop and start the app pinned to the taskbar in the position indicated by the number. If the app is already running, switch to that app. |
Ctrl + Alt + Tab | Use the arrow keys to switch between all open apps (Sticky). |
Keys | Action |
---|---|
Windows logo key + L | Lock your PC. |
Ctrl + Shift + Esc | Open Task Manager |
Windows logo key + I | Open Settings |
Windows logo key + R | Run Box |
Windows logo key + Pause | Display the System Properties dialog box. |
Keys | Action |
---|---|
Alt + Enter | Display properties for the selected item. |
Windows logo key + E | Open Explorer |
Ctrl + mouse scroll wheel | Change the size and appearance of file and folder icons. |
Num Lock + asterisk (*) | Display all subfolders under the selected folder. |
Num Lock + plus (+) | Display the contents of the selected folder. |
Num Lock + minus (-) | Collapse the selected folder. |
Alt + P | Display the preview panel. |
If you can bear it......
Works a bit in word and Notepad.
Keys | Action |
---|---|
Control | Silence the thing (only for a moment!) |
CapsLock/Insert + R | Read from cursor |
CapsLock/Insert + W | Read window |
Windows logo key + Control + Enter | Open/Close |
\\<PC_NAME>\C$\<FOLDER_PATH>
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script>tinymce.init({selector:'textarea'});</script>
</head>
<body>
<textarea>Next, use our Get Started docs to setup Tiny!</textarea>
</body>
</html>
Win10:
%systemroot%\system32\imageres.dll
%systemroot%\system32\shell32.dll
%systemroot%\system32\pifmgr.dll
%systemroot%\explorer.exe
%systemroot%\system32\accessibilitycpl.dll
%systemroot%\system32\ddores.dll
%systemroot%\system32\moricons.dll
%systemroot%\system32\mmcndmgr.dll
%systemroot%\system32\netcenter.dll
%systemroot%system32netshell.dll
%systemroot%\system32\networkexplorer.dll
%systemroot%\system32\pnidui.dll
%systemroot%\system32\sensorscpl.dll
%systemroot%\system32\setupapi.dll
%systemroot%\system32\wmploc.dll
%systemroot%\system32\wpdshext.dll
%systemroot%\system32\compstui.dll
%systemroot%\system32\ieframe.dll
%systemroot%\system32\dmdskres.dll
%systemroot%\system32\dsuiext.dll
%systemroot%\system32\mstscax.dll
%systemroot%\system32\wiashext.dll
%systemroot%\system32\comres.dll
%systemroot%\system32\mstsc.exe
Use git-bash as below to split file tosplit.txt to tosplitxx.txt in chunks of 1kb/10240 bytes. -d makes xx numeric standard is aa,ab etc
$ split --additional-suffix .txt -d -C 10240 C:/temp/tosplit.txt c:/temp/del/tosplit
To split into XXXX with a 5 number suffix eg XXXX00001 etc in 1MB chunks (also use G or K) NB can use -l for lines instead of -b (bytes)
$ split -a 5 -d -b 1M c:/temp/C/tmp.txt c:/temp/C/XXXX
In Visual Studio add Icon File Remove all and Add 16/32/48/256 24bit sizes. Edit as required and copy to new name else it will use cache. When Happy save with name you want. Try "ie4uinit.exe -show" to clear cache.