Skip to content

Instantly share code, notes, and snippets.

View lgeorge-idm's full-sized avatar

Lauren George lgeorge-idm

View GitHub Profile
@lgeorge-idm
lgeorge-idm / LICENSE
Last active March 26, 2020 21:05
CC-BY-SA-4.0 license template
Creative Commons Attribution-ShareAlike 4.0 International Public
License
Copyright (c) {initial_release_year} - present {organization_name}
By exercising the Licensed Rights (defined below), You accept and agree
to be bound by the terms and conditions of this Creative Commons
Attribution-ShareAlike 4.0 International Public License ("Public
License"). To the extent this Public License may be interpreted as a
contract, You are granted the Licensed Rights in consideration of Your
@lgeorge-idm
lgeorge-idm / subset-worldpop.R
Last active March 24, 2020 17:47
Subset worldpop.org raster
library(raster)
# Load worldpop TIF file metadata
usa <- raster('usa_ppp_2020.tif')
# Get GADM shapefile
gadm.usa <- getData(name="GADM", country="USA",level=1)
# Get single admin 1 shape
gadm.wa <- gadm.usa[gadm.usa$NAME_1 == "Washington",]
@lgeorge-idm
lgeorge-idm / emod-ubuntu-setup.sh
Last active October 31, 2019 03:28
Ubuntu 18.04 Preparation script for running EMOD
#!/bin/bash
unset CD
# Update package lists and upgrade out of date packages
## Git
add-apt-repository ppa:git-core/ppa
## R Lang
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
@lgeorge-idm
lgeorge-idm / git-best-practices.confluence.css
Created October 10, 2019 18:05
Style sheet for the Git and Github Best Practices wiki page
.toc-macro ul {
list-style: none !important;
}
.toc-macro .TOCOutline::after {
content: '.'
}
#vcs-best-practices > .aui-navgroup-horizontal .aui-nav .menu-item {
z-index: auto;
@lgeorge-idm
lgeorge-idm / atlassian-bobswift-tables.css
Created September 16, 2019 22:39
Atlassian: Bob Swift table styles
.aui.swift .confluenceTd, .aui.swift .confluenceTh {
border: none;
border-bottom: 1px solid #dfe1e6;
}
@lgeorge-idm
lgeorge-idm / confluence.table.css
Created September 11, 2019 21:53
Confluence: Modern table styles
.wiki-content table.confluenceTable.tablesorter>thead>tr>th {
background-color: transparent;
}
table.aui.confluenceTable > thead {
border-top: none;
border-bottom-width: 1px;
}
@lgeorge-idm
lgeorge-idm / example.msbuild.xml
Created July 3, 2019 00:38 — forked from fearthecowboy/example.msbuild.xml
Super Simple PowerShell task for MSBuild.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- @FearTheCowboy's Simple PowerShell Task for MSBuild -->
<UsingTask TaskName="PowerShell" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll">
<ParameterGroup><ScriptBlock ParameterType="System.String" Required="true" /></ParameterGroup>
<Task><Reference Include="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v12.0.dll"/><Code Type="Class" Language="cs"><![CDATA[
public class PowerShell : Microsoft.Build.Tasks.Exec {
public string ScriptBlock {set { EchoOff=true; Command = string.Format( "@powershell \"Invoke-Command -ScriptBlock {{ $errorActionPreference='Stop'; {0} ; exit $LASTEXITCODE }} \"", value.Replace("\"","\"\"").Replace("\r\n",";").Replace("\n",";").Replace("\r",";")); } }
}]]></Code></Task>
</UsingTask>
@lgeorge-idm
lgeorge-idm / ConfigureIISMove.ps1
Created April 25, 2019 19:51
Change IIS Default Directory
<#
.Synopsis
Moves the Default IIS Directory to another drive
.DESCRIPTION
Moves the Default IIS Directory to another drive
Configure-IISMove IIS based on these three links:
https://technet.microsoft.com/en-us/library/jj635855(v=ws.11).aspx
http://blogs.iis.net/thomad/moving-the-iis7-inetpub-directory-to-a-different-drive
https://support.microsoft.com/en-nz/kb/2752331
.EXAMPLE
@lgeorge-idm
lgeorge-idm / profile.ps1
Created April 12, 2019 20:58 — forked from timsneath/profile.ps1
PowerShell template profile: adds some useful aliases and functions
### PowerShell template profile
### Version 1.03 - Tim Sneath <[email protected]>
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
###
### As a reminder, to enable unsigned script execution of local scripts on client Windows,
@lgeorge-idm
lgeorge-idm / README.md
Last active April 10, 2019 23:01
Clean Your Repo: A utility for cleaning unwanted files from a local repository

Clean Your Repo