Skip to content

Instantly share code, notes, and snippets.

🦉
Information is the network

peccu peccu

🦉
Information is the network
Block or report user

Report or block peccu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@peccu
peccu / Dockerfile
Created Jan 7, 2020
docker-compose for plantuml-editor
View Dockerfile
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 Oct 4, 2019
docker-compose.ymlでpgbouncerを利用するサンプル
View .env
DATABASES_HOST=hostname-of-database
DATABASES_USER=database-user-name
DATABASES_PASSWORD=database-password
@peccu
peccu / index.html
Last active Jul 13, 2019
Send Something to Little Printer (Using device.li key)
View index.html
<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 Jan 10, 2019
`git add -p` and `git flow` for CoreOS using docker
View README.md

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 Oct 29, 2018
LC_ALL are missing in gitbucket
View diff.diff
--- 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 / README.md
Last active May 28, 2018
mozilla/send docker-compose.yml
View README.md
@peccu
peccu / README.md
Created Apr 17, 2018
generate password command using sethvargo/go-password
View README.md

genpass

Install

  • go get github.com/sethvargo/go-password
  • git clone this repo
  • go build path/to/genpass.go
  • move genpass to your PATH
@peccu
peccu / chat.js
Last active Sep 21, 2017
send stdin or arguments to slack like chat via webhook
View chat.js
#!/usr/bin/env node
/* references
- [How to get node.js HTTP request promise without a single dependency](https://www.tomas-dvorak.cz/posts/nodejs-request-without-dependencies/)
- [Process | Node.js v8.5.0 Documentation](https://nodejs.org/api/process.html#process_process_stdin)
- stdin
- [HTTP | Node.js v8.5.0 Documentation](https://nodejs.org/docs/latest/api/http.html#http_http_request_options_callback)
- request
- [URL | Node.js v8.5.0 Documentation](https://nodejs.org/docs/latest/api/url.html)
- parse url
View start-clack.ros
#!/bin/sh
#|-*- mode:lisp -*-|#
#| <Put a one-line description here>
exec ros -Q -- $0 "$@"
|#
(progn ;;init forms
(ros:ensure-asdf)
#+quicklisp (ql:quickload '(:clack) :silent t)
)
You can’t perform that action at this time.