const http = require('http');
const https = require('https');
const http2 = require('http2');
const s = http.createServer((req, res) => { });
s.listen(PORT, ADDRESS);
const options = {key: KEY, cert: CERT};
const stls = https.createServer(options, (req, res) => { });
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
| export HISTFILESIZE=10000 | |
| export SAVEHIST=10000 | |
| if [ -e $HOME/bin ] | |
| then | |
| export PATH=$PATH:$HOME/bin | |
| fi | |
| if which -s node | |
| 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
| (setopt null_glob; | |
| for collection in \ | |
| "Very Fast 720p30 --subtitle=none" \ | |
| "HQ 720p30 Surround --subtitle=none" \ | |
| "Very Fast 480p30 --encoder=x265_10bit --subtitle=none" \ | |
| "HQ 1080p30 Surround --encoder=x265_10bit --subtitle=none"; do | |
| preset=${collection%% --*} hbargs=${collection#$preset } | |
| dest=(/Volumes/galactica/Public/Video/*/"$collection"{,/*}) | |
| src=(/Volumes/Nostromo/Rip/Blu*Rip{,/*} /Volumes/Archive*/Video/*/Blu*Rip{,/*}) | |
| [[ "$preset" != "*1080*" ]] && src=($src /Volumes/Nostromo/Rip/DVD*Rip /Volumes/Archive*/Video/*/DVD*Rip) |
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
| console.image = function(url, scale) { | |
| scale = scale || 1; | |
| var img = new Image(); | |
| img.onload = function() { | |
| const width = this.width * scale; | |
| const height = this.height * scale; | |
| console.log("%c+", `font-size:1px; padding:${Math.floor(height/2)}px ${Math.floor(width/2)}px; line-height:${height}px; background: url(${url}); background-size:${width}px ${height}px; color: transparent;`); | |
| }; | |
| img.src = url; | |
| }; |
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
| tell application "Music" | |
| repeat with trk in selection | |
| set oldName to name of trk | |
| set prefix to (artist of trk) & " - " | |
| if oldName starts with prefix then | |
| set len to length of oldName | |
| set newName to (get characters (get length of prefix) thru len of oldName as string) | |
| set name of trk to newName | |
| end if | |
| end repeat |
OlderNewer