Skip to content

Instantly share code, notes, and snippets.

View nacika-ins's full-sized avatar
:octocat:

nacika nacika-ins

:octocat:
View GitHub Profile
@nacika-ins
nacika-ins / keybindings.json
Created December 21, 2020 07:35
VSCode 設定ファイル (SublimeText仕様) 2020/12/21
[
{
"key": "cmd+shift+v",
"command": "editor.action.clipboardPasteAction"
},
{
"key": "ctrl+d",
"command": "editor.action.deleteLines"
},
{
@nacika-ins
nacika-ins / Dockerfile
Created August 27, 2018 15:55
rpi用設定
-------
# Version
ARG MASTODON_VERSION=2.5.0rc1
# に変更
-------
@nacika-ins
nacika-ins / mastdon-docker-rpi.md
Created August 22, 2018 07:10 — forked from mamemomonga/mastdon-docker-rpi.md
Raspberry Pi の Docker で Mastodon を動かす(検証中)

Raspberry Pi の Docker で Mastodon を動かす(検証中)

Docker のインストール

$ curl https://get.docker.com/ | sh
$ sudo sh -c 'usermod -a -G docker $SUDO_USER'

再ログイン

念のためスワップを有効にする

### Keybase proof
I hereby claim:
* I am nacika-ins on github.
* I am nacika (https://keybase.io/nacika) on keybase.
* I have a public key ASDbOqWqOZwxjsr42xs8N56DJYkLX5ryNE1YWSWewdxOnAo
To claim this, I am signing this object:
@nacika-ins
nacika-ins / Dockerfile
Created June 2, 2017 08:54
wordpress-docker
FROM ubuntu:latest
RUN apt-get -y update
RUN echo "mysql-server mysql-server/root_password password root" | debconf-set-selections && \
echo "mysql-server mysql-server/root_password_again password root" | debconf-set-selections && \
apt-get -y install mysql-server net-tools
RUN apt-get -y install php php-mysql nginx php-fpm wget vim
RUN apt-get install -y iputils-ping lsof
@nacika-ins
nacika-ins / main.js
Last active May 17, 2020 11:32
マストドン音声読み上げ v3対応 (MITライセンス)
(function () {
const synth = window.speechSynthesis;
const home = document.querySelector('.item-list[role="feed"]')
const observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
const name = (mutation.addedNodes[0].querySelector(".display-name strong").textContent || "")
.replace(/@/g, "アットマーク")
;
const text = (mutation.addedNodes[0].querySelector("p").textContent || "")
.replace(/https?:\/\/[\w/:%#\$&\?\(\)~\.=\+\-]+/g, "")
#!/bin/bash
# usage
#------------------------------------------------------------
# ./mk_ws.sh --name hoge --port 8882
args=$(getopt -l "name:" -l "port:" -o "n:" -o "p:" -- "$@")
eval set -- "$args"
while [ $# -ge 1 ]; do
case "$1" in
#!/bin/bash
# usage
#------------------------------------------------------------
# ./mk_ws.sh --name hoge --port 8882
args=$(getopt -l "name:" -l "port:" -o "n:" -o "p:" -- "$@")
eval set -- "$args"
while [ $# -ge 1 ]; do
case "$1" in
@nacika-ins
nacika-ins / hoge.md
Created June 5, 2016 15:17
<GVRCardboardViewDelegate> Protocol
(void) 	- cardboardView:didFireEvent:
 	ユーザーイベントが発生したときに呼び出されます
(void) 	- cardboardView:willStartDrawing:
 	最初のフレームが描画される前に呼ばれます
(void) 	- cardboardView:prepareDrawFrame:
 	各フレームの開始前に繰り返し呼ばれます
(void) 	- cardboardView:drawEye:withHeadTransform:
 	OpenGL レンダリングを実行するために、各フレーム毎に呼び出されます
(void) - cardboardView:shouldPauseDrawing:
@nacika-ins
nacika-ins / gist:5f26956b7f57b4c7f5d99438bda80f87
Last active September 21, 2017 10:44
circle-ci-docker-1.10.0
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
pre:
- pip install docker-compose
test: