Skip to content

Instantly share code, notes, and snippets.

View KEINOS's full-sized avatar

KEINOS KEINOS

View GitHub Profile
@KEINOS
KEINOS / Main.php
Last active August 15, 2017 13:30
Test gist to workaround fork, clone, push, pull, request, sync to github and etc.
<?php
$str1 = 'this is blank1.';
$str2 = 'this is blank2.';
include('script1.php');
include('script2.php');
// sample change 20170815-0131
// sample change from GitHub 20170815-0229
@KEINOS
KEINOS / gistColaboration.md
Last active August 15, 2017 13:18 — forked from maglietti/gistColaboration.md
How to collaborate on a gist / Gistで友達とコラボレーション(共同作業)する方法

To collaborate on a gist:

  1. Clone your gist repo locally
  2. Add your friend’s fork as a remote. e.g. if your friend is named Cindy:
    git remote add-url cindy https://gist.github.com/cindy/df03bdacaef75a80f310
  3. Fetch your friend’s commits: git fetch cindy/master
  4. Merge your friend’s changes into your repo: git merge cindy/master
  5. Push the changes back to GitHub: git push origin/master
@KEINOS
KEINOS / Main.php
Last active August 15, 2017 13:49 — forked from Haru-GitHub/Main.php
Sample gist to practice collaborating.
<?php
// initial file
// added from paiza.IO.
@KEINOS
KEINOS / Error_20180816.log
Created August 16, 2017 05:50
[Error Log] While `Sync/Push` a directory on to Gist.
2017-08-16 10:48:23.348 GitHub Desktop Login[xxxxx:xxxxxxx] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Username for 'https://gist.github.com': "
)
2017-08-16 10:48:23.412 GitHub Desktop Login[xxxxx:xxxxxxx] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Password for 'https://xxxx@sample.com@gist.github.com': "
)
Counting objects: 4, done.
Delta compression using up to 4 threads.
@KEINOS
KEINOS / mastodon-installer-for-Raspbian-at-RaspberryPi3.sh
Last active September 6, 2017 05:25
[WORKING][Alpha] A one-liner installer of Mastodon Instance to RaspberryPi3+Raspbian Jessie Lite
#!/bin/bash
echo
echo "-----------------------------"
echo " ╔╦╗╔═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗╔╗╔"
echo " ║║║╠═╣╚═╗ ║ ║ ║ ║║║ ║║║║"
echo " ╩ ╩╩ ╩╚═╝ ╩ ╚═╝═╩╝╚═╝╝╚╝"
echo " Mastodon Installer for"
echo " Raspbian ( Jessie Lite )"
echo " at Raspberry Pi 3"
echo "-----------------------------"
@KEINOS
KEINOS / 00_Main.php
Last active September 14, 2017 06:35
[Working] Mastodon shell installer generator
<?php
////////////////////////////////////////////////////////////////////////////////
//
// EN: Generator of shell installer for Mastodon instance.
// JA: マストドン・インスタンスのShellインストーラー・ジェネレーター
//
////////////////////////////////////////////////////////////////////////////////
// See how it works online / オンラインでの動作確認
// https://paiza.io/projects/DWHiedRkyO8SiGcHLhvvjQ
// Or view original source at Gist / オリジナル・ソースはGist
@KEINOS
KEINOS / ja.json
Last active September 17, 2017 12:12
Japanese Translation file for JoinMastodn.org of
{
"credits.branding": "ブランディング",
"credits.branding_text": "ロゴ、アイコン、そして象をダウンロード",
"credits.color_scheme": "Mastodonのカラースキーム",
"credits.get_press_kit": "プレスキットを入手",
"credits.sponsors": "スポンサー",
"credits.support_on_patreon": "Patreonでサポートする",
"credits.support_text": "Mastodonは自由でオープンソースです。広告、マネタイジング、ベンチャーキャピタルなどはありません。あなたの寄付がプロジェクトのフルタイムの開発を直接サポートします。",
"credits.view_sponsors": "スポンサーを表示",
"features.additional": "さらなる特徴",
@KEINOS
KEINOS / 20171127-0139_Erlang-OK.log
Last active November 26, 2017 18:28
[Error Log] While installing `Elixir` into CentOS7 at SakuraVPS with KUSANAGI
# cd ~/
# wget -O erlang.rpm http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~centos~7_amd64.rpm && yum localinstall erlang.rpm -y
--2017-11-27 01:39:39-- http://packages.erlang-solutions.com/site/esl/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~centos~7_amd64.rpm
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 31.172.186.53
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|31.172.186.53|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~centos~7_amd64.rpm [following]
--2017-11-27 01:39:40-- http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_20.1-1~centos~7_amd64.rpm
Reusing existing connection to packages.erlang-solutions.com:80.
HTTP request sent, awaiting response... 200 OK
@KEINOS
KEINOS / 20171210-1848_install-textlint.log
Created December 10, 2017 10:20
[Error Log] While installing `textlint-rule-preset-jtf-style` at `textlint` on MacOSX 10.12.6
$ # CHECK: Dependencies' version
$ # -----------------------------------------------------
$ sw_vers -productVersion
10.12.6
$ system_profiler SPSoftwareDataType
Software:
System Software Overview:
System Version: macOS 10.12.6 (16G1036)
@KEINOS
KEINOS / 20171219-0055_install_Python3.6.3.log
Last active December 18, 2017 16:36
[Error Log] While installing Python 3.6 to CentOS7 at SakuraVPS with KUSANAGI via pyenv(Missing bzip2, GNU readline, SQLite3)
[root@kusanagiXX ~]# ###########################################################
[root@kusanagiXX ~]# # How to prevent these 3 WARNINGS during installing Python
[root@kusanagiXX ~]# #
[root@kusanagiXX ~]# # WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
[root@kusanagiXX ~]# # WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
[root@kusanagiXX ~]# # WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
[root@kusanagiXX ~]# #
[root@kusanagiXX ~]# # 参考文献: http://kite03.hatenablog.com/entry/2014/07/24/005337
[root@kusanagiXX ~]# # 参考文献: https://boomin.yokohama/archives/142
[root@kusanagiXX ~]# ###########################################################