Skip to content

Instantly share code, notes, and snippets.

View brianjking's full-sized avatar
💭
Doin' cool stuff at BrandMuscle AI

Brian J King brianjking

💭
Doin' cool stuff at BrandMuscle AI
View GitHub Profile
@matt-bailey
matt-bailey / frontend-tools.sh
Last active September 28, 2015 22:01
Example frontend tools setup shell script (I use it with Vagrant and a Linux box). Includes Java, Node, PhantomJS, sitespeed.io, Gunt, Bower and Compass
#!/bin/bash
# Vars
java="java"
xsltproc="xsltproc"
node="node"
phantomjs="phantomjs"
grunt="grunt"
bower="bower"
compass="compass"
@jjeaton
jjeaton / wp-config.php
Last active November 5, 2020 13:27
WP_DEBUG in wp-config.php using debug.log
<?php
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SAVEQUERIES', true );
define( 'SCRIPT_DEBUG', true );
@ini_set( 'display_errors', 0 );
if ( function_exists( 'xdebug_disable' ) ) {
@Zodiac1978
Zodiac1978 / .htaccess
Last active June 5, 2025 14:13
Safer WordPress with these .htaccess additions
# Don't show errors which contain full path diclosure (FPD)
# Use that line only if PHP is installed as a module and not per CGI
# try using a php.ini in that case.
# Change mod_php5.c to mod_php7.c if you are running PHP7
<IfModule mod_php5.c>
php_flag display_errors Off
</IfModule>
# Don't list directories
<IfModule mod_autoindex.c>
sys.path.insert(0, '.')
extensions.append('sphinxcontrib_awesome')
@p1nox
p1nox / internet_explorer_config_on_mac.md
Last active February 19, 2016 04:12
Test web application using Internet Explorer locally with or without VM on OSX

Abstract

Test web application using Internet Explorer locally with or without VM in OSX.

Using Wine

Install WineBottler in case you want to check IE6, IE7 or IE8, if you want to check others you need to use a VM.

Using VM

@strebl
strebl / URLs
Last active February 19, 2016 00:20
Server, Admin Panels, Web
http://redd.it/1xizt0 Gentoo?
strebl.ch/21ai Ajenti
strebl.ch/1u0w Vesta Control Panel
strebl.ch/to6 cPanel
strebl.ch/1usg Choosing control panel management
strebl.ch/qrr ServerPilot
strebl.ch/1dz6 ServerPilot Experience
strebl.ch/ntg PuPHPet - A simple GUI to set up virtual machines for Web development.
strebl.ch/1ucq Phansible provides an easy-to-use interface to generate Ansible provisionings.
@arpanpal010
arpanpal010 / about-rpi.md
Last active August 1, 2017 11:13
Raspberry Pi configurations

##Configurations for Raspberry Pi Home Server## #####Using Raspbian##### (although the procedures are similar/compatible with most debian based systems.)

###Added###

  • [sysctl.conf mods] (#file-sysctl-md)
  • [Firewall config] (#file-firewall-md)
  • [DNS Server] (#file-dns-md)
  • [Dynamic Dns] (#file-dyndns-md)
  • [Git Server] (#file-git-server-md)
@wpspeak
wpspeak / functions.php
Created October 9, 2014 19:14
Force auto-updates for WordPress plugins
<?php
//* Force auto-updates for WordPress plugins
add_filter( 'auto_update_plugin', '__return_true' );
@jpreardon
jpreardon / outboard.coffee
Last active October 13, 2022 07:03
Simple In/Out Board for Dashing
class Dashing.Outboard extends Dashing.Widget
ready: ->
# This is fired when the widget is done being rendered
onData: (data) ->
# Handle incoming data
# You can access the html node of this widget with `@node`
# Example: $(@node).fadeOut().fadeIn() will make the node flash each time data comes in.
@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active July 3, 2025 21:23
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software