This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Reproduce connection multiplication on RabbitMQ shutdown | |
rem Use rabbitmqctl, sor REQUIRES | |
rem set PATH=%PATH%;"c:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.3\sbin" | |
echo off | |
del demo-*.log demo-connections-*.log | |
set OUTPUT=demo-connections-%date%.log | |
:: RUN dotnet run | |
dotnet build --nologo -v q %1 >nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# import.awk - convert LibreView.com csv export to Diabetes:M (Android App) import csv | |
BEGIN { | |
FS = "[, ]" | |
print("name:DIABETES_M","version:2.0.0","export:Entries") | |
print("DateTimeFormatted","glucose","carbs","proteins","fats","calories","carb_bolus","correction_bolus","extended_bolus","extended_bolus_duration","basal","basal_is_rate","bolus_insulin_type","basal_insulin_type","weight_entry","weight","category","category_name","carb_ratio_factor","insulin_sensitivity_factor","notes","is_sensor","pressure_sys","pressure_dia","pulse","injection_bolus_site","injection_basal_site","finger_test_site","ketones","google_fit_source","timezone","exercise_index","exercise_comment","exercise_duration","medications","food","us_units","hba1c","cholesterol_total","cholesterol_ldl","cholesterol_hdl","triglycerides","microalbumin_test_type","microalbumin","creatinine_clearance","egfr","cystatin_c","albumin","creatinine","calcium","total_protein","sodium","potassium","bicarbonate","chloride","alp","alt","ast","bilirubin", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set NNN=tiny | |
::vbox createvm --name %NNN% --ostype Windows7 --basefolder T:\vm --register | |
::vbox modifyvm %NNN% --memory 2000 --acpi on --boot1 dvd --nic1 nat | |
::vbox createhd --filename "T:\vm\%NNN%\hdd.vdi" --size 8000 | |
echo %NNN% | |
vbox.bat storagectl %NNN% --name SATA --add sata --controller PIIX3 | |
vbox.bat storageattach %NNN% --storagectl SATA --port 0 --device 1 --type dvddrive | |
vbox.bat storageattach %NNN% --storagectl SATA --port 0 --device 0 --type hdd --medium "C:\vm\usb.vmdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md wc & cd wc | |
svn co https://svnsrv:8443/svn/myrepo/dev --depth empty . | |
:: precise fetch dirs | |
svn up client services contrib setup | |
:: precise fetch files | |
svn up mkver.bat setver.js build.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VDI | |
http://geekswithblogs.net/twickers/archive/2009/12/18/137048.aspx | |
https://technet.microsoft.com/ru-ru/library/cc753610(v=ws.11).aspx | |
http://forum.ru-board.com/topic.cgi?forum=8&topic=48293 | |
https://www.petri.com/enable-remoteapp-windows-xp-sp3 | |
http://www.nntt.org/viewtopic.php?f=87&t=39684 | |
LTSP | |
https://habrahabr.ru/post/277783/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: make ca self signed cert | |
md ca | |
:: root ca | |
openssl genrsa -out ca/%1.key 4096 | |
:: make self-signed ca cert | |
openssl req -new -x509 -days 1826 -subj "/CN=myca" -key ca/%1.key -out ca/%1.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call %* | |
goto:eof | |
:init | |
echo set env: tools=%1 | |
set JDK=C:\Program Files\Android\Android Studio\jre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /F "delims=;" %%i in ('dir /b/s "%~1\%2"') do ffmpeg -i "%%i" -strict -2 "%%~ni.mp4" && move "%%~ni.mp4" "%%i" | |
for /F "delims=;" %%i in ('dir /b/s "%~1"') do ffmpeg -i "%%i" -strict -2 "%%~ni.mp4" && del "%%i" |