Skip to content

Instantly share code, notes, and snippets.

View matthiasg's full-sized avatar

matthiasg matthiasg

View GitHub Profile
@matthiasg
matthiasg / gist:602eb6f20e2d2a51870efb8473903c7d
Created February 15, 2024 08:24
Install SmartOS on Hetzner machine with NVMe
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "SmartOS" {
recordfail
insmod ext2
insmod gzio
@matthiasg
matthiasg / index.html
Last active February 14, 2024 11:29
Hang Safari - PDF Object BUG
<div>
When REMOVING an object tag safari does not like it hangs.
<br><br>
</div>
<button id="inc">Increase Counter</button>&nbsp;<label id="counter">0</label><br>
<button id="crash">Make Safari Hang</button>
<div id="content"></div>
@matthiasg
matthiasg / audit.js
Last active September 21, 2023 12:12
common/scripts/audit.js - for @microsoft/rush
const fs = require('fs')
const path = require('path')
const child_process = require('child_process')
const pnpmPath = path.resolve(__dirname, '../temp/pnpm-local/node_modules/pnpm/bin/pnpm.cjs')
const tempPath = path.resolve(__dirname, '../temp')
let argv = process.argv.slice(2)
// Simple order fix to avoid building or required a full parser (only works with the two specific parameters basically)
@matthiasg
matthiasg / HOWTO.md
Created December 2, 2021 12:07
NFS Share Smartos NFS

First create a share zfs create zones/camera

Share with access to all intranet pcs with write access as root

zfs set sharenfs='sec=none,rw=*,anon=0' zones/camera

Note: sec=none must PRECEED any following option see man share_nfs

@matthiasg
matthiasg / MathBlock.css
Created June 21, 2021 07:24 — forked from BrianHung/MathBlock.css
MathBlock NodeView for TipTap
.ProseMirror .MathBlock pre {
background: var(--default-back);
color: rgb(var(--default-font));
font-size: 0.8em;
display: flex;
padding: 1em;
}
.ProseMirror .MathBlock {
display: flex;
@matthiasg
matthiasg / windows-10-pro-smartos-bhyve.md
Last active March 20, 2024 09:54 — forked from skirmess/windows-10-pro-smartos-bhyve.md
Windows 10 Pro Image for SmartOS Bhyve

Windows 10 Pro

Windows 10 Pro ISO

Create a fresh Windows 10 Pro ISO file with Microsofts Media Creation Tool. (I created a Windows 10 Pro 64 bit German ISO image)

Save the created image on your SmartOS global zone.

cp ... /zones/Windows10_64de.iso
@matthiasg
matthiasg / gist:660789bd961fc8607e21f85330a78d05
Created September 10, 2020 06:39 — forked from mattconnolly/gist:7804176
Upgrading pkgin repository for a SmartOS zone.

Upgrading SmartOS zone

Make a snapshot first! Upgrading from 2013Q1 to 2013Q3 because I needed newer nginx.

Update pkgin repository

edit the files at:

/opt/local/etc/pkg_install.conf

/opt/local/etc/pkgin/repositories.conf

@matthiasg
matthiasg / AdbCommands
Created March 12, 2020 15:06 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@matthiasg
matthiasg / server_csr_details.txt
Last active March 5, 2020 08:28
Self Signed SSL Certificate with SubjectAltName and signed by Self Signed Certificate Authority
[req]
default_bits = 2048
prompt = no
default_md = sha256
req_extensions = v3_req
distinguished_name = dn
[ dn ]
C= CountryCode
ST= State
@matthiasg
matthiasg / android-set-ntp-server.md
Created February 28, 2020 14:23
Set the NTP server of your android device
tags
Android
Android Things

Set the NTP server of your android device