When mount is returning:
STDERR: mount: block device /srv/database-data/postgres is write-protected, mounting read-only
mount: cannot mount block device /srv/database-data/postgres read-only
and dmesg shows:
| #!/bin/bash | |
| ####################################### | |
| # Graphite Install | |
| # Run with sudo for best results | |
| # | |
| ####################################### | |
| if [[ "$(/usr/bin/whoami)" != "root" ]]; then | |
| echo "This script must be run as root or using sudo.Script aborted." | |
| exit 1 |
| var http = require('http'), | |
| fs = require('fs'), | |
| cwd = process.cwd(); | |
| http.createServer() | |
| .on('request', function (request, response) { | |
| var url = unescape(request.url); | |
| var path = cwd + url; | |
| console.log(request.socket.remoteAddress, path); |
| description = [[ | |
| Issues an arbitrary HTTP GET request | |
| ]] | |
| --- | |
| -- @usage | |
| -- nmap --script http-get [--script-args http-get.path=/status] -p <port> <host> | |
| -- @args http-get.path The path to request (defaults to /) | |
| -- http-get.match String to match in the HTTP response (incl. headers) | |
| -- @output |
| #!/bin/sh | |
| filename=$1 | |
| echo "Begin processing file:" $filename | |
| dimensions=$(identify -format '%w %h' $filename) | |
| IFS=' ' read -a array <<< "$dimensions" | |
| width=${array[0]} | |
| height=${array[1]} |
| var kue = require('kue'), | |
| jobs = kue.createQueue(), | |
| util = require('util'), | |
| noop = function() {}; | |
| jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days | |
| jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day | |
| jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days | |
| jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes |
To use this hook:
prepare-commit-msg file at .git/hooks/prepare-commit-msg and edit as neededchmod +x .git/hooks/prepare-commit-msggit config branch.master.mergeoptions "--no-ff"NOTE: after a failed merge from a forbidden branch, the working tree will still be in a MERGING state. To discard the local working copy state, run:
git reset --merge
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent| #!/usr/bin/env bash | |
| # Documentation | |
| # https://docs.gitlab.com/ce/api/projects.html#list-projects | |
| NAMESPACE="YOUR_NAMESPACE" | |
| BASE_PATH="https://gitlab.example.com/" | |
| PROJECT_SEARCH_PARAM="" | |
| PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")" | |
| PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }" |