Some notes about installing and configuring BSD machines:
Edit /etc/sysctl.conf and add the following line:
hw.syscons.bell=0
| if "%1" == "elevated" goto start | |
| powershell -command "Start-Process %~nx0 elevated -Verb runas" | |
| goto :EOF | |
| :start | |
| rem your code goes here |
| #!/bin/bash | |
| # This script defines environment variables which allow you to | |
| # easily colorize your scripts. | |
| # | |
| # At the start of your bash script simply source this file like this: | |
| # | |
| # [ -f "$HOME/scripts/colors" ] && source $HOME/scripts/colors | |
| # | |
| # Then you can use all the variables to colorize output like this: |
| #!/bin/bash | |
| die() { | |
| echo>&2 " Usage: makefile <filename> <size>" | |
| echo>&2 " size is in format <number><unit> where unit can be K,M,G, etc... Example: 256K, 10M, 1G." | |
| exit 1 | |
| } | |
| [ "$#" -eq 2 ] || die | |
| dd if=/dev/urandom of=$1 bs=$2 count=1 |
| #!/bin/bash | |
| # Script to tunnel to a remote server from a firewall using a third | |
| # server in the middle. | |
| [ -f "$HOME/scripts/colors" ] && source $HOME/scripts/colors | |
| USAGE="USAGE:\n\t tunnel-create $Color_Blue BOUNCE_SERVER DESTINATION$COlor_Off $Color_Cyan[BOUNCE_PORT] [DEST_PORT]$Color_Off\n\n" | |
| USAGE+="\t $Color_Blue BOUNCE_SERVER$Color_Off\t - Server through which you will be tunneling\n" | |
| USAGE+="\t $Color_Blue DESTINATION$Color_Off\t - Server you want to ssh into.\n" |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>System Status</title> | |
| <style> | |
| body { | |
| margin-top: 50px; | |
| margin-left: 25%; | |
| margin-right: 25%; |
| 'Enter the name of the computer to check: | |
| ComputerName = "." 'Replace the dot with a computer name, to connect to a remote computer | |
| Dim pop | |
| Set pop = CreateObject("WScript.Shell") | |
| set WshShell = WScript.CreateObject("WScript.Shell") | |
| Set objFSO=CreateObject("Scripting.FileSystemObject") | |
| outFile= WshShell.SpecialFolders("Desktop") & "\PATCH.LOG.TXT" | |
| Set logfile = objFSO.CreateTextFile(outFile,True) |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <link rel="stylesheet" href="style.css"> | |
| <!-- do not edit above this line --> | |
| <meta name="author" content="***"> | |
| <title> Page Title</title> | |
| </head> |
| # Run watch -n1 make | |
| files := $(shell xargs -a COMPILELIST.TXT) | |
| index.html: $(files) | |
| pandoc $(files) --toc -f markdown -t html -c style.css -o $@ |
| $pdflatex = "pdflatex -interaction=nonstopmode %O %S"; | |
| $pdf_previewer = "start evince"; | |
| $pdf_update_method = 0; |