Skip to content

Instantly share code, notes, and snippets.

View yupix's full-sized avatar
🪄

yupix yupix

🪄
View GitHub Profile
#!/usr/bin/env bash
sudo rm -r /var/lib/rook/rook-ceph
DISK="/dev/sdb"
# Zap the disk to a fresh, usable state (zap-all is important, b/c MBR has to be clean)
# You will have to run this step for all disks.
sudo sgdisk --zap-all $DISK
@yupix
yupix / kube.sh
Last active March 5, 2024 14:08
kube.sh
#!/usr/bin/env bash
sudo apt update
sudo apt install -y curl gnupg2 software-properties-common apt-transport-https ca-certificates
read -e -r -p "Do you using a lxc container? (y/n): " -i "y" using_lxc
read -e -r -p "This node is a master? (y/N): " -i "n" is_master
export KUBERNETES_VERSION=v1.29 && export PROJECT_PATH=stable:/v1.29 && curl -fsSL https://pkgs.k8s.io/core:/stable:/$KUBERNETES_VERSION/deb/Release.key |
#!/usr/bin/env bash
rm -r /etc/pacman.d/gnupg # 既存の鍵を削除
pacman-key --init # 鍵の初期化
pacman-key --populate archlinux # デフォルトの鍵を再度追加
pacman -Syu # 更新ができるか確認
# 失敗した場合の対処法
@yupix
yupix / catarks-cookie-policy.md
Created October 8, 2023 04:37
catarks-cookie-policy
@yupix
yupix / catarks-privacy-policy.md
Last active October 8, 2023 04:25
catarks プライバシーポリシー

Catarks プライバシーポリシー

有効日: [2023/10/08]

1. プライバシーポリシーの適用範囲

このプライバシーポリシーは、Catarks(以下、「提供者」)が収集した個人情報に関するポリシーを説明します。このプライバシーポリシーは、https://catarks.org (以下、「ウェブサイト」)を訪れるすべてのユーザーに適用されます。

2. 収集される情報

@yupix
yupix / catarks-terms.md
Created October 8, 2023 03:44
CatArks 利用規約

利用規約

この利用規約(以下、「本規約」といいます。)は、AkariNext(以下、「提供者」といいます。)が提供するCatArks(以下、「サイト」といいます。)および関連するコンテンツの利用に関する条件を規定します。本サイトおよびコンテンツを利用することにより、以下の条件に同意したものとみなされます。利用前に本規約をよくお読みいただき、ご理解いただけない場合は、直ちに本サイトおよびコンテンツの利用を中止してください。

1. 提供の範囲

  • 1.1 提供者は、本サイトおよびコンテンツを提供し、利用者(以下、「ユーザー」といいます。)に対してアクセスおよび利用の機会を提供します。

  • 1.2 ユーザーは、提供者の利用規約を遵守しながらサイトおよびコンテンツを利用する責任があります。

Keybase proof

I hereby claim:

  • I am yupix on github.
  • I am yupix (https://keybase.io/yupix) on keybase.
  • I have a public key whose fingerprint is 01D3 26CF CC23 4C2D 2736 C880 28C0 9B18 E03A 9ECF

To claim this, I am signing this object:

@yupix
yupix / ioredis.ts
Created January 2, 2023 13:08
ioredisがesmodule環境で型が付かなかた時の最終手段
const Redis = require("ioredis");
import type { RedisOptions, Redis as TRedis } from "ioredis";
export const redis: TRedis = new Redis({
host: config.redis.host,
port: config.redis.port,
} as RedisOptions);
@yupix
yupix / python-snippets.json
Created August 29, 2022 20:07
VSCodeでPython使うときのSnippets
{
"property": {
"prefix": "@property",
"body": [
"@property",
"def ${1:name}(${2:args}) -> ${3:str}:",
" ${4:...}"
],
"description": "property"
}
version: '3'
services:
db:
image: postgres:14
container_name: postgres
ports:
- 5432:5432
volumes:
- db-store:/var/lib/postgresql/data