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
########## | |
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset | |
# Author: Disassembler <[email protected]> | |
# Version: v3.3, 2018-10-22 | |
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
########## | |
### Require administrator privileges ### | |
RequireAdmin |
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
{ | |
"0":{ | |
"slug":"lorem-ipsum", | |
"title":"Lorem Ipsum", | |
"publish_date":"2018-10-12T05:00:00.000Z", | |
"featured_image":"https://link.to/image.jpg", | |
"content":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque blandit tempus feugiat. Nullam purus massa, ultricies vel erat ac, tempor condimentum lorem. Etiam malesuada egestas tincidunt.", | |
"page_title":"Welcome to Lorem Ipsum", | |
"description":"Nulla sit amet massa fringilla eros tempor tempus. Fusce auctor arcu sed ipsum eleifend, sit amet tincidunt ligula porta." | |
} |
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=/home/backups | |
echo Changing to /home... | |
cd /home | |
echo Backing up users webroot... | |
mkdir -p $backup | |
for dir in */; do |
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
(function() { | |
tinymce.PluginManager.add('app', function(editor, url) { | |
editor.addButton('app', { | |
title: 'App', | |
icon: 'app icon-example', | |
type: 'menubutton', | |
menu: [ | |
{ | |
text: 'Shortcodes', | |
menu: [ |
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
<?php | |
namespace App\Walker; | |
use Roots\Soil\Nav\NavWalker as Soil; | |
/** | |
* Return if Soil does not exist. | |
*/ | |
if (!class_exists('Roots\Soil\Nav\NavWalker')) { |
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
<?php | |
namespace App; | |
if (class_exists('TinyMCE')) { | |
return; | |
} | |
/** | |
* TinyMCE |
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
<?php | |
namespace App; | |
use Samrap\Acf\Acf; | |
/** | |
* Shortcodes | |
*/ | |
if (!class_exists('Shortcodes')) { |
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
<?php | |
namespace App; | |
use function \Sober\Intervention\intervention; | |
if (function_exists('Sober\Intervention\intervention')) { | |
// Add Welcome Dashboard | |
intervention('add-dashboard-item', [ | |
'Welcome', |
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
<?php | |
namespace App; | |
add_action('after_setup_theme', function() { | |
$sage = sage('blade')->compiler(); | |
/** | |
* Create @asset() Blade directive | |
*/ |
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
user www-data; | |
worker_rlimit_nofile 1024; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
error_log /var/log/nginx/error.log; | |
events { | |
worker_connections 1024; |