Skip to content

Instantly share code, notes, and snippets.

View buty4649's full-sized avatar

buty4649 buty4649

View GitHub Profile
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: MaasCluster
metadata:
name: b8s
namespace: default
spec:
dnsDomain: b-net.local
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
[Unit]
Description = Gnome Kering Daemon
[Service]
EnvironmentFile = -%h/.config/gnome-keyring-daemon.conf
ExecStart = %h/.config/systemd/user/start-gnome-keyring-daemon
Restart = always
[Install]
WantedBy = graphical-session-pre.target
<entry>
<version>3.2.0</version>
<url>https://github.com/buty4649/mruby-api-docset/releases/download/3.2.0/mruby-3.2.0-api.tgz</url>
<icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAADS0lEQVQ4jTWPW2xTZQCAv/+c08s5PaXttt5s19mNMYkJcQ5QtmxB8DLMfCGCgUjiLcZE340hgLwg74ZnwQcTZ5jTmGhUMpWEIJIJuIu6LWOy2XZs7br1tOs5O/19EL7370s+IaXkIWeFUM5I2QC4KPydrdTfVMLRQ0bPY+bczavCLqPYoN2F+zn44BMpvxMPA18IoR6R0gUYEeJ8GN73AKtAKp0k0LuXaqKNqV9vsDAzw1xxjXXcLg3gqBDqsJSuEMI/DN9noH8RsMGpgZodGsKIhincnmBJ94mfa1Y9rgq/7tKvnRVCeSBrF+FaErpzfupq0PSKhtcjV4vomgciTThff8tOYNXn19bcLTSoK2ce/F8QfN6VaupegbqWyfiU5qiwq0XiwPYTJwh0dGI+3Y1umjxR3xQxwIJ1DSkbJ4V4dSASPOykU85WZdMXTCapo6D8Oc/OD09zZeRLtL/+RpaqrFaqLICY/39xTQNIwClvtIWtUFhBN2jZf4CJjy/Q+fZbLP5xhyuXRykABwEFcEHYgQDSssrKqZ6eoRbY4UQirhZLqG3vvsfKcpHs0VfwB7zcvTxKRyxO1mNQFgZh1ZSh9g5hKYoTgrI2sPfJ48XxcbxP9cm2F57DawZpVCr4Vbg2+BIC8C0XyJgRhFMi0TtAoL+Pr859ZO3at29dqfwyFkk+04u1dE+Ubt1iy3ZQrRqVf/PE3nmDYDpBSDMxKiWiQGbweenL3yMDG+l0uqKNT80ZgwcOkr6fZ/Lkaez9/biFFdqnp1nesxtfNE59MU/00Ivsev01Sp99Sun2ddKwdmR42NaKYI78dJXDyWY
@buty4649
buty4649 / mkr_inventry.rb
Last active December 21, 2022 03:49
Mackerel APIを使ってサーバインベントリ収集を行うスクリプト
#!/usr/bin/env ruby
# MIT License
#
# Copyright (c) 2022 buty4649
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@buty4649
buty4649 / boot.py
Last active September 14, 2022 03:04
Sparrow62(+1)用のキーマップ
import supervisor
import board
import digitalio
import storage
import usb_cdc
supervisor.set_next_stack_limit(4096 + 4096)
# disable USB storage, CDC
@buty4649
buty4649 / ansi2irc-color.pl
Created January 23, 2015 09:50
ANSIカラーコードからIRCカラーコードに変換する奴
#!/usr/bin/env perl
use strict;
my @t = qw/1 5 3 7 2 6 10 14 15 4 9 8 12 13 11 0/;
while(<STDIN>) {
s/\e\[0m//g;
s/\e\[(\d\d)m/"\x03".$t[$1-30]/ge;
print;
@buty4649
buty4649 / cloud-init-docker-setup.yaml
Created December 27, 2021 03:18
multipass launch --cloud-init cloud-init-docker-setup.yaml
#cloud-config
timezone: Asia/Tokyo
locale: ja_JP.utf8
runcmd:
- apt-get remove -y docker docker-engine docker.io containerd runc
- apt-get update -y
- apt-get install-y ca-certificates curl gnupg lsb-release
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- apt-get update
>>> pd = pd.DataFrame({'a':[1,2,3], 'b':[10,20,30], 'c':[100,200,300]}
>>> pd["a"]
0 1
1 2
2 3
Name: a, dtype: int64
>>> pd["a"].head(1)
0 1
Name: a, dtype: int64
@buty4649
buty4649 / settings.json
Created July 7, 2020 14:43
VSCodeVimで <details>〜</details>で括るやつ
"vim.visualModeKeyBindings": [
{
"before": ["<C-d>"],
"after": ["d", "o",
"<","d","e","t","a","i","l","s",">","<CR>",
"<","s","u","m","m","a","r","y",">","<","/","s","u","m","m","a","r","y",">","<CR>","<CR>",
"<","/","d","e","t","a","i","l","s",">","<","b","r",">","<ESC>","k","p","k","k","9","l"
]
}
]
@buty4649
buty4649 / gist:e858370ad8f87a066694e462bd2156cd
Last active July 6, 2020 16:26
引越し費用(2020年7月)

前提

引越し費用を見積もりにあたり、今回の場合以下のような前提条件があったのを最初に書いておく。 同じ条件でも変わることもあると思うので参考程度に。

  • 新居のオーナー特典で提携引越し業者を使うと様々な特典を得られた
    • 割引(20〜25%)
    • 資材が無料(ダンボールN箱無料など)
    • などなど
  • 同じ区内の引越し