Skip to content

Instantly share code, notes, and snippets.

View ryanjafari's full-sized avatar
🏠
Working from home

Ryan Jafari ryanjafari

🏠
Working from home
View GitHub Profile
@ryanjafari
ryanjafari / .hyper.js
Last active July 10, 2021 01:08
Hyper.app (macOS terminal, canary) configuration file
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'canary',
// default font size in pixels for all tabs
@ryanjafari
ryanjafari / .hyper.js.stable
Created July 10, 2021 01:07
Hyper.app (macOS terminal, stable) configuration file
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
// mbp settings
{
//
// analytics:
//
"telemetry.telemetryLevel": "off",
//
// extensions:
//
"extensions.autoCheckUpdates": true,
// mbp settings
{
//
// analytics:
//
"telemetry.telemetryLevel": "off",
//
// extensions:
//
"extensions.autoCheckUpdates": true,
package main
import (
"github.com/kamhlos/upnp"
"fmt"
)
func main() {
upnp := new(upnp.Upnp)
err := upnp.ExternalIPAddr()
#!/bin/sh
AUTHORIZED_KEYS=/root/.ssh/authorized_keys
KEYS_RC=-1
COUNT=0
while [ ${KEYS_RC} -ne 0 ] && [ ${COUNT} -lt 60 ]
do
KEYS_DATA=$(podman exec unifi-os mongo --port 27117 --eval 'db.setting.find({key: {$eq: "mgmt"}}, {x_ssh_keys: 1, _id: 0});' --quiet ace)
KEYS_RC=$?
if ($yaml.machine | empty?) {
echo 'yaml is empty'
} {
if ($yaml.machine.network | empty?) {
echo 'network is empty'
} {
echo 'network is not empty'
}
}
curl -kivL -H 'Host: example.your-domain.com' 'http://35.199.164.14'
kubectl describe issuer letsencrypt-staging
kubectl get certificate
kubectl describe certificate quickstart-example-tls
kubectl describe secret quickstart-example-tls
kubectl describe certificate
kubectl describe order quickstart-example-tls-889745041
kubectl describe challenge quickstart-example-tls-889745041-0
Usage: dnsmasq [options]
Valid options are:
-a, --listen-address=<ipaddr> Specify local address(es) to listen on.
-A, --address=/<domain>/<ipaddr> Return ipaddr for all hosts in specified domains.
-b, --bogus-priv Fake reverse lookups for RFC1918 private address ranges.
-B, --bogus-nxdomain=<ipaddr> Treat ipaddr as NXDOMAIN (defeats Verisign wildcard).
-c, --cache-size=<integer> Specify the size of the cache in entries (defaults to 150).
-C, --conf-file=<path> Specify configuration file (defaults to /etc/dnsmasq.conf).
-d, --no-daemon Do NOT fork into the background: run in debug mode.