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
| New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null | |
| Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" ` | |
| -Name "PreventDeviceMetadataFromNetwork" ` | |
| -Type DWord ` | |
| -Value 1 | |
| gpupdate /target:computer /force | |
| Write-Host "Done. Restart Windows to ensure the policy is applied." -ForegroundColor Green |
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
| claude-docker() { | |
| docker image inspect claude-code-slim >/dev/null 2>&1 || docker build -t claude-code-slim -<<'EOF' || return 1 | |
| FROM debian:bookworm-slim | |
| RUN apt-get update && apt-get install -y curl ca-certificates git && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m claude | |
| USER claude | |
| ENV HOME=/home/claude | |
| RUN curl -fsSL https://claude.ai/install.sh | bash | |
| ENTRYPOINT ["/home/claude/.local/bin/claude"] | |
| EOF |
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
| find . -iname '*.jpg' -print -exec exiftool -all= -overwrite_original {} + |
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
| alias screen="SCR_PWD=\$(pwd) screen" | |
| if [[ -n "$SCR_PWD" ]]; then | |
| cd "$SCR_PWD" || { echo "Failed to change directory to \$SCR_PWD"; } | |
| fi |
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
| # Install ctop (container top) as an alias | |
| echo "alias ctop='docker run --rm -it --name=ctop --volume /var/run/docker.sock:/var/run/docker.sock quay.io/vektorlab/ctop:latest'" >> /home/vagrant/.bashrc |
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
| javascript:void%20function(){(function(){const%20a=`.flex-shrink-0.overflow-x-hidden[style^=%22width:%20260px%22]`,b=(`/*%20Message%20body%20width%20*/%40media%20(min-width:%201280px)%20{.xl\\:max-w-3xl%20{max-width:%2090%25%20!important;}}%40media%20(min-width:%201024px)%20{.lg\\:max-w-\\[38rem\\]%20{max-width:%2090%25%20!important;}}%40media%20(min-width:%20768px)%20{.md\\:max-w-2xl%20{max-width:%2090%25%20!important;}.md\\:max-w-3xl%20{max-width:%2090%25%20!important;}}/*%20Code%20blocks%20font%20*/code,%20pre%20{font-family:%20Consolas,S%C3%B6hne%20Mono,Monaco,Andale%20Mono,Ubuntu%20Mono,monospace!important;/*%20font-family:%20Iosevka%20Custom,%20S%C3%B6hne%20Mono,Monaco,Andale%20Mono,Ubuntu%20Mono,monospace!important;%20*//*%20font-size:%2012px%20!important;%20*/}/*%20Code%20blocks%20background%20color%20*/pre%20%3E%20div.rounded-md%20{background-color:%20%231e1e1f;}/*%20Code%20blocks%20headings%20background%20color%20*/pre%20%3E%20div.rounded-md%20%3E%20div.flex.items-center.relative%20{background-color |
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
| set -e | |
| NAMESPACE=${N:-${NAMESPACE:-default}} | |
| echo "************************************************************************************************************" | |
| echo "This screen session is for namespace \"${NAMESPACE}\" " | |
| echo "If you are not the owner of this namespace please exit now (Ctrl-C) , thanks :)" | |
| echo "If you want to use your own screen namespace, use: NAMESPACE=yourname $0 or N=yourname $0" | |
| echo "Press ENTER to continue or Ctrl-C to exit" | |
| echo "************************************************************************************************************" |
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 the ~/.screenrc file in your home directory. | |
| hardstatus on | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kG}[%H] %{= kw}%?%-Lw%?%{= bw}[%n*%f %t]%{= kw}%?%+Lw%? %= %D, %d %M %Y %C%a' | |
| shell -/bin/bash | |
| # defbce off |
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
| #!/bin/bash | |
| set -e | |
| # Directory containing .AVI files | |
| SOURCE_DIR="./" | |
| # Directory where files will be copied | |
| TARGET_DIR="./sorted" | |
| # Create target directory if it doesn't exist |
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
| javascript:(function(){window.onblur=null;window.blurred=false;Object.defineProperty(document,"hasFocus",{get:function(){return true}});Object.defineProperty(document,"webkitHidden",{get:function(){return false}});["hidden","mozHidden","msHidden","webkitHidden"].forEach(function(t){Object.defineProperty(document,t,{value:false,configurable:true})});["visibilitychange","webkitvisibilitychange","mozvisibilitychange","msvisibilitychange"].forEach(function(t){document.removeEventListener(t,document["on"+t])});var e=function(t){["blur","mouseleave","mouseout"].includes(t.type)&&(t.target instanceof HTMLInputElement||t.target instanceof HTMLAnchorElement||t.target instanceof HTMLSpanElement)&&t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()};["blur","mouseleave","mouseout"].forEach(function(t){window.addEventListener(t,e,true),document.addEventListener(t,e,true)})})(); |
NewerOlder