Most useful:
]c – next difference
[c – prev difference
dp – copy left to right
do – copy right to left
#!/bin/bash | |
SRC_FILE_NAME="$1" | |
if [[ "$SRC_FILE_NAME" = "" ]] ; then | |
echo "Usage: $0 FILE" | |
exit | |
fi | |
if [[ ! -f "$SRC_FILE_NAME" ]] ; then |
#!/usr/local/bin/run_ruby_script_in_rvm | |
require "json" | |
require "os" | |
DOCTL_FILE_NAME = "doctl" | |
#==================================================================== | |
def main | |
if OS.windows? then |
screenshot-format=png | |
# Windows | |
screenshot-template=Z:\Screenshots\%f_snapshot_%wH.%wM.%wS_[%tY.%tm.%td_%tH.%tM.%tS] | |
# Linux | |
#screenshot-template=~/ScreenShots/%f_snapshot_%wH.%wM.%wS_[%tY.%tm.%td_%tH.%tM.%tS] | |
volume=0 | |
#no-audio |
esc quit | |
enter cycle fullscreen | |
alt+enter cycle fullscreen | |
kp_enter cycle fullscreen | |
Z screenshot # take a screenshot | |
z screenshot video # ...without subtitles | |
f12 screenshot video | |
ctrl+s screenshot video # override "with subtitles and OSD, and scaled" | |
ctrl+S screenshot video # override "with subtitles and OSD, and scaled" |
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\WinLogon\.Default\.current] | |
@="" | |
[HKEY_CURRENT_USER\AppEvents\Schemes\Apps\WinLogon\SystemAsterisk\.current] | |
@="" | |
[HKEY_USERS\S-1-5-18\AppEvents\Schemes\Apps\WinLogon\.Default\.current] | |
@="" |
#include "windows.bi" | |
#include "win\shellapi.bi" | |
'==================================================================== | |
Private Function MyCommand() As String | |
Dim lpCmdLine As LPSTR | |
Dim CmdLine As String | |
Dim RC As Integer | |
lpCmdLine = GetCommandLine() |
#include <AJP System.H> | |
//=================================================================== | |
int WINAPI WinMain(HINSTANCE hInstance, | |
HINSTANCE hPrevInstance, | |
LPSTR lpCmdLine, | |
int nCmdShow) | |
{ | |
char szDirectory[513] = "\0"; | |
GetCurrentDirectory(512, szDirectory); |
#include "windows.bi" | |
#include "win\shellapi.bi" | |
'==================================================================== | |
Declare Function Main() As Integer | |
'==================================================================== | |
Main | |
'==================================================================== |
' https://stackoverflow.com/questions/34514580/get-document-properties-using-vbs | |
' https://stackoverflow.com/questions/5651890/using-vba-to-get-extended-file-attributes | |
Option Explicit | |
Dim FSO | |
Dim Shell | |
Call Main() | |
'==================================================================== |