Skip to content

Instantly share code, notes, and snippets.

@jpierson
jpierson / shadow-dom-example.html
Last active August 25, 2020 16:10
Shadow DOM example for isolating HTML content embedded from a CMS
<!doctype html>
<html>
<head>
<style>
.row {
display: flex;
}
.column {
@jpierson
jpierson / windows-long-path-support.md
Created October 11, 2018 13:14
windows-long-path-support
@jpierson
jpierson / nix-pwsh-cheatsheet.md
Last active May 7, 2023 15:25
Unix/Linux to Powershell Command Cheatsheet

Unix/Linux to Powershell Command Cheatsheet

This guide aims to document useful commands that I commonly see used in Linux and Unix environments to their closest equivalent in Powershell.

Command: wc

Use: Counts some aspect of the input stream and returns a summarized value as output.

@jpierson
jpierson / min-max-dates.md
Last active January 19, 2018 14:29
A summary of min/max date values used by various systems

Summary of Min/Max date values for various systems

System/Type Min Max Notes
.NET (DateTime) 1/1/0001 12:00:00 AM 12/31/9999 11:59:59 PM
T-SQL (datetime) January 1, 1753 December 31, 9999 Default value is 1900-01-01 00:00:00
Oracle (DATE) 0001-01-01 9999-12-31
Oracle (TIME) 00:00:00 24:00:00
Oracle (TIMESTAMP) 0001-01-01-00.00.00.000000 9999-12-31-23.59.59.999999
ISO 8601 1583-01-19T0:00:00Z 9999-12-31T023:59:59Z
@jpierson
jpierson / advent-of-code-2017-elm-day1-part2.elm
Created December 8, 2017 05:20
Code solution for Advent of Code 2017 Day 1 (http://adventofcode.com/2017/day/1)
module Main exposing (main)
import Html exposing (Html, li, text, ul)
import Html.Attributes exposing (style)
-- Advent of Code 2017 - Day 1 Part 2 (http://adventofcode.com/2017/day/1)
main : Html msg
main =
ul []
@jpierson
jpierson / advent-of-code-2017-elm-day1.elm
Last active December 8, 2017 05:19
Code solution for Advent of Code 2017 Day 1 (http://adventofcode.com/2017/day/1)
module Main exposing (main)
import Html exposing (Html, li, text, ul)
import Html.Attributes exposing (style)
-- Advent of Code 2017 - Day 1 (http://adventofcode.com/2017/day/1)
-- https://ellie-app.com/hBMTrVXyna1/1
main : Html msg
main =
@jpierson
jpierson / ElmScratchPad.md
Last active August 2, 2017 03:38
Experimentation with the Elm language

Elm experiments

Lists

Join a list of strings into a single string with specified separator

import Html exposing (text)

v = [1,2,3]
@jpierson
jpierson / useful-ad-commands.md
Last active July 15, 2021 17:57
Useful Windows Active Directory commands

Useful Windows commands for finding information on Active Directory groups and users.

Get a list of groups on the domain

net group /domain

List groups your current user belongs to

Install Windows 10 VM free on Windows 7

If you find yourself forced to work in a Windows 7 environment but need or would like access to some Windows 10 features it turns out there is at least one way that I've stumbled accross which has worked for me.

Install a Virtual Machine

As far as free options that are well supported in Windows 7 Oracle Virtual Box seemed to be the best option I could find. If you go this route make sure to enable virtualization in the BIOS of your system to enable installing a 64-bit guest OS.

Install Windows 10 Pro as as a Guest OS

@jpierson
jpierson / one-time-git-setup.md
Created April 24, 2017 09:06
Setup instructions for Git