# Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button
# Confirm increase in disk space (1TB in my case)
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 1T 0 part
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 VueLoaderPlugin = require('vue-loader/lib/plugin'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
module.exports = { | |
entry: './assets/main.js', | |
watchOptions: { | |
ignored: '**/node_modules', | |
}, | |
module: { |
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
Projekt: [ project.com, subdomain.project.com ] | |
[] Account Hosting & Domain | |
Account: example.com | |
Passwort: examplepass | |
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | |
[] Web | |
[] [] DEV | |
Url: dev.project.com | |
[] [] LIVE |
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
<?php | |
$to = new DateTime('now'); | |
$from = new DateTime('now'); | |
$from->modify("-12 months"); | |
$interval = DateInterval::createFromDateString('1 month'); | |
$period = new DatePeriod($from, $interval, $to); | |
$res = array(); | |
foreach ($period as $start) | |
{ |
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
{ | |
"ShipmentRequest": { | |
"RequestedShipment": { | |
"ShipmentInfo": { | |
"DropOffType": "REGULAR_PICKUP", | |
"ServiceType": "P", | |
"Account": 143816942, | |
"Currency": "SGD", | |
"UnitOfMeasurement": "SI" | |
}, |
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
stages: | |
- test | |
- deploy | |
cache: | |
paths: | |
- vendor | |
# test job | |
test: |
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
$query = $this->db->query('SELECT * FROM '.$this->table); | |
$result = $query->fetchAll(\PDO::FETCH_CLASS, 'Your\\Namespace\\andClassName'); | |
return $result; |
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
// | |
// BodyguardViewController.swift | |
// My Mobile Bodyguard | |
// | |
// Created by Koray Zorluoglu on 06.07.17. | |
// Copyright © 2017 Koray Zorluoglu. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
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
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |
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
#!/usr/bin/env bash | |
# Use single quotes instead of double quotes to make it work with special-character passwords | |
PASSWORD='PASSWORDHERE' | |
PROJECTFOLDER='PROJECTFOLDERHERE' | |
# create project folder | |
sudo mkdir "/var/www/html/${PROJECTFOLDER}" | |
# update / upgrade |
NewerOlder