Skip to content

Instantly share code, notes, and snippets.

View adastreamer's full-sized avatar
🤺
What's happening?

Eugene Khashin adastreamer

🤺
What's happening?
View GitHub Profile
#!/bin/bash
DEVICE_NAME=$(lsblk -nldo NAME | sort -r | head -1)
USAGE_COUNT=$(sudo pvdisplay -c | grep -c /${DEVICE_NAME})
MOUNT_POINT=$1
if [ -z $MOUNT_POINT ]; then
echo "NO MOUNT POINT SPECIFIED"
exit 1
fi
if ( jQuery.isWindow( elem ) ) {
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
// 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
var docElemProp = elem.document.documentElement[ "client" + name ],
body = elem.document.body;
return elem.document.compatMode === "CSS1Compat" && docElemProp ||
body && body[ "client" + name ] || docElemProp;
// Get document width or height
} else if ( elem.nodeType === 9 ) {
var getHeight = function(){
var viewport = new Object();
viewport.height = 0;
// the more standards compliant browsers (mozilla/netscape/opera/IE7)
//use window.innerWidth and window.innerHeight
if (typeof window.innerHeight != 'undefined')
{
viewport.height = window.innerHeight
}
else if (typeof document.documentElement != 'undefined'
angular.module 'dokkurFrontend'
.controller 'AppSettingsController', (
$timeout
$q
$interval
$state
$scope
$rootScope
SEO
dkSubscriberService
dokkur@ubuntu:~$ time sudo DOKKU_TAG=v0.5.5 bash bootstrap.sh
Preparing to install v0.5.5 from https://github.com/dokku/dokku.git...
--> Ensuring we have the proper dependencies
--> Initial apt-get update
(Reading database ... 57553 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_1.0.1ubuntu2.12_amd64.deb ...
Unpacking apt-transport-https (1.0.1ubuntu2.12) over (1.0.1ubuntu2.11) ...
Setting up apt-transport-https (1.0.1ubuntu2.12) ...
--> Installing docker
2016-04-18 03:55:45 URL:https://get.docker.com/ [14387/14387] -> "-" [1]
--2016-04-18 09:06:40-- https://raw.githubusercontent.com/dokku/dokku/v0.5.5/bootstrap.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.31.17.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.17.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4858 (4.7K) [text/plain]
Saving to: ‘bootstrap.sh’
100%[==================================================================================================================================================================>] 4,858 --.-K/s in 0s
2016-04-18 09:06:41 (895 MB/s) - ‘bootstrap.sh’ saved [4858/4858]
dokkur@vps47369:~$ wget https://raw.githubusercontent.com/dokku/dokku/v0.5.5/bootstrap.sh
--2016-04-18 08:36:13-- https://raw.githubusercontent.com/dokku/dokku/v0.5.5/bootstrap.sh
Распознаётся raw.githubusercontent.com (raw.githubusercontent.com)… 185.31.17.133
Подключение к raw.githubusercontent.com (raw.githubusercontent.com)|185.31.17.133|:443... соединение установлено.
HTTP-запрос отправлен. Ожидание ответа... 200 OK
Длина: 4858 (4,7K) [text/plain]
Сохранение в: «bootstrap.sh»
100%[==================================================================================================================================================================>] 4 858 --.-K/s за 0s
<script type="text/javascript">
window.gaInit = function() {
$.getScript('//www.google-analytics.com/analytics.js'); // jQuery shortcut
window.ga = window.ga || function () { (ga.q = ga.q || []).push(arguments) }; ga.l = +new Date;
ga('create', 'UA-69738551-3', 'auto');
ga('require', 'linkid');
return ga;
};
window.gaTrack = function(path, title) {
var track = { page: path, title: title };
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
if(location.hostname.match('maleeonline')) {
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter32508370 = new Ya.Metrika({
id:32508370,
clickmap:true,
trackLinks:true,
1. First you need some unallocated space to create the partitions for each mountpoint (/var, /home, /tmp). Use Gparted for this.
2. Then you need to create the filesystems for those partitions (can be done with Gparted too) or use:
mkfs.ext4 /dev/sdaX
for example to create a new ext4 filesystem on the /dev/sdaX device (replace /dev/sdaX with your own device)
3. Mount the new filesystem under /mnt
mkdir /mnt/var