Skip to content

Instantly share code, notes, and snippets.

@marckassay
marckassay / inspect.txt
Created June 19, 2021 16:51
docker-geoserver container
{
"Id": "e2e5af164f13fa508818c82756d1deed48bb7879cf3e75e1e135e8230e14f821",
"Created": "2021-06-19T12:34:00.1062184Z",
"Path": "/bin/bash",
"Args": [
"/scripts/entrypoint.sh"
],
"State": {
"Status": "running",
"Running": true,
@marckassay
marckassay / docker-desktop.txt
Created June 19, 2021 16:29
docker-geoserver container startup log
_ __ _ ____ _
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
19-Jun-2021 12:34:06.492 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.48
19-Jun-2021 12:34:06.496 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Jun 10 2021 09:22:01 UTC
19-Jun-2021 12:34:06.496 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.48.0
19-Jun-2021 12:34:06.496 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
19-Jun-2021 12:34:06.497 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 4.19.104-microsoft-standard
19-Jun-2021 12:34:06.497 I
@marckassay
marckassay / programmatically-select-grid.ipynb
Created December 17, 2020 17:04
pyviz/pyviz Gitter example of potential issue.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
E:\> Get-PackageProvider | fl
Name : NuGet
ProviderName : NuGet
Features : {[supports-powershell-modules, System.Collections.Generic.List`1[System.String]], [file-extensions, System.Collections.Generic.List`1[System.String]], [uri-schemes,
System.Collections.Generic.List`1[System.String]], [magic-signatures, System.Collections.Generic.List`1[System.String]]}
Version : 3.0.0.1
ProviderPath : C:\Users\marck\OneDrive\Documents\PowerShell\Modules\PackageManagement\1.4.5\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
SupportedFileExtensions : {nupkg}
SupportedUriSchemes : {http, https, file}
E:\> Get-Module -All | fl
Name : Microsoft.PackageManagement
Path : C:\Users\marck\OneDrive\Documents\PowerShell\Modules\PackageManagement\1.4.5\coreclr\netstandard2.0\Microsoft.PackageManagement.dll
Description :
ModuleType : Binary
Version : 3.0.0.1
NestedModules : {}
ExportedFunctions :
ExportedCmdlets :
@marckassay
marckassay / ProductivityTools.PSSetPhotographNameAsDateTimeTaken.psm1
Last active July 12, 2022 12:58
pwujczyk's module file for ProductivityTools.PSSetPhotographNameAsDateTimeTaken. Using this gist to illustrate diff for modifications needed. See: https://stackoverflow.com/a/50203543/648789
function GetResultDirectory()
{
[cmdletbinding()]
param ([string]$directory)
$path=Split-Path -Path $directory
$directoryName=Split-Path $directory -leaf
$resultName="_Result"
$resultPath=Join-Path "$path" $directoryName$resultName
@marckassay
marckassay / Disable-ElantechTouchPad.ps1
Last active September 8, 2019 22:24
PowerShell script to disable an Elantech TouchPad on WIndows 10. This TouchPad is available on at least Samsung Series 7 Chronos laptops
<#
.SYNOPSIS
Disables Elantech TouchPad on WIndows 10
.DESCRIPTION
This TouchPad is available on at least Samsung Series 7 Chronos laptops. Executing this function will edit the registry. Afterwards in order for this function to have
an effect, at minimum a system log-off is required.
This function doesn't disable TouchPad on Windows log-in screen.
.PARAMETER WhatIf
Dry-run; outputs what it intends to do if executed without `-WhatIf`
@marckassay
marckassay / logcat.txt
Created April 9, 2019 18:27
adb logcat output showing LottieSplashScreen exception
--------- beginning of main
04-09 14:08:50.791 1599 2061 D WifiTrafficPoller: TRAFFIC_STATS_POLL true Token 380 num clients 1
04-09 14:08:50.793 1599 2061 D WifiTrafficPoller: packet count Tx=213165 Rx=347738
04-09 14:08:51.107 1599 2062 D MessengerImpl: <send> message = 528386 ,msg.sendingUid = 1000 ,Handler = Handler (com.android.server.ConnectivityService$NetworkStateTrackerHandler) {3ba2ba7}
04-09 14:08:51.108 1599 2067 D MessengerImpl: <send> message = 524294 ,msg.sendingUid = 1000 ,Handler = Handler (android.net.ConnectivityManager$CallbackHandler) {bb4a09a}
04-09 14:08:51.108 1599 2067 D MessengerImpl: <send> message = 524294 ,msg.sendingUid = 1000 ,Handler = Handler (android.net.ConnectivityManager$CallbackHandler) {5f37dcb}
04-09 14:08:51.109 1599 2067 D MessengerImpl: <send> message = 524294 ,msg.sendingUid = 1000 ,Handler = Handler (android.net.ConnectivityManager$CallbackHandler) {d42a096}
04-09 14:08:51.109 1599 2067 D MessengerImpl: <send> message = 524294 ,msg.sendingUid = 1000 ,
@marckassay
marckassay / 689.txt
Last active April 1, 2019 15:07
Diffing apiaget's comment from cordova-android #689 issue
<platform name="android">
<edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true">
</application>
</edit-config>
<preference name="loadUrlTimeoutValue" value="700000" />
<icon background="res/icons/android/ldpi-background.png" density="ldpi" foreground="res/icons/android/ldpi-foreground.png" src="res/icons/android/drawable-ldpi-icon.png" />
<icon background="res/icons/android/mdpi-background.png" density="mdpi" foreground="res/icons/android/mdpi-foreground.png" src="res/icons/android/drawable-mdpi-icon.png" />
<icon background="res/icons/android/hdpi-background.png" density="hdpi" foreground="res/icons/android/hdpi-foreground.png" src="res/icons/android/drawable-hdpi-icon.png" />
<icon background="res/icons/android/xhdpi-background.png" density="xhdpi" foreground="res/icons/android/xhdpi-foreground.png" src="res/icons/android/drawable-xhdpi-icon.png" />
@marckassay
marckassay / 3852.ENVPATHS.txt
Last active March 31, 2019 16:37
My environment paths that output in PowerShell from "$Env:Path.Split(';')". First revision is prior to fixing (issue #3852)[https://github.com/ionic-team/ionic-cli/issues/3852]. Second revision fixes this issue.
C:\Program Files\nodejs
C:\Program Files\PowerShell\6\
C:\Program Files\Git\cmd
C:\Windows
C:\Windows\system32
C:\Windows\System32\OpenSSH\
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0\
C:\ProgramData\chocolatey\bin
C:\Python27