Skip to content

Instantly share code, notes, and snippets.

View akiko-pusu's full-sized avatar
😊
Good! Feedbacks, stars would be highly appreciated!

Akiko Takano akiko-pusu

😊
Good! Feedbacks, stars would be highly appreciated!
View GitHub Profile
@akiko-pusu
akiko-pusu / gist:5079900
Created March 4, 2013 04:19
MySQLのデータベースのエンジンを変更する ALTER Tableを書き出すスクリプトを作る(長っ!) 下記はInnoDBに変更。MyISAMかINNODBかは任意で。
mysql -uuser -p -e "show tables in ターゲットのDB名" | tail --lines=+2 | xargs -i echo "ALTER TABLE {} ENGINE=INNODB;" > alter_table.sql
@akiko-pusu
akiko-pusu / file0.txt
Created November 1, 2013 05:13
Jenkins使って良くやるバックアップ (rsync) 作業 ref: http://qiita.com/akiko-pusu/items/da60e402dede4494f1e8
if [ ${DRY_RUN} = "true" ]; then
sudo rsync -avnz --delete -e ssh ${SOURCE_SERVER}:/{$SOURCE_DIR}/ {$BACKUP_DIR}
else
sudo rsync -avz --delete -e ssh ${SOURCE_SERVER}:/{$SOURCE_DIR}/ {$BACKUP_DIR}
fi
@akiko-pusu
akiko-pusu / file0.txt
Created November 6, 2013 05:40
RedmineからチケットをPDFで一括ダウンロード (API & sh) ref: http://qiita.com/akiko-pusu/items/e890fe59a9f74d57ff94
#!/bin/sh
USAGE="usage: $0 [REDMINE_URL] [PROJECT_ID] [API_KEY]"
if [ $# -lt 3 ]; then
echo >&2 $USAGE
exit 1
fi
REDMINE_URL=$1
@akiko-pusu
akiko-pusu / sample.html
Created April 5, 2017 23:12
CSSで:not を使ってみる
<a class="icon icon-reload" href="#"
title="Revert" id="revert_template" onclick="revertAppliedTemplate();">
Revert
</a>
<script>
function revertAppliedTemplate() {
$('#revert_template').toggleClass('disabled');
}
</script>
@akiko-pusu
akiko-pusu / Dockerfile
Created September 14, 2017 23:00
Dockerfile
FROM centos:7
MAINTAINER Tatsuya Saito <twopackas@gmail.com>
RUN yum -y update && \
yum install -y epel-release && \
yum-config-manager --enable epel
RUN rm -f /etc/rpm/macros.image-language-conf && \
sed -i '/^override_install_langs=/d' /etc/yum.conf && \
@akiko-pusu
akiko-pusu / init.rb
Last active August 28, 2018 06:42
FullTextSearch Pluginの検証
require_dependency "full_text_search/hooks/search_index_options_content_bottom_hook"
require_dependency "full_text_search/hooks/issues_show_description_bottom_hook"
require_dependency "full_text_search/hooks/similar_issues_helper"
# これも追加?
require_dependency "full_text_search/hooks/search_helper"
require "full_text_search/searcher"
Redmine::Plugin.register :full_text_search do
@akiko-pusu
akiko-pusu / bash
Last active August 29, 2018 07:16
Pythonのインタラクティブモードで編集中のモジュールを再読み込みしたい ref: https://qiita.com/akiko-pusu/items/6e4c6114891dc83430a7
$ python sample.py
Hello World!
@akiko-pusu
akiko-pusu / article_template.html
Last active August 30, 2018 08:52
QiitaTeamのjsonをパースするスクリプト
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" media="all" href="style.css">
<link rel="stylesheet" media="all" href="github-markdown.css">
</head>
<body>
<div class='teamMain'>
<div class="teamSidebarContainer">
<div class="teamSidebarContainer_main js-toc-section-chaser-wrapper">
▼プロフィール
IT業界で生き延びるミセスタックエンジニア。
▼Blog・Twitter・FacebookのURL・ID
https://twitter.com/akiko_pusu
▼U30枠への応募
応募しない
▼講演の概要