Skip to content

Instantly share code, notes, and snippets.

View mikan-megane's full-sized avatar
🍊

蜜柑ルーペ mikan-megane

🍊
View GitHub Profile
return (async () => {
// 優先順位(指定外は最優先)
const DomainOrder = this.quicktext.variables[0]
.split(",")
.map((domain) => domain.trim());
let { to, cc } = await this.compose.getComposeDetails();
DomainOrder.toReversed().forEach((domain) => {
const otherTo = to.filter((address) => !address.includes(domain));
if (otherTo.length) {
@mikan-megane
mikan-megane / Dockerfile
Created September 15, 2024 16:15
AArch64環境でFEX-Emuを使ってSteamCMDを使えるようにするDockerfile
FROM alpine AS clone
RUN apk add --no-cache git curl jq
RUN LAST_RELEASE=$(curl https://api.github.com/repos/FEX-Emu/FEX/releases/latest -s | jq .name -r) \
&& git clone -b $LAST_RELEASE --depth=1 --recurse-submodules --shallow-submodules -j4 https://github.com/FEX-Emu/FEX.git /opt/FEX
FROM alpine AS rootfs
RUN apk add --no-cache curl squashfs-tools jq
RUN URL="$(curl https://rootfs.fex-emu.gg/RootFS_links.json | jq -r '.v1["Ubuntu 22.04 (SquashFS)"].URL')" && \
curl "$URL" > /Ubuntu_22_04.sqsh && \
@mikan-megane
mikan-megane / Dockerfile
Last active January 23, 2024 10:11
AArch64環境のDockerでPalworld専用サーバーを立てるためのDockerファイル
FROM debian:bullseye-slim as build
ENV DEBIAN_FRONTEND="noninteractive"
# Install libraries needed to compile box
RUN dpkg --add-architecture armhf \
&& apt-get update \
&& apt-get install -y --no-install-recommends --no-install-suggests git wget curl cmake python3 build-essential gcc-arm-linux-gnueabihf libc6-dev-armhf-cross libc6:armhf libstdc++6:armhf ca-certificates
WORKDIR /root
@mikan-megane
mikan-megane / Playlist2Comment.ps1
Last active July 20, 2021 09:38
プレイリスト名をコメントに入れる奴 for windows
Write-Progress -Id 1 -Activity "iTunes起動中・・・"
$iTunes = New-Object -comObject iTunes.Application
$Comments = @{}
$Tracks = $iTunes.LibraryPlaylist.Tracks
Write-Progress -Id 1 -Activity "コメント取得中" -Status "3/1" -PercentComplete (1 / 3 * 100)
$max = $Tracks.Count
$i = 0
foreach ($track in $Tracks) {
Write-Progress -Id 2 -Activity $track.Name -Status "$max/$i" -PercentComplete (++$i / $max * 100)
@mikan-megane
mikan-megane / Playlist2Comment.scpt
Last active March 17, 2022 12:57
プレイリスト名をコメントに入れる奴 var2.1
// 言語をjavascriptへ切り替えてご使用下さい
var app = Application.currentApplication()
app.includeStandardAdditions = true
// プレイリストのフォルダ情報を返す
function getParentPlaylist(playlist){
try{
return getParentPlaylist(playlist.parent()) + playlist.parent().name() + "/"
}catch(e){
@mikan-megane
mikan-megane / Playlist2CommentVer1.0.applescript
Last active April 21, 2018 08:57
プレイリスト名をコメントに入れる奴
-- Playlist2Comment
-- autor: @mikan_megane
-- 停止を押してもかなりオーバーランするので注意
tell application "iTunes"
set FirstRun to true
set vPlaylistCount to 0
set vErrorCount to 0
repeat with vPlaylist in user playlists
set vPlaylistCount to (vPlaylistCount + 1)