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
// ==UserScript== | |
// @name YouTube Custom CSS | |
// @namespace https://github.com/u1-liquid | |
// @version 1.0.0 | |
// @description YouTube上で特定要素を非表示/スタイルを調整 | |
// @grant GM_addStyle | |
// @author u1-liquid | |
// @source https://gist.github.com/u1-liquid/6e768d1761ec4abed9815268fabcae43 | |
// @match https://www.youtube.com/* | |
// @run-at document-idle |
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
// ==UserScript== | |
// @name VOICEVOX TTS for Google Meet | |
// @namespace https://github.com/u1-liquid | |
// @version 1.0.3 | |
// @description Google Meetのチャット送信メッセージをローカルのVOICEVOXで読み上げる | |
// @grant GM_xmlhttpRequest | |
// @author u1-liquid | |
// @source https://gist.github.com/u1-liquid/da1a04abf7a69f7229d107b03655b751 | |
// @match https://meet.google.com/* | |
// @run-at document-body |
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
// ==UserScript== | |
// @name VOICEVOX TTS for Gather.Town | |
// @namespace https://github.com/u1-liquid | |
// @version 1.0.5 | |
// @description Gather.Townのチャット送信メッセージをローカルのVOICEVOXで読み上げる | |
// @grant GM_xmlhttpRequest | |
// @author u1-liquid | |
// @source https://gist.github.com/u1-liquid/088e54bdc31a1b5845e5dd3b8961fac6 | |
// @match https://app.gather.town/* | |
// @run-at document-body |
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
CREATE OR REPLACE FUNCTION base36_decode(IN base36 varchar) | |
RETURNS bigint AS $$ | |
DECLARE | |
a char[]; | |
ret bigint; | |
i int; | |
val int; | |
chars varchar; | |
BEGIN | |
chars := '0123456789abcdefghijklmnopqrstuvwxyz'; |
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/sh | |
# https://unix.stackexchange.com/a/522127 | |
cat /proc/net/fib_trie | awk '/32 host/ { print f } {f=$2}' | sort | uniq | grep -v 127.0.0.1 |
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
#Requires -RunAsAdministrator | |
Write-Output "Update DoH settings ..." | |
$baseRegistryPath = "HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\InterfaceSpecificParameters" | |
if (Test-Path $baseRegistryPath) { | |
Remove-Item -Path $baseRegistryPath -Recurse -Force 2>&1 | Out-Null | |
} | |
$adapters = Get-NetAdapter -IncludeHidden | Where-Object {$_.Status -ne 'Not Present'} |
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 | |
apt-get update | |
dpkg --get-selections | grep deinstall | awk '{print $1}' | xargs apt-get --yes purge | |
apt-get --yes --ignore-hold --with-new-pkgs --allow-change-held-packages upgrade | |
apt-get --yes --ignore-hold --allow-change-held-packages dist-upgrade | |
apt-get --yes --purge autoremove | |
dpkg --get-selections | grep deinstall | awk '{print $1}' | xargs apt-get --yes purge | |
# vmware-modconfig --console --install-all |
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
private static final DateTimeFormatter universalDateTimePattern = DateTimeFormatter.ofPattern("[y-M-d[[' ']['T'][H[:m[:s[.SSSSSS][.SSS][.S]]]][' '][VV][zzz][OOOO][XXXXX]]][H[:m[:s[.SSSSSS][.SSS][.S]]]]"); | |
public static ZonedDateTime parseDateTime(String dateTime) { | |
try { | |
TemporalAccessor temporal = universalDateTimePattern.parseBest(dateTime, ZonedDateTime::from, OffsetDateTime::from, LocalDateTime::from, LocalDate::from, LocalTime::from); | |
if (temporal instanceof ZonedDateTime) return (ZonedDateTime) temporal; | |
else if (temporal instanceof OffsetDateTime) return ((OffsetDateTime) temporal).atZoneSameInstant(ZoneId.systemDefault()); | |
else if (temporal instanceof LocalDateTime) return ((LocalDateTime) temporal).atZone(ZoneId.systemDefault()); | |
else if (temporal instanceof LocalDate) return ((LocalDate) temporal).atStartOfDay(ZoneId.systemDefault()); | |
else if (temporal instanceof LocalTime) return ((LocalTime) temporal).atDate(LocalDate.now()).atZone(ZoneId.systemDefault()); |
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
[Unit] | |
Description=Cleanup Meilisearch Tasks Database | |
After=meilisearch.service | |
[Service] | |
Type=oneshot | |
ExecStart=curl -v -H 'Authorization: Bearer MASTER_KEY' -X DELETE 'http://127.0.0.1:7700/tasks?statuses=failed,canceled,succeeded' | |
User=meilisearch | |
Group=meilisearch |
NewerOlder