Skip to content

Instantly share code, notes, and snippets.

View newton-per-sqm's full-sized avatar
🎯
Focusing

Pascal Muster newton-per-sqm

🎯
Focusing
View GitHub Profile
@newton-per-sqm
newton-per-sqm / MyParadoxTheme.psm1
Created November 27, 2020 09:28
OhMyPosh Paradox Theme with one line space between prompts.
#requires -Version 2 -Modules posh-git
function Write-Theme {
param(
[bool]
$lastCommandFailed,
[string]
$with
)
# LATEXMK RC FILE
# ... for automagically running pythontex with latexmk on windows
#
# TODO:
# - Please rename to .latexmkrc for propper work of this configuration!
# - Look wether you need to set your python environment on PATH
@cus_dep_list = (@cus_dep_list, "pytxcode tex 0 pythontex");
sub pythontex { return system("pythontex \"$_[0]\""); }
# This is to allow the use of sagetex package
# (http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex)
# with latexmk. Sagetex outputs a file with the extension .sage.
# This file is to be processed by sage software (http://sagemath.org)
# to make a file with extension .sout. This file is then read in by
# sagetex during a later run of (pdf)latex.
#
# This can be done by normal custom dependency. However the .sage
# contains unimportant information about line numbers for error
# reporting. It is useful not to rerun sage if this is the only
@newton-per-sqm
newton-per-sqm / (pythontex-macos).latexmkrc
Last active November 23, 2020 21:04
A latexmkrc file for including pythontex into latexmk recipe.
# latexmkrc for including pythontex execution
# please rename to .latexmkrc for propper work
@cus_dep_list = (@cus_dep_list, "pytxcode tex 0 pythontex");
sub pythontex { return system("pythontex \"$_[0]\""); }
@newton-per-sqm
newton-per-sqm / SSH-Config on Windows10.md
Last active February 16, 2021 23:11 — forked from danieldogeanu/MakePowerShellRememberSSHPassphrase.md
How to make Powershell remember the SSH key passphrase.

You should not use the Open SSH client that comes with Git for Windows. Instead, Windows 10 has its own implementation of Open SSH that is integrated with the system. To achieve this:

  1. Generate your SSH identity file:
  • Open a PowerShell Window and type ssh-keygen -t <key-format> -b <bit-length> -C "<key-message>" into it.
  • Choose a key-format of your interest:
    • RSA (secure): 2048, 3072 or 4096 key bits possible, highly secure only with long key lengths.
    • ed25519 (very secure): only 256 key bits possible (-b option unused), but highly secure and high performing.
    • ECDSA (very secure): 256, 384 or 521 key bits possible, highly secure.
    • DSA (weak, maybe disabled): 1024 key bits possible, weak encryption, not recommended.
  • I personally prefer long RSA keys or ed25519 encryption method.