Skip to content

Instantly share code, notes, and snippets.

@Shoozza
Shoozza / install_luarocks_windows_10.md
Last active Aug 18, 2022
Installing Luarocks on Windows with MSYS2 and gcc
View install_luarocks_windows_10.md

Installing Luarocks on Windows

Getting Luarocks to work on Windows 8.1/10 with MSYS2 gcc (mingw64)

1. MSYS2 installation

  1. Visit https://www.msys2.org/
  2. Click on the link next to "Download the installer"
  3. Run the installer
  4. Add "C:\msys64\usr\bin" to path
View amulet_editor_hotkeys.js
document.onkeypress=function(e){
var KEY_R = 114;
var KEY_X = 120;
var KEY_Y = 121;
var KEY_C = 99;
var KEY_P = 112;
var KEY_S = 115;
var KEY_H = 104;
var e = e || window.event;
@Shoozza
Shoozza / userContent.css
Last active Apr 28, 2019
Firefox Readermode dark sidebar theme + hidden + show on hover + yellow selection + yellow link color
View userContent.css
/*
how to install:
- visit about:support
- open profile folder
- create/edit chrome\userContent.css file
*/
@-moz-document url-prefix("about:reader") {
/* fix toolbar */
.toolbar {
View keybase.md

Keybase proof

I hereby claim:

  • I am shoozza on github.
  • I am shoozza (https://keybase.io/shoozza) on keybase.
  • I have a public key ASAb4DQgMn-DlmoR3g4nnwy7W5GKyjFn02roJRYK_D8A4Ao

To claim this, I am signing this object:

@Shoozza
Shoozza / Cmder.bat
Last active May 10, 2017
Cmder.bat argument execution support
View Cmder.bat
@ECHO OFF
REM Example: Cmder.bat vim hello_world.c
REM will run vim hello_world.c inside Cmder
REM Note Add following line at the end of init.bat (without REM)
REM @if not "%*" == "" %*
SET "CMDER_ROOT=%~dp0"
IF "%ConEmuDir%" == "" SET "ConEmuDir=%CMDER_ROOT%\vendor\conemu-maximus5"
START "" "%ConEmuDir%\ConEmu.exe" /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\ConEmu.xml" /cmd cmd /k ""%ConEmuDir%\..\init.bat" %*" -new_console:d:%USERPROFILE%
View rust_scope.rs
fn main() {
struct Magic<T> { val: T }
let i = "string";
println!("i = {}", i);
let Magic { val: mut i } = Magic { val: 5u };
println!("i = {}", i);
i = 7;
@Shoozza
Shoozza / agent.cmd
Last active Apr 20, 2022
Make Cmder work with ssh-agent
View agent.cmd
@ECHO OFF
SETLOCAL
GOTO:MAIN
REM
REM Info functions start
REM
REM Display version and copyright information
:VERSION