Skip to content

Instantly share code, notes, and snippets.

View aimfireready's full-sized avatar

Gandalf the Bray aimfireready

  • Aim Fire Ready LLC
  • Bloomington, Indiana
View GitHub Profile
:: Goolog - The Poor Man's Logging System
:: License: MIT
::
:: Installation:
:: 1. Make a new Google Form with 2 input fields.
:: 2. Create a Pre-filled Link and copy-paste the URL below
:: 3. Replace the "viewform" in the original URL with "formResponse"
:: 4. Replace the entry ID number for each input field.
:: 5. Test and troubleshoot.
:: Add this file to a folder in your PATH to use it in the Run dialog.
::Show date and time of last reboot on Windows
::2019-08-31 (C) @tree-wizard
::MIT License
:: Based on this SO answer: https://stackoverflow.com/a/32457584/4902224
:: Using 'For' syntax from https://ss64.com/nt/for_cmd.html
@echo off
set command=net statistics workstation
for /f "tokens=3" %%a in ('%command% ^|find "since"') do set bootdate=%%a
<?php
/*
* Capitalize Input String to Title Case
* Saved from on https://stackoverflow.com/a/44748446/4902224
* "Converting String to Title Case - PHP" 2017-06-25
*/
function makeTitleCase($input) {
$smallwordsarray = array('of','a','the','and','an','or','nor','but','is','if','then','else','when', 'at','from','by','on','off','for','in','to','into','with','it', 'as' );
//Split input string into an array of words
'Autoprint Script
'(C) 2019 Gandalf Farnam
'Licensed under the MIT license.
'v1.0 2019-03-28
'REQUIREMENTS:
''Requires Adobe Reader: https://get.adobe.com/reader/
'Make sure the path below matches your path to the Adobe Reader .exe file.
'USAGE:
@aimfireready
aimfireready / pg.bat
Created July 20, 2018 20:32
Generate a complex password using Windows Run dialog
@echo off
setlocal enabledelayedexpansion
set "string=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz012345678901234567890123456789~!@#$%%^&*()
[]{};:,<.>/?\-_=+~!@#$%%^&*()[]{};:,<.>/?\-_=+"
set "result="
for /L %%i in (1,1,36) do call :add
::echo %result% ::TEST
echo %result%|clip
goto :eof