Skip to content

Instantly share code, notes, and snippets.

@smaeul
smaeul / bl808.md
Last active February 19, 2023 20:34
BL808 U-Boot HOWTO
@koop
koop / ensure-cert-macos.sh
Created November 28, 2017 20:27
Ensures a certificate is in the macOS system keychain.
#!/bin/bash
# Usage
# $ ./install-cert-macos.sh "/path/to/cert"
CERT_PATH="$1"
# First, grab the SHA-1 from the provided SSL cert.
CERT_SHA1=$(openssl x509 -in "$CERT_PATH" -sha1 -noout -fingerprint | cut -d "=" -f2 | sed "s/://g")
# Next, grab the SHA-1s of any standard.dev certs in the keychain.
# Don't return an error code if nothing is found.
@stla
stla / SessionInfo.Rmd
Last active December 26, 2015 11:39
Shiny Session Report - v0
```{r sessionInfo, echo=FALSE}
si <- sessionInfo()
opkgver <- sapply(si$otherPkgs, function(x) x$Version)
nspkgver <- sapply(si$loadedOnly, function(x) x$Version)
opkgver <- opkgver[sort(names(opkgver))]
nspkgver <- nspkgver[sort(names(nspkgver))]
verso <- paste("(v", opkgver, ")", sep = "")
versns <- paste("(v", nspkgver, ")", sep = "")
```
@r4um
r4um / mount_xen_vdi.md
Created August 20, 2013 18:35
Mount disk under Xen dom0
  • Get name label and hypervisor of the disk, login to the hypervisor
# xe vdi-list name-label=ROOT-892
uuid ( RO)                : 5948fee1-28a4-4d37-a38d-cda7527b366d
          name-label ( RW): ROOT-892
    name-description ( RW):
             sr-uuid ( RO): d3a28e40-b840-556a-596f-e5e8412edd81
        virtual-size ( RO): 289910292480
            sharable ( RO): false