Skip to content

Instantly share code, notes, and snippets.

@fndtn357
fndtn357 / .gitignore
Last active December 21, 2019 21:11 — forked from salcode/.gitignore
See https://salferrarello.com/wordpress-gitignore/ for the latest version of my WordPress .gitignore file
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@fndtn357
fndtn357 / module.php
Last active February 28, 2017 16:14 — forked from kevinquillen/module.php
/**
* Creates a temporary table to hold values from an uploaded CSV.
* @param $table_name
* @param $columns
* @param $message
* @param $context
*/
function csv_import_create_temp_table($table_name, $columns) {
if (db_table_exists($table_name)) {
return;
@fndtn357
fndtn357 / refresh
Last active August 29, 2015 14:20 — forked from bradymiller/refresh
#!/bin/bash
#
# Copyright (C) 2014 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# Ubuntu script to prepare a github repository for testing. This is
@fndtn357
fndtn357 / boost_info.php
Created February 18, 2015 19:51
investigate Boost folder location Drupal 6
<?php
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
drupal_load('module', 'boost');
global $base_url;
echo $base_url;
echo '<br>';
echo $_SERVER['HTTP_HOST'];
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@fndtn357
fndtn357 / config-git
Created February 4, 2015 08:12
my settings for git
[color]
ui = true
diff = auto
status = auto
branch = auto
interactive = auto
[alias]
co = checkout
ci = commit
st = status
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.