The Geek Love Back around 2002, I was sitting in my company lunch room, browsing the ads section of an InfoWorld when I saw this barebones kit they were calling the “gBox”. I remember instantly digging the acrylic wrapped aluminum look, similar to the Power Mac G4 Cube that got a lot of press back then.
Old School References I’ve gathered some Internet Archive (aka “Wayback Machine”) links to the reviews and marketing of this case from various distributors.
Intro
I am admitedly much longer time spent on SQL Server and just recently having a couple years on Oracle 11g… All that T-SQL syntax experience, especially after SQL Server 2005 really gave us a lot of power, sets basic expectations on what can be readily accomplished.
Intro
Went looking for this quite a bit and was surprised not to find anything obvious. Wondering why github hasn’t provided this directly. Obviously gist embedding is covered in spades… and WordPress has some plugins… why no love for the static web? Maybe it’s just too to easy to bother publishing ;)
Caveats
- just for markdown so far
- client side rendering (using ShowdownJs) - no SEO for you
- using HTML5 “fetch” - modern browser dependency
- instructions are Hugo leaning but this is vanilla js stuff usable anywhere
Example Usage
12345
|
* blah blah blah best post evah!
<script id="embed1"> renderMarkdown("embed1", "https://raw.githubusercontent.com/Beej126/PoShSlideshow/master/README.md") </script>
* nailed it!
|
this is a great spin on Sudo for Windows.
it goes to some length to keep the input/output inside the current console - versus most other sudo approaches that simply launch the command in another elevated console window.
it pulls this off by clever trick of launching a hidden elevated process and capturing/forwarding it’s I/O to the original console via socket.
i’ve seen some tools have incompatibility with the stdin capture but this technique generally works beautifully.
self escalate as concisely as possible:
1 2 3 4 5 6 7 8 9101112131415161718192021
|
:: net session is a concise way to determine elevation
:: https://stackoverflow.com/a/16285248/813599
:: || means logical "or"..
:: i.e. if net session doesn't trip ERRORLEVEL to 1 it means we're already elevated
:: and we just keep going, otherwise we fire this same file path under sudo
:: this sudo already only elevates where necessary so it would be nice
:: to eliminate the net session check but i can't think of a quicker way to
:: avoid the infinite loop... any ideas?
:: %~f1 means expand the full path of argument 1 (i.e. this script)
:: simple %1 would work in most cases but this is a good habit to get into
:: when you associate scripts to Explorer.exe context menus
:: note this doesn't pass any additional arguments
:: you could use %* for that but then you'd have to tradeoff the full path
net session >nul 2>&1 || sudo "%~f1"
::...rest of your logic...
|
Background:
one day i accidentally deleted my self hosted wordpress blog… i had backups of the posts but off went all my images in a brutal flash… this script pulls what was still out there on the Internet Archive Wayback Machine
The gist here is leveraging a hidden checkbox to maintain expand/collapse state and css :before {content: "xyz" }
to add the expand/collapse widget which keeps the additional markup minimal.
Markdown compatible :)
123456
|
<p></p><input type="checkbox" class="expander">
#### Expandified Heading
* bullet
* bullet
* <input type="checkbox" class="expander"><i>another expander</i>
* nested content that will be expanded
|
I was envious of how the mac auto extracts zips and took a shot at doing that via powershell script on windows
Oracle Provider for OLE DB
- I initially found a free generic database object browser tool called Oracle Maestro…
Yeah I actually said Oracle Forms, that product from the 90’s… as one might guess, i happen to be on a legacy conversion project at work…
There’s some rough edges getting these old bits to install and run that i wanted to capture…
This is an oldie but goody… the gist is that even latest Windows 10 still ships with working IExpress.exe which is a self extracting exe builder! Who knew?!