Skip to content

Instantly share code, notes, and snippets.

View wnoguchi's full-sized avatar
😀

Wataru Noguchi wnoguchi

😀
View GitHub Profile
@snizovtsev
snizovtsev / cdm_fio.sh
Last active February 5, 2024 22:35 — forked from i3v/cdm_fio.sh
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
@likid0
likid0 / ceph.conf
Last active October 20, 2022 10:51
RHCS on All Flash Cluster : Performance Blog Series : ceph.conf template file
### PLEASE TAKE IN ACCOUNT THIS FILE IS CONFIGURED FOR BECHNMARK TESTING OF CEPH NOT PRODUCTION USE
[client]
rbd cache = False
[client.openstack]
admin socket = /var/run/openstack/$cluster-$type.$id.$pid.$cctid.asok
log file = /var/log/ceph/qemu-guest-$pid.log
@i3v
i3v / cdm_fio.sh
Last active February 5, 2024 22:33
Reproducing CrystalDiskMark tests with fio - fixes for https://unix.stackexchange.com/revisions/480191/9
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9 .
# The following changes proved to be necessary to make it work on CentOS 7:
# * removed disk info (model, size) - not very useful, might not work in many cases.
# * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base)
# * escaping exclamation mark in sed command
# * the ".fiomark.txt" is not auto-removed
LOOPS=5 #How many times to run each test
@bn4t
bn4t / ci-unattended.sh
Created October 11, 2018 12:57
cloud-init unattended upgrades
#!/bin/sh
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
apt-get -y install unattended-upgrades
@hidez8891
hidez8891 / config_via_proxy.md
Created October 10, 2018 12:54
Proxyでつらい人のためのメモ書き

Proxyでつらい人のためのメモ書き

様々な理由で、Proxyを通してコマンドを使わなきゃいけない人のためのメモ。

環境変数

WindowsでもLinuxでも同じ。
これで、だいたいのコマンドは行ける。

# cmd.exe
@bdombro
bdombro / .gitlfstracks
Last active March 27, 2024 16:43
Git LFS Default Tracks - Common binary file extensions
"To include this, run `cat .gitlfstrack | xargs git lfs track`"
"*.3ds"
"*.3g2"
"*.3gp"
"*.7z"
"*.a"
"*.aac"
"*.adp"
"*.ai"
"*.aif"
@voluntas
voluntas / working_time.rst
Last active February 13, 2024 15:22
時雨堂を支える固定時間労働 1 日 6 時間

時雨堂を支える固定時間労働 1 日 6 時間

更新

2024-01-20

作者

@voluntas

バージョン

2024.1

URL

https://voluntas.github.io/

概要

日付 曜日 申請区分 始業 就業 労働時間 申請の理由
2011/04/01 09:00 20:00 09:30
2011/04/02
2011/04/03
2011/04/04 09:00 18:10 08:00
2011/04/05 09:00 18:00 08:00
2011/04/06 09:00 18:00 08:00
2011/04/07 09:00 18:00 08:00
2011/04/08 09:00 18:00 08:00
2011/04/09
@oinopion
oinopion / read-access.sql
Created October 5, 2016 13:00
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@ytkhs
ytkhs / mysql_read_only.sql
Created September 20, 2016 02:20
MySQLを読み取り専用にする(バックアップ時など)
-- 読み取り専用にする
FLUSH TABLES WITH READ LOCK;
SET GLOBAL read_only = ON;
-- バックアップとかDBサーバの移設作業とか --
-- 元に戻す
SET GLOBAL read_only = OFF;
UNLOCK TABLES;