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
// https://ja.stackoverflow.com/questions/60182/swift-ip%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9%E3%81%AE%E5%8F%96%E5%BE%97%E6%96%B9%E6%B3%95%E3%81%A8%E3%83%96%E3%83%AA%E3%83%83%E3%82%B8%E3%83%B3%E3%82%B0%E3%83%98%E3%83%83%E3%83%80%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6 | |
func getInterfaceAddresses() -> [String: String] { | |
var first: UnsafeMutablePointer<ifaddrs>? | |
guard getifaddrs(&first) == 0, | |
let firstAddrs = first else { return [:] } | |
defer { freeifaddrs(first) } | |
var addresses: [String: String] = [:] | |
for current in sequence(first: firstAddrs, next: \.pointee.ifa_next) { |
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
import SwiftUI | |
import Combine | |
let decoder: JSONDecoder = { | |
let decoder = JSONDecoder() | |
decoder.keyDecodingStrategy = .convertFromSnakeCase | |
return decoder | |
}() | |
struct User: Decodable, Equatable, Hashable { |
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
--- PKGBUILD.org 2020-05-24 18:31:00.821773595 +0900 | |
+++ PKGBUILD 2020-05-24 02:49:29.631425029 +0900 | |
@@ -9,6 +9,7 @@ | |
_mozcver=2.23.2815.102 | |
_fcitxver=2.23.2815.102.1 | |
_neologddate=20200514 | |
+_neologdrel=1 | |
pkgver=${_mozcver}.${_neologddate} | |
pkgrel=1 | |
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
insmod efi_gop | |
menuentry "Arch Linux archiso" { | |
search --no-floppy --set=root --label ARCHISO | |
linux /arch/boot/x86_64/vmlinuz archisobasedir=arch archisolabel=ARCHISO add_efi_memmap | |
initrd /arch/boot/x86_64/archiso.img | |
} | |
menuentry '[loopback]ubuntu-ja-18.04-desktop-amd64.iso' { | |
set isofile='/boot/iso/ubuntu-ja-18.04-desktop-amd64.iso' |
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
[Unit] | |
Description=SoftEther VPN Server | |
After=network.target | |
[Service] | |
Type=forking | |
User=root | |
ExecStart=/usr/local/bin/vpnserver/vpnserver start | |
ExecStop=/usr/local/bin/vpnserver/vpnserver stop | |
Restart=on-failure |
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
diff --git a/api/script-channel-watch.vm.js b/api/script-channel-watch.vm.js | |
index d1db39f..e04492c 100644 | |
--- a/api/script-channel-watch.vm.js | |
+++ b/api/script-channel-watch.vm.js | |
@@ -69,8 +69,8 @@ Usushio では使わない | |
if (config.vaapiEnabled === true) { | |
args.push("-vaapi_device", config.vaapiDevice || '/dev/dri/renderD128'); | |
- args.push("-hwaccel", "vaapi"); | |
- args.push("-hwaccel_output_format", "yuv420p"); |
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
pkgname=tsselect | |
pkgver=1 | |
pkgrel=1 | |
pkgdesc="tsselect for Linux." | |
arch=('i686' 'x86_64') | |
url="https://github.com/shesee/tsselect-linux" | |
license=('custom') | |
depends=('') | |
makedepends=('') | |
source=(git+https://github.com/shesee/tsselect-linux) |
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
TBS6209その他録画のやつ | |
ebay から Octa Tuner TBS6209 が届いた | |
http://archive.is/4fgHj | |
Octa Tuner TBS6209 のモードを変更する | |
http://archive.is/OBlwU | |
TBS6209 + dvbv5-zap + Mirakurun + Chinachu | |
http://archive.is/Fv7u1 | |
isdbt-capture を日本の地デジに合わせた | |
http://archive.is/yNa5M |
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
#!/bin/bash | |
echo $1 | |
echo ${1%.*} | |
ffmpeg -i "$1" -map_metadata 0 -acodec libmp3lame -f mp3 "${1%.*}".mp3 |
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
#!/bin/bash | |
find . \ | |
\( -name "*.m4a" -o -name "*.mp3" -o -name "*.ogg" \) \ | |
| sort | sed -e 's/\.\///g' > list.m3u |
NewerOlder