Skip to content

Instantly share code, notes, and snippets.

View Befzz's full-sized avatar

Befzz Befzz

  • Russia, Saint-Petersburg
View GitHub Profile
@Befzz
Befzz / setup_display_timeout.cmd
Last active December 29, 2020 12:48
Turn off display shortcut. Windows cmd.
::::::::::::::::::::::::::::::::::::::
:: Setup ::
:: 1. [Download ZIP] ::
:: 2. Unpack ::
:: 3. Run setup_display_timeout.cmd ::
:: 4. Use "Display Sleep!" link. ::
::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::
:: What script do ::
@Befzz
Befzz / emacs-fwdpar.gif
Last active August 5, 2016 18:53
Emacs forward paragraph with hide-show support
emacs-fwdpar.gif
@Befzz
Befzz / save_2mics.cmd
Last active January 29, 2016 11:05
FFMPEG merge two microphones to file (windows)
@ECHO OFF
cd "%~dp0"
chcp 65001 > nul
SETLOCAL EnableDelayedExpansion
REM ==============================================
REM ================SET FOLDER HERE===============
SET FFMPEG_FOLDER=D:\Down_Chrome\_part2\ffmpeg-20141009-git-f6777ce-win32-static\ffmpeg-20141009-git-f6777ce-win32-static\bin\bin
REM ================END OF OPTIONS================
/*
Send 1 byte
to IP:[PORT_START - 65535]
over UDP
using <SOCKETS_COUNT> sockets (!!!)
<PORT_STEP> packets each <DELAY> milliseconds
starting from port <PORT_START>
*/
var PORT_STEP = 300;
@Befzz
Befzz / task_setup.cmd
Last active August 29, 2015 14:23
Window 7+ SCHTASKS example. BATCH
@ECHO OFF
REM Отключаем эхо
REM включаем поддержку !имя! чтобы получать не старые значения переменных
Setlocal EnableDelayedExpansion
REM название задачи
SET task_name=my_own_task
REM проверяем первый аргумент
@Befzz
Befzz / upnp.js
Last active August 29, 2015 14:11 — forked from acacio/upnp.js
/* node UPNP port forwarding PoC
This is a simple way to forward ports on NAT routers with UPNP.
This is a not-for-production hack that I found useful when testing apps
on my home network behind ny NAT router.
-satori / edited by smolleyes for freebox v6 / edited by Befzz
================================================================================