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
| CHIP SHOT: SUPER PRO GOLF | |
| (c)1987 INTV CORP. | |
| DR: 240-300 YARDS | |
| 3W: 220-260 | |
| 1I: 210-220 | |
| 2I: 200-210 | |
| 3I: 190-200 | |
| 4I: 180-190 | |
| 5I: 170-180 |
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
| #!/opt/local/bin/port-tclsh | |
| set ver {2021.12.02} | |
| set author {Matt Sephton @gingerbeardman} | |
| package require cmdline | |
| set parameters { | |
| {encoding.arg macJapan "source encoding, default:"} | |
| {list "list encodings"} |
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 zsh | |
| autoload colors; colors | |
| cd "~/Documents/CD-ROMs" | |
| rm *.txt | |
| catalogue() { | |
| while read -r iso; do | |
| directory=$(dirname "$iso") |
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 | |
| # by Matt Sephton @gingerbeardman | |
| # dependencies: p7zip, pipx, osxmetadata | |
| # $ brew install p7zip | |
| # $ brew install pipx | |
| # $ pipx install osxmetadata | |
| # check your PATH and confirm operation |
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 | |
| # by Matt Sephton @gingerbeardman | |
| # requires SynoCommunity ffmpeg to be installed | |
| log="/volume1/video/Scripts/remux.log" | |
| bin="/volume1/video/#recycle/" | |
| work="/volume1/video/Scripts/" | |
| export log |
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 | |
| # by Matt Sephton @gingerbeardman | |
| # requires SynoCommunity ffmpeg to be installed | |
| log="/volume1/video/Scripts/faststart.log" | |
| work="/volume1/video/Scripts/" | |
| start="../" | |
| export log |
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
| function FindProxyForURL(url, host) { | |
| // send hoyoyo requests to the proxy | |
| if (shExpMatch(host, "*.hoyoyo.com|*.hoyoyo-cache.com")) return "PROXY 12.34.56.78:90"; | |
| // leave all other accesses untouched | |
| return "DIRECT"; | |
| } |
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
| // href and title are required | |
| // everything else is an optional named group, using format \s*(ATTR="(?P<attr>.*?)")? | |
| $pattern = '|<DT><A HREF="(?P<href>.*?)"\s*(ADD_DATE="(?P<add_date>.*?)")?\s*(LAST_MODIFIED="(?P<last_modified>.*?)")?\s*(ICON_URI="(?P<icon_uri>.*?)")?\s*(ICON="(?P<icon>.*?)")?\s*(PRIVATE="(?P<private>.*?)")?\s*(TOREAD="(?P<toread>.*?)")?\s*(TAGS="(?P<tags>.*?)")?>(.*?)</A>|'; | |
| $string = file_get_contents("bookmarks.html"); | |
| preg_match_all($pattern, $string, $matches, PREG_PATTERN_ORDER); // all pattern matches get their own sub-array | |
| $array_filtered = array_filter($matches, "is_string", ARRAY_FILTER_USE_KEY); // keep only named arrays (our groups) | |
| echo count($array_filtered[href]); // show count |
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
| * { | |
| display: none !important; | |
| } |
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
| function FindProxyForURL(url, host) { | |
| if ( | |
| dnsDomainIs(host, "storage-yahoo.jp") || | |
| dnsDomainIs(host, "yahooapis.jp") || | |
| dnsDomainIs(host, "yimg.jp") || | |
| dnsDomainIs(host, "yahoo.co.jp") | |
| ) return "PROXY 12.34.56.78:8888"; | |
| return "DIRECT"; | |
| } |