Skip to content

Instantly share code, notes, and snippets.

@monaboiste
monaboiste / keybindings.json
Last active February 26, 2023 10:40
VSCode Settings Backup
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+d",
"command": "editor.action.duplicateSelection"
},
{
"key": "ctrl+k ctrl+c",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
@monaboiste
monaboiste / Anaconda.sublime-settings
Last active April 16, 2021 20:00
Sublime Text Settings Backup
{
"enable_signatures_tooltip": true,
"display_signatures": true,
"enable_docstrings_tooltip": true,
"auto_formatting": true,
"python_interpreter": "S:\\Programs\\Scoop\\apps\\python\\current\\python.exe",
"anaconda_linter_delay": 1.0,
"anaconda_linter_mark_style": "none",
"anaconda_linter_underlines": false,
"pep8_ignore":
@monaboiste
monaboiste / MSSettings-intellij.zip
Last active February 26, 2023 10:49
Intellij Settings Backup
@monaboiste
monaboiste / Update-DuckDNS.ps1
Created October 5, 2020 15:43
Updates the IP address of your Duck DNS domain(s). Intended to be run as a scheduled task.
<#
.SYNOPSIS
Updates the IP address of your Duck DNS domain(s).
.DESCRIPTION
Updates the IP address of your Duck DNS domain(s). Intended to be run as a
scheduled task.
.PARAMETER Domains
A comma-separated list of your Duck DNS domains to update.
.PARAMETER Token
Your Duck DNS token.
@monaboiste
monaboiste / Activate-PiholeDNS.ps1
Last active May 6, 2021 10:39
Script starts local DNS server (Pi-Hole in Docker).
#Requires -RunAsAdministrator
<#
.SYNOPSIS
Activates Pihole DNS server. Must be run with elevated permissions.
Docker deamon must running.
.DESCRIPTION
Activates Pihole DNS server. Script detects which adapter is up and
changes its DNS settings. Must be run with elevated permissions.
Docker deamon must running.
@monaboiste
monaboiste / AddRMBContextMenu.reg
Last active October 5, 2020 14:39
Add right-click context menu "Open terminal here"
Windows Registry Editor Version 5.00
;Binary data is just UTF16 (LE) split every 2 bytes with a comma
;Conversion done with https://onlineutf8tools.com/convert-utf8-to-utf16?hex=true&little-endian=true&space=false&chain=split-string%253Fsplit-by-length%253Dtrue%2526separator%253D%252C
;User action
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal]
@="Open Terminal here"
;"Icon"="Path\to\icon.ico"
"Icon"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,5c,00,49,00,63,00,6f,00,6e,00,73,00,5c,00,74,00,65,00,72,00,6d,00,69,00,6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00
@monaboiste
monaboiste / Connect-SASServer.ps1
Last active October 5, 2020 15:44
Remote connection to SAS server
<#
.SYNOPSIS
Set up proxy and ssh connection to UZ server.
.DESCRIPTION
Set up proxy and ssh connection to UZ server. There one can
access SAS tools for data analysis.
.PARAMETER User
User name provided by academic teacher.
.INPUTS
None. You cannot pipe objects to this script.
@monaboiste
monaboiste / Track-Parcels.ps1
Last active October 5, 2020 15:45
InPost ParcelTracking
<#
.SYNOPSIS
Generates .TXT/CSV file with tracking status for given parcels.
.DESCRIPTION
For given .CSV file, generate a .TXT/CSV file with tracking status.
Script only supports API SHIPX (Paczkomaty PL).
Input .CSV file HAS TO be in format:
ID (Titles)
Ids enteret in columna, e.g.
| Ids |
@monaboiste
monaboiste / MSSettings-visualstudio.vssettings
Last active February 11, 2021 20:03
Visual Studio Settings Backup
<UserSettings><ApplicationIdentity version="16.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"><PropertyValue name="ShowMiscFilesProject">false</PropertyValue><PropertyValue name="AutoloadExternalChanges">true</PropertyValue><PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue><PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue><PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue><PropertyValue name="ReuseSavedActiveDocWindow">false</PropertyValue><PropertyValue name="DetectFileChangesOutsideIDE">true</PropertyValue><PropertyValue name="DontShowGlobalUndoChangeLossDialog">true</PropertyValue><PropertyValue name="AllowEditingReadOnlyFiles">true</PropertyValue><PropertyValue name="DocumentDockPreference">0</PropertyValue><PropertyValue name="MiscFilesProjectSavesLastNItems">0</PropertyValue>
@monaboiste
monaboiste / AutoRunScript.bat
Created April 15, 2020 16:57
Old .bat prompt.
@echo off
doskey cdh=cd /d "%HOMEDRIVE%%HOMEPATH%"
rem MSVC and vcvars32 \\ vcvars32.bat, cl.exe
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\
SET PATH=%PATH%;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\Hostx86\x86;
rem MinGW \\ gcc.exe, gdb.exe