Skip to content

Instantly share code, notes, and snippets.

[root@psvilxemdbp1 ~]# service mysqld status
mysqld dead but subsys locked
[root@psvilxemdbp1 ~]# fsck -n /data
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
Warning! /dev/mapper/vgdata-datavol is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/mapper/vgdata-datavol contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
@jimsander
jimsander / catalina.out
Last active August 29, 2015 14:20
catalina example
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: connect timed out
at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:96)
at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121)
@jimsander
jimsander / .vimrc
Created May 22, 2015 14:19
expanded tabs
set tabstop=4
set softtabstop=4
set expandtab
@jimsander
jimsander / isy-kwikset-1.md
Last active August 29, 2015 14:26
isy rest api and z-wave kwikset 961

I can query the z-wave device, but cannot set the status

# curl -v http://admin:REDACTED@192.168.2.107:8090///rest/nodes/ZW011_1/ 2>/dev/null | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<nodeInfo>
  <node flag="144">
    <address>ZW011_1</address>
    <name>ZWFrontDoor</name>
    <family>4</family>
@jimsander
jimsander / isy-wrapper.md
Last active August 29, 2015 14:26
ISY: my wrapper script

JDS ISY Wrapper Script

Some Examples of the wrapper script

It is accessed both internally and externally of my LAN

List

Keybase proof

I hereby claim:

  • I am jimsander on github.
  • I am jimsander (https://keybase.io/jimsander) on keybase.
  • I have a public key whose fingerprint is E86D 4D02 A656 7298 8B0B 5E4F AF4B D8D9 E73D EC82

To claim this, I am signing this object:

@jimsander
jimsander / azure_arm_templates_and_deployments.md
Last active January 6, 2017 19:02
JDS: Azure ARM template and deployments

Being a CommandLine and non-Windows guy, it's been fun trying to work with Azure ARM (Azure Resource Manager) templates. As of last month, VS Code, a cross-platform tool for working with VisualStudio, has a new plugin for working with ARMs.

tl:dr https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-vs-code

Working with ARM Templates in Visual Studio Code

  • install VS Code
  • Open Quick Open
  • ext install azurerm-vscode-tools
  • restart VSCode
@jimsander
jimsander / azurerm_invalid_maxsizeinmegabytes.md
Last active January 6, 2017 20:49
AzureRM: Invalid property value for MaxSizeInMegabytes

Using a template file exported from Azure portal, getting an error of invalid size for a topic resource

  ``` {
        "comments": "Generalized from resource: '/subscriptions/26b771e4-52ff-4d34-ab73-8606e48876a7/resourcegroups/charon-services-work/providers/Microsoft.ServiceBus/namespaces/charon-bus/topics/subscriptioncreatedfailures'.",
        "type": "Microsoft.ServiceBus/namespaces/topics",
        "name": "[parameters('topics_subscriptioncreatedfailures_name')]",
        "apiVersion": "2015-08-01",
        "location": "South Central US",
        "properties": {
            "defaultMessageTimeToLive": "14.00:00:00",
```
Artifactory Package Install Script starting
true : The term 'true' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\users\azure\documents\visual studio 2015\Projects\Artifactory2\packages\Artifactory.2.3.1\tools\Install.ps1:50
char:39
+ $taskDoc.psbase.PreserveWhitespace = true
+ ~~~~
+ CategoryInfo : ObjectNotFound: (true:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
# bash apimcall.curl
* Trying 13.89.49.189...
* Connected to extdevapi.azure-api.net (13.89.49.189) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: *.azure-api.net
* Server certificate: Microsoft IT SSL SHA2
* Server certificate: Baltimore CyberTrust Root
> POST /xcloud/api/core/tenants/e9c18612-8251-48a0-8aa9-f2cf04e549bf/token HTTP/1.1
> Host: extdevapi.azure-api.net
> User-Agent: curl/7.43.0