Days without an incident
This file contains hidden or 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
# fdisk -l | |
Disk /dev/vda: 200 GiB, 214748364800 bytes, 419430400 sectors | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 512 bytes | |
I/O size (minimum/optimal): 512 bytes / 512 bytes | |
Disklabel type: dos | |
Disk identifier: 0xa236c89b | |
Device Boot Start End Sectors Size Id Type | |
/dev/vda1 * 2048 201326591 201324544 96G 83 Linux |
This file contains hidden or 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 sparseMap = { | |
'O2': { | |
'ExposureAlarm': { | |
read: () => _.random(9, 19), | |
isExposureAlarm: () => true | |
}, | |
'ExposureWarning': { | |
read: () => _.random(24, 27), | |
isExposureWarning: () => true | |
} |
This file contains hidden or 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 {makeFlag, isBitsOn, isBitsOff, turnBitsOn, turnBitsOff} from '../helpers/bitwise'; | |
/** | |
* Statuses dictionary | |
* @type {number} | |
*/ | |
export const | |
F_FINALIZED = makeFlag(0), // finalized | |
F_QUEUED_FOR_FETCHING = makeFlag(1), // marked for queue to be fetched | |
F_READY_FOR_PROCESSING = makeFlag(2), // marked for processing |
This file contains hidden or 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
/* eslint-disable no-bitwise */ | |
export const | |
/** | |
* Make bit flag based on number of bit | |
* @param {number} bit | |
* @returns {number} | |
*/ | |
makeFlag = (bit) => { | |
return 2 ** bit; //eslint-disable-line no-magic-numbers | |
}, |
This file contains hidden or 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
#!/usr/bin/env bash | |
LIQUIBASE_VERSION=3.6.3 | |
LIQUIBASE_PREFIX=/usr/local/lib | |
LIQUIBASE_BIN=/usr/local/bin | |
JDBC_POSTGRES_VERSION=42.2.6 | |
JDBC_MYSQL_VERSION=2.4.2 | |
############################################################################## | |
# Install Liquibase |
This file contains hidden or 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
{ | |
"Statement": [ | |
{ | |
"Action": [ | |
"apigateway:*", | |
"cloudformation:CancelUpdateStack", | |
"cloudformation:ContinueUpdateRollback", | |
"cloudformation:CreateChangeSet", | |
"cloudformation:CreateStack", | |
"cloudformation:CreateUploadBucket", |
Lollipops
This file contains hidden or 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
docker run -d \ | |
--volumes-from rancher-data \ | |
--restart=unless-stopped \ | |
-e CATTLE_PROMETHEUS_EXPORTER=true \ | |
-p 8080:8080 \ | |
-p 9108:9108 \ | |
rancher/server:latest |
This file contains hidden or 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
# this will remove almost all obsolete images including broken while building images and accompanied intermediate containers | |
# remains should be removed manually (which throw exceptions "image has dependent child images") | |
docker rm `docker ps -a | grep -P '\s+[0-9a-h]{12}\s+' | awk '{print $1}'`; | |
docker rmi `docker images | grep '<none>' | awk '{print $3}'`; | |
docker volume prune; |
NewerOlder