Skip to content

Instantly share code, notes, and snippets.

@mAAdhaTTah
mAAdhaTTah / fb-debugger.php
Created September 27, 2015 05:55
Facebook Post Debugger
<?php
/*
Plugin Name: Facebook Post Debugger
Version: 0.1
Plugin URI: http://jamesdigioia.com/
Description: This plugin runs the bit.ly shortlink through the Facebook debugger upon publishing.
Author: James DiGioia
Author URI: http://www.jamesdigioia.com/
*/
@mAAdhaTTah
mAAdhaTTah / improved-boot.php
Last active March 23, 2021 11:37
A Better WordPress Singleton
call_user_func(array(new PluginClass(__FILE__), 'boot'));
@mAAdhaTTah
mAAdhaTTah / 1_netatalk-3-install-on-ubuntu-14.04.sh
Last active December 11, 2019 16:20 — forked from beshkenadze/1_netatalk-3-install-on-debian-7
Shell script to install Netatalk 3 on Ubuntu 14.04
# Get root:
sudo su
# Install prerequisites:
apt-get install build-essential pkg-config checkinstall git avahi-daemon libavahi-client-dev libcrack2-dev libwrap0-dev autotools-dev automake libtool libdb-dev libacl1-dev libdb5.1-dev db-util db5.1-util libgcrypt11 libgcrypt11-dev
# Build libevent from source:
cd /usr/local/src

Keybase proof

I hereby claim:

  • I am maadhattah on github.
  • I am jamesdigioia (https://keybase.io/jamesdigioia) on keybase.
  • I have a public key ASCG7vUNizwEP8YhbG9NQtJtNt4kMip4Rd6XMrkUoUgeDgo

To claim this, I am signing this object:

@mAAdhaTTah
mAAdhaTTah / composer.json
Last active April 30, 2019 18:36
CMB2 as Composer Library
{
"require": {
"php": ">=5.3.0",
"composer/installers": "v1.0.12",
"webdevstudios/cmb2": "dev-master",
},
"autoload": {
"files": ["vendor/cmb2/init.php"]
},
"extra": {
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<button id="up">Up</button>
<button id="down">Down</button>
<button id="left">Left</button>
<button id="right">Right</button>
@mAAdhaTTah
mAAdhaTTah / tinyce-plugin.js
Last active March 5, 2017 19:53
TinyMCE Button Plugin
( function() {
// Register plugin
tinymce.create( 'tinymce.plugins.plugin_slug', {
init: function( editor, url ) {
// Add the Insert Gistpen button
editor.addButton( 'plugin_slug', {
//text: 'Insert Shortcode',
<!DOCTYPE html>
<html>
<head>
<title>jQuery Fun House Starter Code</title>
</head>
<body>
<div class="section" id="gallery">
<h1>Pictures of elephants</h1>
<img class="gallery-thumb" id="pic1" src="https://upload.wikimedia.org/wikipedia/commons/f/f9/Loxodonta_africana_-_old_bull_(Ngorongoro,_2009).jpg">
<img class="gallery-thumb" id="pic2" src="https://upload.wikimedia.org/wikipedia/commons/6/63/African_elephant_warning_raised_trunk.jpg">
<!DOCTYPE html>
<html>
<head>
<title>Movies and Shows</title>
</head>
<body>
<h1>Amazing Movies and TV Shows Ever!</h1>
<ol>
<li>Finding Dory</li>
<li>Game of Thrones</li>
@mAAdhaTTah
mAAdhaTTah / provision-osx.sh
Last active June 6, 2016 23:43
OS X Provisioning Script
gem install kitchenplan
kitchenplan setup
kitchenplan provision
gem install homesick
homesick clone https://github.com/mAAdhaTTah/dotfiles
homesick link dotfiles
git clone pianosa:~/.settings/ # The address is for my home server
mackup restore