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 November 19, 2024 15:09 — 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
@mrpeardotnet
mrpeardotnet / PVE-HP-ssacli-smart-storage-admin.md
Created November 25, 2019 22:10
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@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 May 15, 2024 13:10
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 October 21, 2024 15:20
時雨堂を支える固定時間労働 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;