Skip to content

Instantly share code, notes, and snippets.

View remlapmot's full-sized avatar
💭
I am currently on annual leave - I may be slow to respond.

Tom Palmer remlapmot

💭
I am currently on annual leave - I may be slow to respond.
View GitHub Profile
@remlapmot
remlapmot / capslock-to-shift.ahk
Last active October 8, 2019 08:04
AutoHotkey script to remap Caps Lock to Shift
Capslock::Shift
@remlapmot
remlapmot / autohotkey-commands.ahk
Last active October 9, 2019 08:28
Collection of useful AutoHotkey commands
; Uncomment to monitor which key has been pressed (when running script but not compiled script)
; #InstallKeybdHook
; Press ` (accent grave/backtick) to move up a folder in Explorer in Windows 10 (on an ISO UK keyboard)
#IfWinActive ahk_class CabinetWClass
SC029::
SendInput, {LAlt down}
sleep, 1
SendInput, {Up}
sleep, 1
Capslock::`
+Capslock::~
Capslock::Shift
+Capslock::Send, % Chr(163)
@remlapmot
remlapmot / settings.json
Created January 19, 2020 13:39
VS Code User Settings
{
"workbench.sideBar.location": "right",
"workbench.iconTheme": "vscode-icons",
"editor.fontFamily": "Fira Code Light",
"editor.fontLigatures": true,
"latex-workshop.view.pdf.viewer": "tab",
"editor.minimap.enabled": false,
"editor.wordWrap": "on",
"breadcrumbs.enabled": true,
"editor.fontSize": 11,
@remlapmot
remlapmot / wsl.xlaunch
Created March 1, 2020 11:09
XLaunch config file for X11 forwarding from Windows Subsystem for Linux. Run with VcXsrv for best results.
<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="MultiWindow" ClientMode="NoClient" LocalClient="False" Display="-1" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="-ac" Wgl="True" DisableAC="False" XDMCPTerminate="False"/>
@remlapmot
remlapmot / sizer.xml
Last active March 23, 2020 18:22
Sizer 4.0 http://www.brianapps.net/sizer4 Hot Keys for a 4K monitor with Windows Taskbar on the left of the screen. File location %appdata%\Sizer4\sizer.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sizer>
<options showIconInTray="1" startInSafeMode="0" adjustOppositeEdge="0" tooltipOption="1" hotKey="90" hotKeyModifiers="10" hotKeyExtended="0" useDwmExtendedFrames="1"/>
<menu>
<resize description="1584 x 2160 Right" hotKey="39" hotKeyModifiers="9" hotKeyExtended="1" width="1584" height="2160" relocate="6" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="2160 x 2160 Left" hotKey="37" hotKeyModifiers="9" hotKeyExtended="1" width="2160" height="2160" relocate="4" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="TwoThirdsLeft" hotKey="37" hotKeyModifiers="3" hotKeyExtended="1" width="2498" height="2160" relocate="4" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="TwoThirdsRight" hotKey="39" hotKeyModifiers="3" hotKeyExtended="1" width="2498" height="2160" relocate="6" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize de
@remlapmot
remlapmot / install-pdfarranger.sh
Last active March 25, 2020 17:29
Install pdfarranger on Ubuntu
sudo add-apt-repository ppa:linuxuprising/apps
sudo apt update
sudo apt install pdfarranger
@remlapmot
remlapmot / install-choco.ps1
Last active March 30, 2020 16:17
Powershell script to install chocolatey
Set-ExecutionPolicy Bypass -Scope Process -Force; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
@remlapmot
remlapmot / .wslconfig
Last active March 31, 2020 22:21
WSL 2 configuration file - to limit the amount of RAM the Vmmem process uses. File location: %userprofile%
[wsl2]
# kernel=<path> # An absolute Windows path to a custom Linux kernel.
memory=4GB # How much memory to assign to the WSL2 VM.
# processors=<number> # How many processors to assign to the WSL2 VM.
swap=0GB # How much swap space to add to the WSL2 VM. 0 for no swap file.
# swapFile=<path> # An absolute Windows path to the swap vhd.
# localhostForwarding=<bool> # Boolean specifying if ports bound to wildcard or localhost in the WSL2 VM should be connectable from the host via localhost:port (default true).
# <path> entries must be absolute Windows paths with escaped backslashes, for example C:\\Users\\Ben\\kernel
# <size> entries must be size followed by unit, for example 8GB or 512MB