様々な理由で、Proxyを通してコマンドを使わなきゃいけない人のためのメモ。
WindowsでもLinuxでも同じ。
これで、だいたいのコマンドは行ける。
# cmd.exe
#!/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 |
### 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 |
#!/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 |
#!/bin/sh | |
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections | |
apt-get -y install unattended-upgrades |
"To include this, run `cat .gitlfstrack | xargs git lfs track`" | |
"*.3ds" | |
"*.3g2" | |
"*.3gp" | |
"*.7z" | |
"*.a" | |
"*.aac" | |
"*.adp" | |
"*.ai" | |
"*.aif" |
2024-01-20
@voluntas
2024.1
概要
日付 | 曜日 | 申請区分 | 始業 | 就業 | 労働時間 | 申請の理由 | |
---|---|---|---|---|---|---|---|
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 | 土 |
-- 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; |
-- 読み取り専用にする | |
FLUSH TABLES WITH READ LOCK; | |
SET GLOBAL read_only = ON; | |
-- バックアップとかDBサーバの移設作業とか -- | |
-- 元に戻す | |
SET GLOBAL read_only = OFF; | |
UNLOCK TABLES; |