Skip to content

Instantly share code, notes, and snippets.

View petersgiles's full-sized avatar
💭
forking everything

Pete petersgiles

💭
forking everything
View GitHub Profile
/* GitHub stylesheet for MarkdownPad (http://markdownpad.com) */
/* Author: Nicolas Hery - http://nicolashery.com */
/* Version: b13fe65ca28d2e568c6ed5d7f06581183df8f2ff */
/* Source: https://github.com/nicolahery/markdownpad-github */
/* RESET
=============================================================================*/
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
@petersgiles
petersgiles / host-named-sites.ps1
Created July 14, 2016 22:03 — forked from wpsmith/host-named-sites.ps1
Powershell: SharePoint 2013 Create Web Application, Root Site Collection,
# Replace:
# DATABASE
# NAMED
# APPLICATION NAME
# hostheadername
# DOMAIN\USER
# DOMAIN\SP_FARM_ACCOUNT
# PATHNAME
# SITE COLLECTION NAME
# DIRECTORYPORT
@petersgiles
petersgiles / New-SPSiteWithCustomWebAppAndPoolAndAccount.ps1
Created July 14, 2016 22:03 — forked from janikvonrotz/New-SPSiteWithCustomWebAppAndPoolAndAccount.ps1
PowerShell: Create a new SharePoint Site with a custom web application and managed account and application pool #PowerShell #SharePoint
# modules
Import-Module ActiveDirectory
if((Get-PSSnapin 'Microsoft.SharePoint.PowerShell' -ErrorAction SilentlyContinue) -eq $null){Add-PSSnapin 'Microsoft.SharePoint.PowerShell'}
# new service account
$UserName = "SharePoint Service User Wiki"
$UserUPN = "[email protected]"
$UserSam = "sa-spwiki"
$UserPassword = "pass."
@petersgiles
petersgiles / entry.js
Created May 30, 2017 21:56 — forked from DevWurm/entry.js
angular-cli Electron configuration
const {app, BrowserWindow} = require('electron')
const path = require('path')
const url = require('url')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win
function createWindow () {
// Create the browser window.
@petersgiles
petersgiles / SetUnblockPolicy.ps1
Created September 2, 2017 09:44 — forked from gbiellem/SetUnblockPolicy.ps1
Turn off Downloads being "Blocked"
$reg = @{
Path = 'Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments'
Name = 'SaveZoneInformation'
PropertyType = 'DWORD'
Value = 1
}
if (-not (Test-Path -Path $reg.Path)) {
New-Item $reg.Path
}
@petersgiles
petersgiles / docx2md.md
Created September 9, 2017 01:00 — forked from aembleton/docx2md.md
Convert a Word Document into MD

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution

@petersgiles
petersgiles / 2Eto5E-conversion-summary.md
Created September 9, 2017 01:05
2E to 5E simple conversion guidelines

Updated 10 February 2015 (added link to Monster Traits and Actions)

This is the third in my series of conversion documents for D&D 5th Edition. (You can find the one for Next here and the one for 3.5/3E/Pathfinder here.) I created this document by comparing the 5E versions of monsters from the Monster Manual with their 2E counterparts. I also referred to two sources for converting monsters from 2E to 3E: Wizards’ official

@petersgiles
petersgiles / NuGet_profile.ps1
Created September 14, 2017 00:25
Change Colours in Package Manager Console
# $profile to find path i.e. NuGet_profile.ps1
$opt = (Get-Host).PrivateData
$opt.WarningBackgroundColor = "Orange"
$opt.WarningForegroundColor = "White"
$opt.ErrorBackgroundColor = "Red"
$opt.ErrorForegroundColor = "White"
@petersgiles
petersgiles / osx-install-clamav.md
Created October 1, 2017 09:44
install clamav with homebrew

Howto Install clamav on OSX with brew

$ brew install clamav
$ cd /usr/local/etc/clamav
$ cp freshclam.conf.sample freshclam.conf

Open freshclam.conf and comment the "Example" line:

1.0 SAVAGE PARANOIA

Stay Alert! - Trust No one! - Keep your laser handy!

1.1 The Setting

May we recommend "Paranoia XP" from Mongoose Publishing. Go read that then come back here. go on... we can wait done? ok, moving on...

1.2 Setting Rules for "Savage" Paranoia