Skip to content

Instantly share code, notes, and snippets.

View digitalfun's full-sized avatar

Florian Schmid @github digitalfun

  • Switzerland
View GitHub Profile
@digitalfun
digitalfun / [Taskfile-bat] run-init.bat (copy)
Created August 31, 2017 08:21
Taskfile-bat script to initialize Taskfile-bat in a new project.
@COPY "%~dp0Taskfile.template.bat" "Taskfile.bat"
@ECHO Taskfile initialized.
@ECHO Usage: Taskfile.bat ^<task^> ^<args^>
@digitalfun
digitalfun / [Taskfile-bat] Taskfile.template.bat
Last active September 20, 2017 07:12
Taskfile-bat template file
@REM Taskfile.bat
@REM Syntax: Taskfile.bat <task> <params>
@ECHO OFF
REM =======================================================
REM USER SETTINGS
REM =======================================================
REM Standard task to run if none specified by cli param
SET taskDefault=default
@digitalfun
digitalfun / [Taskfile-bat] task-get-wget.bat
Last active December 25, 2016 15:27
Task for Taskfile-bat: Download `wget.exe` using "explorer.exe".
:task-get-wget: Download wget.exe
SET WGET_URL=https://eternallybored.org/misc/wget/current/wget.exe
ECHO.
ECHO Save the file "wget.exe" to a ENVIRONMENT path ...
ECHO.
@PAUSE
explorer.exe "%WGET_URL%"
GOTO :EOF
@digitalfun
digitalfun / [Taskfile-bat] task-edit.bat
Created November 22, 2016 15:11
Taskfile-bat script: Open Taskfile-bat in your favourite editor.
:task-edit: Open Taskfile with your favourite editor
ECHO Edit Taskfile ...
SET NPP_EXE="C:\_digi\_apps\Notepad++\notepad++.exe"
SET USER_SCRIPT_LINENR=28
start "" "%NPP_EXE%" -multiInst -noPlugin -n%USER_SCRIPT_LINENR% -nosession -notabbar %scriptName%
GOTO :EOF
@digitalfun
digitalfun / [Taskfile-bat] task-install.bat
Created November 22, 2016 15:08
Task for Taskfile-bat: install Taskfile-bat template and runner scripts to "bin"-folder.
:task-install
copy ".\bin\*.*" "%USERPROFILE%\bin"
GOTO :EOF
@digitalfun
digitalfun / [MD] Create Git repos on DS.md
Last active March 26, 2017 15:03
Create Git repos on your Diskstation (with GIT server installed).

Create Git repos on your Diskstation (with GIT server installed)


1. [Server] Create repository directory ...

sudo mkdir /path/to/bare/repo.git

@digitalfun
digitalfun / keybase.md
Created November 7, 2016 10:42
Keybase proof

Keybase proof

I hereby claim:

  • I am digitalfun on github.
  • I am dabyte (https://keybase.io/dabyte) on keybase.
  • I have a public key whose fingerprint is 36E7 546E 5AC4 F417 8C71 B688 77E0 EBB6 6664 AD85

To claim this, I am signing this object:

@digitalfun
digitalfun / [BATCH] Start app from relative location (USB stick) | _template.bat
Created November 1, 2016 09:53
Start apps/tools etc on your USB stick from bat-files (using relative paths).
@echo off
echo start ...
set APP_PATH=apps\CustomHotkey
set APP_EXE=CustomHotkeys.exe
cd "%~d0\%APP_PATH%"
start "starting ..." "%~d0\%APP_PATH%\%APP_EXE%"
exit
@digitalfun
digitalfun / [AHK] custom Mouse & Keyboard hotkeys | mouse n keyboard.ahk
Last active October 25, 2016 14:16
DaByte's custom Mouse & Keyboard hotkeys for daily use
/*md
- File: .ahk_class; Type: Autohotkey script
- AHK Version: 1.6.0
- Author: Florian Schmid
- Copyright: florian SCHMID, [email protected]
- Notes:
*/
MYVERSION=1.8.0
@digitalfun
digitalfun / coderhotkeys.ahk
Last active February 26, 2025 07:45
[ahk] Hotkeys for coding
;------------------------------
; #DIRECTIVES
;------------------------------
#SingleInstance ON
#Persistent
;------------------------------
; GLOBAL CONSTS
;------------------------------
MYTITLE := "coder hotkeys"