This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# @sacloud-once | |
# @sacloud-desc-begin | |
# このスクリプトはmastodonをセットアップします。 | |
# (このスクリプトは、CentOS7.Xでのみ動作します。) | |
# | |
# 事前作業として以下の2つが必要となります | |
# ・さくらのクラウドDNSにゾーン登録を完了していること | |
# ・さくらのクラウドAPIのアクセストークンを取得していること |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "" | |
echo "-----------------------------" | |
echo " ╔╦╗╔═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗╔╗╔" | |
echo " ║║║╠═╣╚═╗ ║ ║ ║ ║║║ ║║║║" | |
echo " ╩ ╩╩ ╩╚═╝ ╩ ╚═╝═╩╝╚═╝╝╚╝" | |
echo " Mastodon Installer for" | |
echo " CentOS 7.x at Sakura VPS" | |
echo "" | |
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo | |
echo "-----------------------------" | |
echo " ╔╦╗╔═╗╔═╗╔╦╗╔═╗╔╦╗╔═╗╔╗╔" | |
echo " ║║║╠═╣╚═╗ ║ ║ ║ ║║║ ║║║║" | |
echo " ╩ ╩╩ ╩╚═╝ ╩ ╚═╝═╩╝╚═╝╝╚╝" | |
echo " Installer for Sakura VPS" | |
echo " (CentOS7x with KUSANAGI)" | |
echo "-----------------------------" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.debug { | |
width:100%; | |
font-size:16px; | |
/* See the PostScriptName of the font info at FontBook app */ | |
font-family:"RictyDiminishedDiscord-Regular"; | |
overflow: auto; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ixx-xxx-xxxxx ~]# cd ~/ | |
[root@ixx-xxx-xxxxx ~]# | |
[root@ixx-xxx-xxxxx ~]# # Update yum skip to line 2838 | |
[root@ixx-xxx-xxxxx ~]# yum -y update | |
Loaded plugins: fastestmirror, langpacks | |
base | 3.6 kB 00:00:00 | |
epel/x86_64/metalink | 5.0 kB 00:00:00 | |
epel | 4.3 kB 00:00:00 | |
extras | 3.4 kB 00:00:00 | |
updates | 3.4 kB 00:00:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Include user function | |
include('2-mb_base_encode.php'); | |
// Input string | |
$s = 'This is a sample string to be hashed.'; | |
// Calculate samples | |
$result1 = $s; | |
$result2 = md5($s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@RPi-KEINOS:~ $ sudo apt-get install software-properties-common | |
pi@RPi-KEINOS:~ $ | |
pi@RPi-KEINOS:~ $ sudo add-apt-repository ppa:x4121/ripgrep | |
You are about to add the following PPA to your system: | |
PPA to provide Ripgrep for Ubuntu. | |
This PPA will only contain Ripgrep and its dependencies (if required). | |
Upstream: https://github.com/BurntSushi/ripgrep | |
More info: https://launchpad.net/~x4121/+archive/ubuntu/ripgrep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//////////////////////////////////////////////////////////////////// | |
// Qiitaページの拡張ブックマークレット・ジェネレーター | |
// | |
// Qiitaページ内の選択用語、もしくはQiitaタグ選択時の一覧のタグ用語 | |
// をWikipediaAPI(SimpleAPI経由)で検索して、結果を表示するだけのブッ | |
// クマークレットです。 | |
// | |
// 使い方: | |
// 1) Chromeで適当なページをブックマークする。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//header("Content-type: text/text; charset=utf-8"); | |
/////////////////////////////////////////////////////////////////////////////// | |
// Qiitadon 用引用トゥートのブックマークレット・ジェネレーター | |
/////////////////////////////////////////////////////////////////////////////// | |
$your_instance = 'qiitadon.com'; | |
$your_language = 'ja'; // "ja" or "en" | |
$enable_linebreak = 'true'; // 固定長の設定。false = 引用時に固定長で改行しない。 | |
$width_linebreak = 12*2; // 固定長幅。引用時の1行の文字幅。全角文字数*2 |