Skip to content

Instantly share code, notes, and snippets.

KEINOS KEINOS

Block or report user

Report or block KEINOS

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
@KEINOS
KEINOS / "を追加
Last active Sep 16, 2019
逆引き!Composer コマンド・ライン一覧 ref: https://qiita.com/KEINOS/items/86a16b06af6e936a1841
View "を追加
$ composer config bin-dir bin/
@KEINOS
KEINOS / SQL文
Last active Sep 8, 2019
hashアルゴリズムとハッシュ値の長さ一覧 ref: https://qiita.com/KEINOS/items/c92268386d265042ea16
View SQL文
CREATE TABLE t(x INTEGER PRIMARY KEY ASC, y, z);
@KEINOS
KEINOS / mastodon-installer-for-CentOS7x-at-SakuraVPS.sh
Last active Sep 1, 2019
さくらのVPS+CentOS7でMastodonをインストールするシェルスクリプト。One-liner Mastodon Instance installer for CentOS7.2 on SakuraVPS.
View mastodon-installer-for-CentOS7x-at-SakuraVPS.sh
#!/bin/bash
echo ""
echo "-----------------------------"
echo " ╔╦╗╔═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗╔╗╔"
echo " ║║║╠═╣╚═╗ ║ ║ ║ ║║║ ║║║║"
echo " ╩ ╩╩ ╩╚═╝ ╩ ╚═╝═╩╝╚═╝╝╚╝"
echo " Mastodon Installer for"
echo " CentOS 7.x at Sakura VPS"
echo ""
echo ""
@KEINOS
KEINOS / md5.gs
Last active Aug 22, 2019
GAS(Google Apps Script) user function to get MD5 hash or 4digit shortened hash for Multibyte(UTF-8, 2bytes character) environment.
View md5.gs
/**
* ------------------------------------------
* MD5 function for GAS(GoogleAppsScript)
*
* You can get a MD5 hash value and even a 4digit short Hash value of a string.
* ------------------------------------------
* Usage1:
* `=MD5("YourStringToHash")`
* or
* `=MD5( A1 )` with the same string at A1 cell
@KEINOS
KEINOS / mondorescue-installer-for-CentOS7x-at-SakuraVPS.sh
Last active Jul 27, 2019
Mondo Rescue Installer for CentOS7 at Sakura VPS.
View mondorescue-installer-for-CentOS7x-at-SakuraVPS.sh
#!/bin/bash
# HOW TO INSTALL
# Run below as root
# cd ~/ && wget -O install_mondorescue.sh https://gist.github.com/KEINOS/a71475750b644b1c26db42870cfbafe5/raw&&chmod 0755 install_mondorescue.sh && ./install_mondorescue.sh
# ---------------------------------
# Set screen width
# ---------------------------------
if [ -n "${TERM}" ]; then width=$(tput cols); else width=20; fi
@KEINOS
KEINOS / Qiita スパム記事パターン.md
Last active Jul 21, 2019
Qiita スパム記事パターン
View Qiita スパム記事パターン.md

以下のチェック事項をフラグとして、フラグの組み合わせでスパム検知するためのメモです。

true(yes) の場合がスパムに含まれたフラグになります。

記事内文字列・チェック

  • すべて半角英数字記号である
  • (???-???-???? | ???_???_????) フォーマットの数値が含まれている
  • 同一内容の行が3行以上繰り返される
  • 'ğşöÜ'などの文字が含まれる
@KEINOS
KEINOS / LOG_Build-Error.sh-session
Created Jul 6, 2019
[LOG] Error log on heroku
View LOG_Build-Error.sh-session
2019-07-06T16:11:37.070517+00:00 app[web.1]: 2019-07-07 01:11:37: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:38.074704+00:00 app[web.1]: 2019-07-07 01:11:38: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:39.079038+00:00 app[web.1]: 2019-07-07 01:11:39: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:40.083423+00:00 app[web.1]: 2019-07-07 01:11:40: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:41.087808+00:00 app[web.1]: 2019-07-07 01:11:41: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:42.092604+00:00 app[web.1]: 2019-07-07 01:11:42: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:43.097222+00:00 app[web.1]: 2019-07-07 01:11:43: (network.c.313) can't bind to socket: 0.0.0.0:80 Permission denied
2019-07-06T16:11:44.101447+00:00 app[web.1]: 2019-07-07 01:11:44: (network.c.313) can'
@KEINOS
KEINOS / dockle-status.json
Last active Jun 21, 2019
Sample JSON of Shields.IO status badge
View dockle-status.json
{
"schemaVersion": 1,
"label": "Dockle",
"message": "FATAL 1 WARN 2",
"color": "red"
}
View LOG_Build_CentOS_DockerImage.sh-session
$ # Env infos
$ # ---------
$ docker version
Client: Docker Engine - Community
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:47:43 2018
OS/Arch: darwin/amd64
@KEINOS
KEINOS / softwareupdate_warning.sh-session
Created Mar 20, 2019
[LOG] Warning while softwareupdate - EmbeddedOSInstall and OSPersonalization Error. One of the two will be used. Which one is undefined.
View softwareupdate_warning.sh-session
$ # Error log
$ softwareupdate -l --verbose
objc[5213]: Class AMSupportURLConnectionDelegate is implemented in both /System/Library/PrivateFrameworks/EmbeddedOSInstall.framework/Versions/A/EmbeddedOSInstall (0x11abdd8c0) and /System/Library/PrivateFrameworks/OSPersonalization.framework/Versions/A/OSPersonalization (0x11aa381e0). One of the two will be used. Which one is undefined.
Software Update Tool
Finding available software
No new software available.
$ man softwareupdate | tail -1
Mac OS September 11, 2012 Mac OS
$ sw_vers
You can’t perform that action at this time.