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
#!/bin/bash | |
# BACKUP | |
# Save info in text-file (parted) | |
sudo parted /dev/sdX print > sdX-partiotion.info | |
# Save info in text-file (sfdisk) | |
sudo sfdisk -d /dev/sdX > sdX-partiotion.info | |
# Save info in text-file (gdisk) | |
sudo gdisk -l /dev/sdX > sdX-partiotion.info |
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
#!/bin/bash | |
# Create Partitions | |
cgdisk /dev/sda | |
cgdisk /dev/sdb | |
# Format Partitions (SSD) | |
mkfs.fat -F32 /dev/sda1 | |
mkfs.ext4 /dev/sda2 -L root | |
mkfs.ext4 /dev/sdb5 -L home |
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
// Initialize plugins | |
var gulp = require('gulp'), | |
plugins = require('gulp-load-plugins')(), | |
browserSync = require('browser-sync').create(), | |
src = './src', | |
dst = './dist', | |
// Output details of the error and continue the project | |
swallowError = function(error) { |
NewerOlder