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
    
  
  
    
  | # assuming an existing spleeter setup | |
| cd ~/tmp/spleeter | |
| # current directory structure should include output and pretrained_models | |
| spleeter separate -p spleeter:4stems -o output track.mp3 | 
  
    
      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
    
  
  
    
  | # chain a bunch of markdown files together to produce a html page for a blog or similar | |
| pandoc -s header.md 2022-01-04.md footer.md -o 2022-01-04.html -t html --metadata title="2022-01-04" | 
  
    
      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
    
  
  
    
  | # gracefully terminate a youtube-dl stream capture after 30 minutes | |
| timeout -s SIGINT 30m youtube-dl <video_url> | |
| # extract audio from youtube video | |
| youtube-dl --extract-audio --audio-format mp3 --output "%(title)s.%(ext)s" \ | |
| https://youtu.be/<video_key> | 
  
    
      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
    
  
  
    
  | # randomise lines to a file (i'm aware of the UUOC here) | |
| cat ~/Desktop/tickets.txt | sort --random-sort >> ~/Desktop/random.txt | 
  
    
      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
    
  
  
    
  | # locate single artifact in the dependency tree | |
| mvn dependency:tree -Dincludes=:tomcat-embed-core | |
| # analyse and push sonar report (substitute example.com obviously) | |
| ./mvnw -e -P coverage \ | |
| -Dsonar.branch.name=$(git rev-parse --abbrev-ref HEAD) \ | |
| -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn \ | |
| -Dsonar.host.url=https://sonar.example.com \ | |
| -Ddependency-check.skip=true \ | |
| --batch-mode \ | 
  
    
      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 or attach to a tmux session | |
| tmux new-session -A -s PERSONAL | 
  
    
      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
    
  
  
    
  | import bpy | |
| exportFolder = "D:\\Dropbox\\Art\\OBJ\\YoutubeTutorial\\" | |
| selected = [] | |
| for a in bpy.data.scenes['Scene'].objects: | |
| if a.select_get(): | |
| selected.append(a) | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| sudo add-apt-repository ppa:graphics-drivers | |
| sudo apt-get update | |
| sudo apt-get install git zsh vim curl tmux | |
| # install nvidia 2070 driver | |
| # sudo apt-get install nvidia-driver-430 | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| # My home directory structure is inspired by the Unix File | |
| # System structure with an emphasis on being light weight, | |
| # simple and easy to migrate. I have a tendency to hop between | |
| # various operating systems and (often virtual) machines. This | |
| # exists for my personal reference. | |
| # | |
| # Your home directory will be populated with a number of folders: | |
| # | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env bash | |
| DATE=$(date '+%Y-%m-%dT%H-%M-%S') | |
| TEMP_DIR=$HOME/tmp/archive | |
| ARCHIVE_DIR=$HOME/archive | |
| rm -rf $TEMP_DIR | |
| mkdir -p $ARCHIVE_DIR | |
| mkdir -p $TEMP_DIR |