- Install VirtualBox
- Install Vagrant
- Download Ubuntu Server ISO
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 | |
| mkdir -p ~/.ssh | |
| # generate new personal ed25519 ssh keys | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <[email protected]>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs |
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
| var textExtractor = new TextExtractor(); | |
| var result = textExtractor.Extract(@"c:\projects\tikaondotnet\src\TikaOnDotNet.Tests\files\Tika.doc"); | |
| // View the result on the console | |
| Console.WriteLine("Content Type: " + result.ContentType); | |
| Console.WriteLine("\n\n" + result.Text.Trim()); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
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
| # | |
| # Assumptions | |
| # | |
| # 1. If you have a Octopus release deployed, say 1.0.0.73, there is a git | |
| # tag set for that commit in GitHub that is "v1.0.0.73". | |
| # | |
| # 2. You have TeamCity label each successful build in GitHub with the format | |
| # "v{build number}. Sidenote: it appears that TeamCity only labels the | |
| # default branch, but not feature branches. | |
| # |
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 | |
| HOSTSFILE="/etc/hosts" | |
| BAKFILE="$HOSTSFILE.bak" | |
| DOMAINREGEX="^[a-zA-Z0-9]{1}[a-zA-Z0-9\.\-]+$" | |
| IPREGEX="^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$" | |
| URLREGEX="^https?:\/\/[a-zA-Z0-9]{1}[a-zA-Z0-9\/\.\-]+$" | |
| backup() | |
| { |
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 | |
| setlocal | |
| cd /D %~dp0 | |
| SET WebSiteProjectFilePath=%1 | |
| SET WebSiteProdPath=C:\inetpub\%2 | |
| SET IISAppPool=%2 | |
| SET IISBinding=%3 | |
| SET IISSiteName=%4 | |
| SET SqlServer=%5 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
