Skip to content

Instantly share code, notes, and snippets.

View hulk510's full-sized avatar
🥰
なんか作りたい

Haruka hulk510

🥰
なんか作りたい
View GitHub Profile
@hulk510
hulk510 / killprocess.sh
Last active June 21, 2023 14:18
Firebase Emulatorで使ってるポートを一括で消す
#!/bin/bash
# Emulatorで使ってるポートを書く
ports=(9099 8080)
# 指定したポートを使っているプロセスをkillする
for port in "${ports[@]}"; do
pids=$(lsof -t -i :$port)
echo "Killing Port $port"
for pid in $pids; do
@hulk510
hulk510 / AuthState.swift
Last active June 28, 2023 02:37
SwiftUI SignInWithApple
import SwiftUI
import Firebase
import FirebaseAuth
class AuthState: ObservableObject {
func signIn(credential: OAuthCredential) async throws {
_ = try await auth.signIn(with: credential)
}
func deleteUser(code: String) async throws {