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
- name: 'J:COMテレビ' | |
type: 'GR' | |
channel: '13' | |
- name: 'tvk1' | |
type: 'GR' | |
channel: '18' | |
- name: 'J:COMチャンネル' | |
type: 'GR' |
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 python3 | |
import socket, ssl, sys, time, re | |
if len(sys.argv) < 2: | |
print('Usage: %s {HOST|URL} [PORT]' % sys.argv[0]) | |
exit(1) | |
host = sys.argv[1] | |
if '://' in host: |
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
#!/bin/bash | |
set -eo pipefail | |
DIR=$(tmutil machinedirectory) | |
backups=$(tmutil listbackups) | |
ls "$DIR" | while read subdir; do | |
if echo $subdir | grep -q '[^0-9-]'; then continue; fi | |
if echo $backups | grep -q $subdir; then continue; fi | |
dir="$DIR/$subdir" | |
if [ "$1" = -n ]; then | |
echo "$dir" |
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
#!/bin/bash | |
set -eo pipefail | |
DOMAIN=example.com | |
ENTRY=examplehost | |
#LINE_TOKEN=xxxxxx | |
get_ip() { | |
curl -s 'https://api.ipify.org' |
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
#include <CoreGraphics/CoreGraphics.h> | |
int main() | |
{ | |
return CGDisplayIsAsleep(CGMainDisplayID()); | |
} |