This file contains 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/python3 | |
from functools import partial | |
def colors16(): | |
for bold in [0, 1]: | |
for i in range(30, 38): | |
for j in range(40, 48): | |
print(f'\x1b[{bold};{i};{j}m {bold};{i};{j} |\x1b[0m', end='') | |
print() |
This file contains 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
const iTunes = Application('iTunes') | |
const app = Application.currentApplication() | |
app.includeStandardAdditions = true | |
const hookURL = 'https://misskey-hook.firebaseapp.comで取得して' | |
function getTrack(iTunes) { | |
return iTunes.currentTrack() | |
} | |
function getTrackData(iTunes) { |
This file contains 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
brew install mp4box | |
brew install ffmpeg --with-fdk-aac --with-tools --with-freetype --with-libass --with-libvorbis --with-libvpx --with-x265 --HEAD | |
ffmpeg -i input.mov -c:v libx265 -c:a aac -preset ultrafast -an -x265-params crf=25 video.mp4 | |
ffmpeg -i input.mov -c:a libfdk_aac -profile:a aac_he_v2 audio.aac | |
mp4box -add audio.aac -add video.mp4 output.mp4 | |
ffmpeg -i output.mp4 -vcodec copy -acodec copy -tag:v hvc1 output_apple.mp4 |
This file contains 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 ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" |
This file contains 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
ERROR = -1 | |
SUCCESS = 0 | |
OUTDATED = 1 | |
APPLYING = 2 | |
ACCESS_LIMITATION = 3 | |
TERMS_UPDATED = 4 | |
MAINTENANCE = 10 | |
UNAVAILABLE = 20 | |
OUTDATED_AB_VERSION = 30 | |
INVALID_REQUEST_HASH = 101 |