- Copy or SFTP certificate to machine
- Go to /usr/local/share/ca-certificates/
- Create a new folder, i.e. "sudo mkdir my-cert"
- Copy the .crt file into the my-cert folder
- Make sure the permissions are OK (
755
for the folder,644
for the file) - Run
sudo update-ca-certificates
Reference: https://docs.gitlab.com/ee/administration/operations/filesystem_benchmarking.html
fio --randrepeat=1 --ioengine=libaio --direct=1 --gtod_reduce=1 --name=test --filename=/path/to/git-data/testfile --bs=4k --iodepth=64 --size=4G --readwrite=randrw --rwmixread=75
This will create a 4GB file in /path/to/git-data/testfile. It performs 4KB reads and writes using a 75%/25% split within the file, with 64 operations running at a time. Be sure to delete the file after the test completes.
This file contains 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
import { connect } from 'react-redux' | |
import { toggleTodo, TodoActionTypes } from './actions' | |
import { VisibilityFilters } from './actions' | |
import { AppState } from './reducers'; | |
import { Dispatch } from 'react'; | |
type StateProps = ReturnType<typeof mapStateToProps> | |
type DispatchProps = ReturnType<typeof mapDispatchToProps> |
This file contains 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
const socketio = require('feathers-socketio') | |
const authOnSocketConnect = require('./authenticate-on-socket-connect') | |
// ... Setup your Feathers app code or use the generator then replace the socketio registration with this | |
// When you register the feathers-socketio plugin, use the utility | |
app.configure(socketio(function (io) { | |
// Get Socket.io headers | |
io.on('connection', function (socket) { | |
authOnSocketConnect({ app, socket }) |
This file contains 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
server { | |
listen 80; | |
listen [::]:80 default ipv6only=on; | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
server_name _; # all hostnames | |
location / { |
Running CLI in Docker container:
docker exec -it pubSubStandardSingleNode /usr/sw/loads/currentload/bin/cli -A
OlderNewer