Skip to content

Instantly share code, notes, and snippets.

@caot
caot / rsync.sh
Last active April 18, 2024 13:08
$ rsync -avz -P -e ssh rhel-server-7.5 uid@192.168.1.203://home/uid/mnt_VMs_BACKUP/
-P same as --partial --progress
rsync -Rv -P $(gd 3d23ae1b 3dfee952 | grep -E '.js' | egrep -v html) ./webteam-js/
rsync -Rv -P $(gd 9c45cdb0 3dfee952 | grep -E '.js|.css') webteam-js-release-3.4.28-20201116
# remote to local
# rsync -az source to-destination
rsync -avz -P -e ssh uid@host:///home/path ./
@caot
caot / .gitrc
Last active March 23, 2024 19:18
# git config merge.renormalize true ## https://stackoverflow.com/questions/861995/is-it-possible-for-git-merge-to-ignore-line-ending-differences
# git merge -s recursive -Xignore-space-at-eol
# git switch -f master # FIXED error: The following untracked working tree files would be overwritten by checkout
# https://unix.stackexchange.com/questions/314974/how-to-delete-broken-symlinks-in-one-go/314975#314975
# find . -xtype l -delete
# https://askubuntu.com/questions/55325/how-to-use-grep-command-to-find-text-including-subdirectories
# grep -Hrn 'Text to be searched' ../
mingw git
tar -I zstd -xvf archive.tar.zst
zstd -d myfile.zst # creates tar file "myfile"
tar -xf myfile # extract the original file/directory hierarchy
$ cat /usr/bin/install
# How to use
# install rsync
Double-Ended Spark Plug Thread Chaser
* How To Fix Stripped Spark Plug Threads For Free https://youtu.be/yY_fuDRltZE
@caot
caot / workaround-podman-issue19913.sh
Created March 7, 2024 15:33 — forked from rugk/workaround-podman-issue19913.sh
Workaround script for podman rm (--force) does not work anymore ("container state improper"/"invalid argument" when unmounting) and start neither, see https://github.com/containers/podman/issues/19913
#!/bin/bash
#set -x
# Define the list of containers you want to remove
containers=("nextcloud_redis_1" "nextcloud_db_1" "nextcloud_nc_1")
for container in "${containers[@]}"; do
echo "Now handling $container..."
# First attempt to forcefully remove the container
podman rm --force "$container"
1. add USER-ID to the group docker
usermod -aG docker ${USER}
2. find out what groups you belong to
groups $USER
# gpasswd --delete root docker # Removing user root from group docker
docker stop `docker ps | grep {IMAGE NAME} | awk '{print $1}'`
Talend Open Studio - Data integration and data quality crash course[youtube]
TOS_DI-Win32-20180411_1414-V7.0.1\workspace\LOCAL_PROJECT\poms\jobs\process
// shim: Configure the dependencies, exports, and custom initialization
// for older, traditional "browser globals" scripts that do not use
// define() to declare the dependencies and set a module value.
requirejs.config({
//Remember: only use shim config for non-AMD scripts,
//scripts that do not already call define(). The shim
//config will not work correctly if used on AMD scripts,
//in particular, the exports and init config will not
//be triggered, and the deps config will be confusing
<script src="js/require-2.3.6.js" data-main="App.js"></script>
// shim: Configure the dependencies, exports, and custom initialization for older,
// traditional "browser globals" scripts that do not use define() to declare
// the dependencies and set a module value.
requirejs.config({
//Remember: only use shim config for non-AMD scripts,
//scripts that do not already call define(). The shim
'''
* https://swimstandards.com/swimmer/
* https://www.swimcloud.com
* https://www.swimmingrank.com
* https://www.midnightsports.com/index2023.htm
'''
'''
set CONDA_PREFIX=C:\apps\anaconda3
set CONDA_DEFAULT_ENV=base