Skip to content

Instantly share code, notes, and snippets.

@Shoozza
Shoozza / Cmder.bat
Last active May 10, 2017 10:31
Cmder.bat argument execution support
@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%
@Shoozza
Shoozza / rust_scope.rs
Last active August 29, 2015 14:11
rust scope
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 April 20, 2022 02:45
Make Cmder work with ssh-agent
@ECHO OFF
SETLOCAL
GOTO:MAIN
REM
REM Info functions start
REM
REM Display version and copyright information
:VERSION