Source: https://www.howtoforge.com/linux_lvm
- /dev/sdX or /dev/hdX are physical HDDs (SCSI or SATA)
- /dev/vdX are virtual HDDs (virtualization aware driver)
- /dev/sda1 would be the first partition on the /dev/sda disk
| from datetime import datetime | |
| from elasticsearch import Elasticsearch | |
| class Program(): | |
| es = Elasticsearch() | |
| def __init__(self): | |
| pass | 
Source: https://www.howtoforge.com/linux_lvm
| #thanksOracle | |
| sudo apt-get update -y | |
| sudo apt-get install -y software-properties-common | |
| sudo apt-add-repository -y ppa:webupd8team/java | |
| echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
| echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
| sudo apt-get update -y | |
| sudo apt-get install -y oracle-java8-installer | 
Locate blocked requests: ceph health detail | grep 'ops are blocked'
Space usage global and by pool: ceph df
Display the tree of OSDs and their location/weights/status: ceph osd tree
Description of placement group states: http://docs.ceph.com/docs/master/rados/operations/pg-states/
These are the relevant repositories for the Solr Continuous Delivery talk. Each one has more information in its respective README:
| #!/usr/bin/env bash | |
| usage() { | |
| echo "Usage: $0 /path/to/thing.pfx" | |
| exit -1 | |
| } | |
| if [ "$#" -lt 1 ]; then | |
| usage | |
| fi | 
| #include <Servo.h> | |
| const int SERVO_COUNT = 10; | |
| Servo servos[SERVO_COUNT]; | |
| const int SERVO_MIN = 40; | |
| const int SERVO_MAX = 180; | |
| void setup() { | |
| for (int i = 0 ; i < SERVO_COUNT ; i += 1) { | 
| # Description: Boxstarter Script | |
| # | |
| # Install boxstarter: | |
| # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
| # | |
| # You might need to set: Set-ExecutionPolicy RemoteSigned | |
| # | |
| # Run this boxstarter by calling the following from an **elevated** command-prompt: | |
| # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
| # OR | 
| [ req ] | |
| default_bits = 2048 | |
| distinguished_name = req_distinguished_name | |
| req_extensions = req_ext | |
| attributes = req_attributes | |
| prompt = no | |
| [ req_distinguished_name ] | |
| countryName = US | |
| stateOrProvinceName = StateName | 
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8.2; | |
| contract Foo { | |
| uint public value; | |
| constructor() payable { | |
| value = msg.value; | |
| } | |
| } |