Skip to content

Instantly share code, notes, and snippets.

View Log1x's full-sized avatar

Brandon Log1x

View GitHub Profile
@Log1x
Log1x / backup.sh
Last active August 20, 2018 00:23
Backup cPanel user webroots & individual MySQL databases
#!/bin/bash
backup=/home/backups
echo Changing to /home...
cd /home
echo Backing up users webroot...
mkdir -p $backup
for dir in */; do
(function() {
tinymce.PluginManager.add('app', function(editor, url) {
editor.addButton('app', {
title: 'App',
icon: 'app icon-example',
type: 'menubutton',
menu: [
{
text: 'Shortcodes',
menu: [
<?php
namespace App\Walker;
use Roots\Soil\Nav\NavWalker as Soil;
/**
* Return if Soil does not exist.
*/
if (!class_exists('Roots\Soil\Nav\NavWalker')) {
@Log1x
Log1x / tinymce.php
Last active January 23, 2019 20:12
<?php
namespace App;
if (class_exists('TinyMCE')) {
return;
}
/**
* TinyMCE
<?php
namespace App;
use Samrap\Acf\Acf;
/**
* Shortcodes
*/
if (!class_exists('Shortcodes')) {
<?php
namespace App;
use function \Sober\Intervention\intervention;
if (function_exists('Sober\Intervention\intervention')) {
// Add Welcome Dashboard
intervention('add-dashboard-item', [
'Welcome',
<?php
namespace App;
add_action('after_setup_theme', function() {
$sage = sage('blade')->compiler();
/**
* Create @asset() Blade directive
*/
@Log1x
Log1x / nginx.conf
Created August 20, 2017 21:04
nginx configuration for odoo
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;
@Log1x
Log1x / README.md
Last active November 30, 2019 17:39
Log1x's CS:GO Config

Log1x's CS:GO Config

This is the latest version of my CS:GO config. It is essentially a tweaked/modified version of Budi's Config.

Installation

Copy autoexec.cfg and buybinds.cfg to ./steamapps/common/Counter-Strike Global Offensive/csgo/cfg

Launch Options

"extra": {
"installer-paths": {
"../../mu-plugins/{$name}/": ["type:wordpress-muplugin", "roots/soil"],
"../../plugins/{$name}/": ["type:wordpress-plugin"]
}
},