Skip to content

Instantly share code, notes, and snippets.

View buty4649's full-sized avatar

buty4649 buty4649

View GitHub Profile
@buty4649
buty4649 / meta-release
Last active September 30, 2024 05:40
Ubuntu 22.04から24.04にdo-release-upgradeするためのmeta-releaseファイル see. https://tech.buty4649.net/entry/2024/04/26/182642
Dist: warty
Name: Warty Warthog
Version: 04.10
Date: Wed, 20 Oct 2004 07:28:17 UTC
Supported: 0
Description: This is the warty warthog release
Release-File: http://old-releases.ubuntu.com/ubuntu/dists/warty/Release
Dist: hoary
Name: Hoary Hedgehog
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 / 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箱無料など)
    • などなど
  • 同じ区内の引越し