Skip to content

Instantly share code, notes, and snippets.

View Na0ki's full-sized avatar
🤔
thinking

ahiru Na0ki

🤔
thinking
View GitHub Profile
@Na0ki
Na0ki / Dockerfile.patchelfpoc
Last active June 3, 2025 13:24
patchelfの挙動確認するのに使った色々
FROM debian:bookworm
RUN apt-get update
RUN apt-get install -y gcc g++ make software-properties-common curl wget vim patchelf file
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
CMD ["/bin/bash"]
@Na0ki
Na0ki / client_sample.rb
Last active June 25, 2025 23:18
接続検証サンプル(再現)
require 'net/http'
require 'openssl'
uri = URI('https://host.docker.internal:8443/')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
# 自己署名許可
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
@Na0ki
Na0ki / react-fullcalendar-playground.tsx
Created April 9, 2025 23:33
fullcalendarお試し
import React, { FC, useState } from 'react';
import FullCalendar from '@fullcalendar/react';
import { DateSelectArg, EventInput, EventDropArg } from '@fullcalendar/core';
import timeGridPlugin from '@fullcalendar/timegrid';
import interactionPlugin from '@fullcalendar/interaction';
import jaLocale from '@fullcalendar/core/locales/ja';
export const CalendarComponent: FC = () => {
const [events, setEvents] = useState<EventInput[]>([]);
@Na0ki
Na0ki / index.html
Created April 1, 2025 23:31
visjs使ったネットワークグラフのお試し
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Skill Graph</title>
<script type="text/javascript" src="https://unpkg.com/vis-network/standalone/umd/vis-network.min.js" defer></script>
<script src="./index.js" defer></script>
<style type="text/css">
@Na0ki
Na0ki / auto_pr_develop.sh
Created March 24, 2025 14:20
sprint/xxxブランチからdevelopブランチへPRを作るやつ
#!/bin/bash
SPRINT_NUM="$(git branch --remote --list "origin/sprint/*" | awk -F '/' '{print $3}' | sort -n -r | head -1)"
echo "sprint/$SPRINT_NUM"
gh pr create --base develop --head "sprint/$SPRINT_NUM" --title "sprint/$SPRINT_NUM -> main" --body "検証反映"
@Na0ki
Na0ki / cloudbuild.yml
Created February 19, 2025 00:02
precompile結果もアップ可能にしたやつ。最後のビルドがレイヤーキャッシュ使ってないので効率は悪い。
steps:
- id: install-deps
name: node:22.14.0
entrypoint: npm
args:
- ci
- id: build-bundle
name: node:22.14.0
entrypoint: npm
@Na0ki
Na0ki / cloudbuild.yml
Created February 17, 2025 23:59
precompile-assetsフェーズでpermissionエラーパターン
steps:
- id: install-deps
name: node:22.14.0
entrypoint: npm
args:
- ci
- id: build-bundle
name: node:22.14.0
entrypoint: npm
@Na0ki
Na0ki / cloudbuild.yml
Last active February 17, 2025 01:17
cloudbuildで静的アセットをcloud storageにアップするやつ
steps:
- name: 'node:22.14.0'
entrypoint: 'npm'
args: ['install']
- name: 'node:22.14.0'
entrypoint: 'npm'
args: ['run', 'build:prod']
# Cloud Storageにアップロードする
@Na0ki
Na0ki / mikutter-don-icon.html
Created December 11, 2022 13:10
mikutterサーバーの丼アイコン錬成するのに使ったやつ
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="https://stuk.github.io/jszip/dist/jszip.js"></script>
<script type="text/javascript" src="https://stuk.github.io/jszip/vendor/FileSaver.js"></script>
<title>アイコンジェネレータ</title>
</head>