Skip to content

Instantly share code, notes, and snippets.

View peccu's full-sized avatar
🦉
Information is the network

peccu peccu

🦉
Information is the network
View GitHub Profile
@peccu
peccu / README.md
Created October 10, 2023 23:57
LaTeX test

LaTeX suported?

Inline $\sum_1^nn = \frac{1}{2}n(n+1)$ equation looks wierd, but display style $\displaystyle\sum_1^nn = \frac{1}{2}n(n+1)$ looks good.

Block equation looks good too.

$$ \sum_1^nn = \frac{1}{2}n(n+1) $$

@peccu
peccu / Dockerfile
Last active March 29, 2023 09:20
build tmux for multiple environment
FROM alpine as alpine
ENV os=alpine
RUN apk add bash
RUN bash -c 'ps -u $(id -u) -o "comm pid" 2>/dev/null || ps -o "comm,pid"' > /tmp/$os 2>&1
FROM debian:stable-slim as debian
ENV os=debian
RUN apt-get update && apt-get install -y procps
RUN bash -c 'ps -u $(id -u) -o "comm pid" 2>/dev/null || ps -o "comm,pid"' > /tmp/$os 2>&1
RUN apt-get install -y curl libevent-dev ncurses-dev build-essential bison pkg-config
@peccu
peccu / TurnipPrices.cpp
Last active May 11, 2020 00:42 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{
@peccu
peccu / Dockerfile
Created January 7, 2020 03:28
docker-compose for plantuml-editor
FROM node:13.5 as build
ARG VUE_APP_CDN
ARG VUE_APP_URL
ARG VUE_APP_SERVER
COPY . /app
WORKDIR /app
RUN npm i && npm run flow-typed
RUN npm run build
@peccu
peccu / .env
Created October 4, 2019 09:03
docker-compose.ymlでpgbouncerを利用するサンプル
DATABASES_HOST=hostname-of-database
DATABASES_USER=database-user-name
DATABASES_PASSWORD=database-password
@peccu
peccu / index.html
Last active July 13, 2019 15:22
Send Something to Little Printer (Using device.li key)
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<style>
@import url("style.css");
</style>
</head>
<div id="app">
<div class="contact">
<h1>Little Printer bypass</h1>
@peccu
peccu / README.md
Last active October 6, 2023 03:41
`git add -p` and `git flow` for CoreOS using docker

Usage

put g and git-flow into $PATH and chmod +x them.

git add -p

g is git using docker.

$ g add -p
@peccu
peccu / diff.diff
Created October 29, 2018 00:02
LC_ALL are missing in gitbucket
--- run_gitbucket-not_work.sh 2018-10-29 09:00:05.985129514 +0900
+++ run_gitbucket_work.sh 2018-10-10 14:26:07.023880573 +0900
@@ -1,5 +1,5 @@
#!/bin/sh
-/usr/bin/java \
+LC_ALL=en_US.UTF-8 /usr/bin/java \
-Dhttp.proxyHost=proxy.example.com \
-Dhttp.proxyPort=8080 \
-Dhttps.proxyHost=proxy.example.com \
@peccu
peccu / event-keycode-tester.markdown
Created May 30, 2018 02:50
event.keyCode tester