This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _GNU_SOURCE | |
| #include <arpa/inet.h> | |
| #include <netinet/in.h> | |
| #include <netinet/ip.h> | |
| #include <stdarg.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/socket.h> | |
| #include <unistd.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| blueprint: | |
| name: Zigbee2MQTT Action Trigger | |
| description: Trigger an action when a Zigbee2MQTT event occurs. | |
| domain: automation | |
| input: | |
| event_entity: | |
| name: Event Entity | |
| description: "Select the Zigbee2MQTT event entity that will trigger this automation. It should have an `event_type` attribute, which will be checked for conditions." | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import serial | |
| import time | |
| import argparse | |
| import logging | |
| import sys | |
| """ | |
| examples: | |
| path.py --pinlen_min=6 --pinlen_max=6 --log_file l6_dbg.txt --progress | |
| mp64 '?d?d?d?d?d?d' | path.py --infile=- --log_file l6_dbg.txt --progress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define _GNU_SOURCE | |
| #include <sys/syscall.h> | |
| #include <sys/mount.h> | |
| #include <sys/stat.h> | |
| #include <sys/types.h> | |
| #include <sched.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "net" | |
| "sync" | |
| "github.com/miekg/dns" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Step 0: Log in | |
| if ! op whoami >/dev/null 2>/dev/null; then | |
| eval "$(op signin)" | |
| fi | |
| if [ "$(bw status | jq -r .status)" != "unlocked" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "k8s.io/apimachinery/pkg/runtime" | |
| "k8s.io/apimachinery/pkg/runtime/serializer" | |
| "k8s.io/apimachinery/pkg/runtime/serializer/json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| requirements.txt: | |
| certifi==2021.10.8 | |
| charset-normalizer==2.0.12 | |
| httplib2==0.20.4 | |
| idna==3.3 | |
| oauth2==1.9.0.post1 | |
| oauthlib==3.2.0 | |
| pyparsing==3.0.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - command: | |
| - kube-apiserver | |
| - --bind-address=127.0.1.1 | |
| - --requestheader-allowed-names=front-proxy-client | |
| - --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt | |
| - --requestheader-extra-headers-prefix=X-Remote-Extra- | |
| - --requestheader-group-headers=X-Remote-Group | |
| - --requestheader-username-headers=X-Remote-User | |
| - --secure-port=6443 | |
| - ... more args ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| do shell script "diskutil mount disk0s3" | |
| tell application "System Events" | |
| tell application "System Preferences" | |
| set current pane to pane id "com.apple.preference.startupdisk" | |
| activate | |
| delay 1 | |
| end tell | |
| tell application process "System Preferences" |
NewerOlder