Skip to content

Instantly share code, notes, and snippets.

View SKBruck's full-sized avatar
🌈
It's happening.

Sarah SKBruck

🌈
It's happening.
View GitHub Profile
<?php
//Edit here
$Domain = "testingsite.nfshost.com/";
$LeadToEmail = "sarah@arsmentis.com"; // change to your email for testing
//End edits
//Do not edit below
$RedirectToURL = "http://www.".$Domain;
$MessageFrom = "info@".$Domain;
$MessageSubject = "New Lead from Website";
diff --git a/configure b/configure
index 54ff8da..8c015fe 100755
--- a/configure
+++ b/configure
@@ -693,6 +693,7 @@ infodir
docdir
oldincludedir
includedir
+runstatedir
localstatedir
[2015-08-20 23:17:35] requirements_debian_update_system
requirements_debian_update_system ()
{
__rvm_try_sudo apt-get --quiet --yes update || {
\typeset __ret=$?;
case ${__ret} in
100)
rvm_error "There has been error while updating 'apt-get', please give it some time and try again later.
404 errors should be fixed for rvm to proceed. Check your sources configured in:
/etc/apt/sources.list
$(':radio').click(function() {
if ( $('#amount-custom').is(':checked') ) {
$('#amount-custom-value').attr('required', '');
$('#amount-custom-value').removeAttr('disabled', '');
} else {
$('#amount-custom-value').val('');
$('#amount-custom-value').trigger("change");
$('#amount-custom-value').attr('disabled', '');
$('#amount-custom-value').removeAttr('required', '');
}
@SKBruck
SKBruck / membershipdiff
Created August 6, 2015 03:48
membership.js diff
diff --git a/js/membership.js b/js/membership.js
index e01f169..0129efa 100644
--- a/js/membership.js
+++ b/js/membership.js
@@ -27,11 +27,6 @@ $(function () {
e.preventDefault();
fullName = $('#full-name').val().trim();
- if (!fullName) {
- alert('Please enter your full name!');
@SKBruck
SKBruck / gitdiff
Created July 23, 2015 19:42
Git diff of my index.php for the pagination
<div class="row">
- <div class="col-md-2 nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
+ <div class="col-md-2 nav-next alignleft"><?php previous_posts_link( 'Newer posts' ); ?></div>
<?php while(have_posts()) : the_post(); ?>
<div class="col-md-2 blog-post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<p><?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { the_excerpt(); } ?></p>
</div>
<?php endwhile; wp_reset_query(); ?>
- <div class="col-md-2 nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
@SKBruck
SKBruck / 000-default
Created July 20, 2015 04:20
Apache sites enabled
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@SKBruck
SKBruck / output
Created June 13, 2015 06:30
output of git push heroku
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
@SKBruck
SKBruck / package
Created June 13, 2015 04:26
my package.json
{
"name": "heroku-template",
"version": "1.0.0",
"description": "a test description",
"main": "index.js",
"scripts": {
"test": "test"
},
"repository": {
"type": "git",
@SKBruck
SKBruck / contact
Created December 21, 2014 23:35
Gist of the contact form for Ars Mentis contact page
<form class="contact">
<p><label>Name: </label><input type="text" name="fullname" class="name"></p>
<p><label>E-mail: </label><input type="email" name="email" class="mail"></p>
<p><textarea name="message" rows="10" cols="50"></textarea></p>
<p><input type="submit" value="Submit" class="submit"></p>
</form>