Devboot update: 23-11-15-23-39-46
This commit is contained in:
@@ -60,22 +60,36 @@ alias zjgallerydl="zj --layout gallery-dl.kdl -s gallery-dl"
|
||||
|
||||
# paths
|
||||
export PATH=${PATH}:${HOME}/.local/bin
|
||||
export PATH=${PATH}:${HOME}/repos/personal-devboot/my-scripts/shell
|
||||
export PATH=${PATH}:${HOME}/repos/personal-devboot/scripts/shell
|
||||
export PATH="$HOME/.tmuxifier/bin:$PATH"
|
||||
export PATH="/mnt/e/Programs/streamlink-6.3.1-1-py311-x86/bin:$PATH"
|
||||
|
||||
# docker
|
||||
# https://gbbigardi.medium.com/wsl-2-arch-docker-e-um-pouco-mais-do-meu-ambiente-de-desenvolvimento-42adc48368d4
|
||||
dockerRun() {
|
||||
dockerStart() {
|
||||
DOCKER_DISTRO="Arch"
|
||||
DOCKER_DIR=/mnt/wsl/shared-docker
|
||||
DOCKER_SOCK="$DOCKER_DIR/docker.sock"
|
||||
export DOCKER_HOST="unix://$DOCKER_SOCK"
|
||||
# if [ ! -S "$DOCKER_SOCK" ]; then
|
||||
# mkdir -pm o=,ug=rwx "$DOCKER_DIR"
|
||||
# chgrp docker "$DOCKER_DIR"
|
||||
# /mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd < /dev/null > $DOCKER_DIR/dockerd.log 2>&1"
|
||||
# fi
|
||||
if [ ! -S "$DOCKER_SOCK" ]; then
|
||||
mkdir -pm o=,ug=rwx "$DOCKER_DIR"
|
||||
chgrp docker "$DOCKER_DIR"
|
||||
/mnt/c/Windows/System32/wsl.exe -d $DOCKER_DISTRO sh -c "nohup sudo -b dockerd < /dev/null > $DOCKER_DIR/dockerd.log 2>&1"
|
||||
fi
|
||||
}
|
||||
|
||||
k8sStart() {
|
||||
export KUBECONFIG=~/.kube/config
|
||||
}
|
||||
|
||||
k8sStart
|
||||
|
||||
eval "$(tmuxifier init -)"
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
if [ $(ps ax | grep "[s]sh-agent" | wc -l) -eq 0 ] ; then
|
||||
eval $(ssh-agent -s) > /dev/null
|
||||
if [ "$(ssh-add -l)" = "The agent has no identities." ] ; then
|
||||
ssh-add ~/.ssh/id_ed25519_cloud@CloudPC > /dev/null 2>&1
|
||||
fi
|
||||
fi
|
||||
|
||||
8
scripts/regedit/RemovePinToStart.reg
Normal file
8
scripts/regedit/RemovePinToStart.reg
Normal file
@@ -0,0 +1,8 @@
|
||||
Windows Registry Editor Version 5.00
|
||||
|
||||
; Remove Pin to Start
|
||||
[-HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\PintoStartScreen]
|
||||
[-HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\PintoStartScreen]
|
||||
[-HKEY_CLASSES_ROOT\Microsoft.Website\ShellEx\ContextMenuHandlers\PintoStartScreen]
|
||||
[-HKEY_CLASSES_ROOT\mscfile\shellex\ContextMenuHandlers\PintoStartScreen]
|
||||
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\{a2a9545d-a0c2-42b4-9708-a0b2badd77c8}]
|
||||
13
scripts/shell/run-streamlink.sh
Executable file
13
scripts/shell/run-streamlink.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Check if a parameter is provided
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <FOO>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Assign the parameter to a variable
|
||||
FOO="$1"
|
||||
|
||||
# Run the streamlink command
|
||||
streamlink.exe "$FOO" best
|
||||
Reference in New Issue
Block a user