Skip to content

Instantly share code, notes, and snippets.

Avatar
🔍
Stay safe y'all

Adam McCombs mccombs

🔍
Stay safe y'all
View GitHub Profile
View ExpressionEngine mysql password reset
UPDATE exp_members
SET password = SHA1('pass123')
WHERE member_id = 1
View gist:592234bedcb3893bf0f096d83282aba4
#
brew tap exolnet/homebrew-deprecated
brew install php@5.6
View gist:27ee953109985a99419d
<form accept-charset="UTF-8" action="http://go.pardot.com/l/74282/2016-02-19/3xp5bn" method="post">
<input type="text" placeholder="city" name="city">
<input type="text" placeholder="State" name="state">
<input type="text" placeholder="Phone" name="phone">
<input type="email" placeholder="email" name="email">
<input type="text" placeholder="size" name="size">
<input type="text" placeholder="branches" name="branches">
<input type="text" placeholder="Services Provided" name="services_provided">
<input type="text" placeholder="Other Information" name="other_information">
<input type="text" placeholder="First Name" name="first_name">
@mccombs
mccombs / craft_general.php
Last active Aug 29, 2015
Sample Craft general config file
View craft_general.php
<?php
return array(
'domain.com' => array(
//'devMode' => true,
'omitScriptNameInUrls' => true,
'environmentVariables' => array(
'siteUrl' => 'http://domain.com/',
'fileSystemPath' => '',
)
@mccombs
mccombs / craft_db.php
Last active Aug 29, 2015
Sample Craft db file
View craft_db.php
<?php
if ($_SERVER['SERVER_NAME'] == 'local.sitename')
{
return array(
'server' => 'localhost',
'user' => 'user',
'password' => 'password',
'database' => 'database',
'tablePrefix' => 'craft',
@mccombs
mccombs / gist:e6872238ac2cf79907b5
Created May 6, 2015
BASH - Sync DB | Prod -> Local
View gist:e6872238ac2cf79907b5
#!/bin/bash
# Big thanks to @sam_h for this! Works like a charm.
#
# This script assumes you have ssh access to a remote server
# Both databases are backed up to sql files in the same directory
# this script is executed from.
# Usage:
# 1. Make sure this file is executable with `chmod +x mysqlsync`
# 2. Set the credentials for the variables at the top
@mccombs
mccombs / gist:b6135b5e525d32da553d
Created Apr 23, 2015
Git remote set-url orgin
View gist:b6135b5e525d32da553d
git remote set-url origin git@github.com:user/repo.git
@mccombs
mccombs / Gulp
Last active Aug 29, 2015
Take a big Gulp!
View Gulp
var gulp = require('gulp'),
less = require('gulp-less'),
livereload = require('gulp-livereload'),
notify = require('gulp-notify');
minifycss = require('gulp-minify-css');
gutil = require('gulp-util');
gulp.task('less', function() {
return gulp.src(['../blog/css/*.less'], {base: '../blog/css/'})
.pipe(less().on('error', function(err){
You can’t perform that action at this time.