This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import re | |
def scrapbox_to_markdown(): | |
scrapbox_text = sys.stdin.read() | |
markdown_text = "" | |
lines = scrapbox_text.split('\n') | |
for line in lines: | |
if line.startswith('\t'): |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import re | |
def scrapbox_to_markdown(): | |
scrapbox_text = sys.stdin.read() | |
markdown_text = "" | |
lines = scrapbox_text.split('\n') | |
for line in lines: | |
if line.startswith('\t'): |
This file contains hidden or 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
.contents_f41bb2 .markup_a7e664 { | |
margin-top:1rem; | |
line-height: 1.8rem; | |
font-family: Serif; | |
} | |
.container_dbadf5{ | |
margin-top: 1rem; | |
} |
This file contains hidden or 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 | |
# Alias | |
git config --global alias.s status | |
git config --global alias.b branch | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
# git pushで同名ブランチにPUSH | |
git config --global push.default current |
This file contains hidden or 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 | |
/** | |
* Smarty plugin | |
* ------------------------------------------------------------- | |
* Type: function | |
* Name: xoops_block | |
* Version: 1.1 | |
* Date: Nov 15, 2005 | |
* Author: Tom Hayakawa <[email protected]> |
This file contains hidden or 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 | |
if (!defined('XOOPS_ROOT_PATH')) exit(); | |
class ProductionUrlToDevUrl extends XCube_ActionFilter | |
{ | |
// ここに本番環境のXOOPS_URLの値を書く | |
const PRODUCTION_URL = 'https://ryus.co.jp'; | |
public function preFilter() | |
{ |
This file contains hidden or 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/sh | |
cd /usr/share/elasticsearch/bin | |
sudo ./elasticsearch-plugin remove analysis-icu | |
sudo ./elasticsearch-plugin remove analysis-kuromoji | |
sudo ./elasticsearch-plugin remove ingest-attachment | |
sudo ./elasticsearch-plugin install analysis-icu | |
sudo ./elasticsearch-plugin install analysis-kuromoji | |
sudo ./elasticsearch-plugin install ingest-attachment |
This file contains hidden or 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/sh | |
# cd NetCommons3/app/ | |
# bash gitCoreFileModeFalse.sh で実行 | |
# | |
dir_path="Plugin/*" | |
dirs=`find $dir_path -type d -maxdepth 0` | |
for dir in $dirs; | |
do | |
echo $dir |
This file contains hidden or 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
# 元記事がなくなってしまってオリジナルが確認できないけどたぶん。元は下記記事。 | |
# 指定したディレクトリ配下のgitリポジトリを再帰的にpullする - 宝石箱 | |
# http://jewelbox.hatenablog.jp/entry/2014/06/01/111339 | |
# 指定したディレクトリ配下を再帰的にgit pullする | |
function gitpull-r(){ | |
if [ $# -ne 1 ]; then | |
echo "gitpull-r <directory>" | |
return | |
fi |
This file contains hidden or 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 | |
// PHP7.1以上だったらこれでOK | |
class UserPHP71 { | |
/** | |
* @var string | |
*/ | |
private $name; | |
/** | |
* @var string|null | |
*/ |
NewerOlder