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 ruby | |
| # Usage: ruby reverse_lines.rb input.txt output.txt | |
| # This script reads each line from the input file, | |
| # reverses the order of the characters, | |
| # and writes the result to the output file. | |
| # It supports ASCII and Unicode charaters (utf-8). | |
| # The primary use-case is for manipulating ascii art, to flip the other direction. | |
| # A more robust version would replace commonly used characters with its complement | |
| # (E.g. the braille character ⠦ becomes ⠴ ). |
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
| # Define paths | |
| $SourceDir = "C:\Users\example\Desktop\stream\edited" | |
| $DestDir = "Z:\External Storage\Seagate\content" | |
| $EmailTo = "example@gmail.com" | |
| $SmtpServer = "smtp.gmail.com" # Replace with your SMTP server | |
| $EmailFrom = "example-noreply@gmail.com" # Replace with your from email | |
| $Credentials = New-Object System.Management.Automation.PSCredential("username", (ConvertTo-SecureString "password" -AsPlainText -Force)) # Replace with SMTP credentials if needed | |
| # Check if the NAS volume is mounted (assuming mounted as Z:\) | |
| if (-not (Test-Path "Z:\")) { |
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
| @echo off | |
| REM INSTALL: Add the full path string of this file via regedit to: | |
| REM \HKCU\Software\Microsoft\Command Processor\AutoRun | |
| REM Set up aliases to mimic BASH/*NIX environment | |
| doskey ls=dir /X /Q /TW /OG /P $* | |
| doskey ll=dir $* | |
| doskey cat=type $* | |
| doskey ..=cd.. | |
| doskey grep=find "$1" $2 | |
| doskey mv=ren $* |
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 | |
| echo "Beginning wipe" | |
| for i in {1..7} | |
| do | |
| echo "Starting pass $i..." | |
| dd if=/dev/urandom of=/sda1 bs=1M | |
| dd if=/dev/zero of=/sda1 bs=1M | |
| echo "Pass $i complete." | |
| done | |
| echo "Wipe complete." |
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
| ............................................________ | |
| ....................................,.-'"...................``~., | |
| .............................,.-"..................................."-., | |
| .........................,/...............................................":, | |
| .....................,?......................................................, | |
| .................../...........................................................,} | |
| ................./......................................................,:`^`..} | |
| .............../...................................................,:"........./ | |
| ..............?.....__.........................................:`.........../ | |
| ............./__.(....."~-,_..............................,:`........../ |