Skip to content

Instantly share code, notes, and snippets.

View mlapierre's full-sized avatar

Mark Lapierre mlapierre

  • Melbourne, Australia
View GitHub Profile
@mlapierre
mlapierre / docker-cheat-sheet.md
Last active May 9, 2018 13:56
Docker Cheat Sheet

There are many good cheat sheets out there. This one is a collection of commands and notes I find myself referring to relatively frequently.

Remove stopped containers

docker container prune

Remove all containers that are not running

It will report an error about any running containers, since this attempts to remove them too Note: This will remove ALL containers, including volume data containers. You might not want this

@mlapierre
mlapierre / mssql.task.gradle
Last active May 7, 2018 20:05
Gradle: Add MSSQL JDBC drivers to the buildscript and groovy.sql.Sql classpath
import groovy.sql.Sql
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.microsoft.sqlserver:mssql-jdbc:6.4.0.jre8'
}
@mlapierre
mlapierre / keybase.md
Created August 16, 2017 10:15
Keybase proof

Keybase proof

I hereby claim:

  • I am mlapierre on github.
  • I am marklapierre (https://keybase.io/marklapierre) on keybase.
  • I have a public key ASDgg0_YPVeIQ3s1Av64toPD-vA6M7_InvSffb8gOHtb8go

To claim this, I am signing this object:

@mlapierre
mlapierre / copySpotlightImages.ps1
Last active August 21, 2016 20:19
Copy Windows 10 Spotlight Lock screen images to a user profile directory to be used as wallpaper
Add-Type -AssemblyName System.Drawing
$srcPath = "$env:localappdata\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets"
$destPath = "$env:userprofile\Pictures\Spotlight"
$screenWidth = 1920
# Don't copy a bunch of invalid files and some that I'm not interested in.
$exclude = @(
"4fcb5b1ca951dc6f88d6b6c16a538a934a2024b59f5fff7ae06e3e880b304014",
"0fac3566baf536896c2579bcfc6ee01ab4437809bfb9efa3bb00c2e45da69556",
@mlapierre
mlapierre / gist:3755c5816bbb24a4c046
Created July 15, 2015 18:36
ND4J compilation error (Win 8 64)
[INFO] --- javacpp:0.11:build (process-classes) @ nd4j-x86 ---
[INFO] Executing JavaCPP Builder
[INFO] Generating D:\Dev\nd4j\nd4j-x86\target\classes\org\nd4j\linalg\cpu\javacpp\jniLoop.cpp
[INFO] Compiling D:\Dev\nd4j\nd4j-x86\target\classes\org\nd4j\linalg\cpu\javacpp\windows-x86_64\jniLoop.dll
[INFO] cl /ID:\Dev\nd4j\nd4j-x86/src/main/resources/ "/IC:\Program Files\Java\jdk1.7.0_79\include" "/IC:\Program Files\Java\jdk1.7.0_79\include\win32" D:\Dev\nd4j\nd4j-x86\target\classes\org\nd4j\linalg\cpu\javacpp\jniLoop.cpp /W3 /Oi /O2 /EHsc /Gy /GL /MD /LD /link /OUT:D:\Dev\nd4j\nd4j-x86\target\classes\org\nd4j\linalg\cpu\javacpp\windows-x86_64\jniLoop.dll
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
jniLoop.cpp
D:\Dev\nd4j\nd4j-x86/src/main/resources/Loop.h(222) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data