-
fix issues with powershell and conda 24.x
conda install -n base -c defaults conda=25.*
-
Create a new environment:
conda create --name myenv python=3.8
This file contains hidden or 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
--- | |
BasedOnStyle: LLVM | |
AlignAfterOpenBracket: Align | |
AlignConsecutiveMacros: 'true' | |
AlignConsecutiveAssignments: 'true' | |
AlignOperands: 'false' | |
AllowAllArgumentsOnNextLine: 'false' | |
AllowShortBlocksOnASingleLine: 'false' | |
DerivePointerAlignment: 'false' |
This file contains hidden or 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
# simple effects | |
$BOLD = "`e[1m" | |
$UNDERLINED = "`e[4m" | |
# simple colors | |
$RED = "`e[31m" | |
$GREEN = "`e[32m" | |
# RGB colors | |
$METER_BLUE = "`e[38;2;34;98;147m" # 0x22 0x62 0x93 == 34 98 147 |
This file contains hidden or 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
# create new empty env | |
conda create --name myenv | |
# export currently activated env to environment.yml without prefixes etc | |
conda env export --from-history | findstr -v "prefix" > environment.yml | |
# install environment based on such a environment.yml | |
conda env create -f environment.yml | |
# or even better, using Mamba |
This file contains hidden or 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
# see https://matplotlib.org/stable/gallery/subplots_axes_and_figures/mosaic.html#sphx-glr-gallery-subplots-axes-and-figures-mosaic-py | |
DPI = 100 | |
Y_HEIGHT = 800 | |
X_WIDTH = 1000 | |
fig = plt.figure(figsize=(X_WIDTH/DPI, Y_HEIGHT/DPI), dpi=DPI) | |
axDict = fig.subplot_mosaic( | |
[ | |
["a", "b"], |
This file contains hidden or 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
%reload_ext autoreload | |
%autoreload 2 |
This file contains hidden or 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
/** | |
* @author Johannes Rebling ([email protected]) | |
* @brief | |
* @date | |
* | |
* @copyright ASMPT GmbH & Co. KG, SMT R&D 34 - 2024 | |
* | |
*/ | |
#ifndef _XXX_H |
This file contains hidden or 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
serach: /\*(.*?)\*/ | |
replace: //$1 |
This file contains hidden or 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
# pretty output on command line | |
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges | |
# more details | |
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges --shortstat | |
# even more details | |
git log --since='1 month ago' --format='%Cgreen%ci%Creset %s%Creset' --no-merges --stat | |
# output to summary file |
ssh-keygen -t rsa -b 4096 -f $env:USERPROFILE\.ssh\id_rsa -C "[email protected]"
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
OlderNewer