Skip to content

Instantly share code, notes, and snippets.

Jeff Wigal jwigal

Block or report user

Report or block jwigal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 1and1-dns-ipv6.md

Issue with 1and1 account: our website uses 1and1 to host DNS, but we host the website itself on another server.

When I navigate to the website (firetrainingunlimited.com) the site was showing up as a 1and1 domain landing page.

Customer support technician says that it looks fine to him, the page was coming up correctly without a landing page.

They ask me to dump my cache, clear cookies, and restart my computer. No resolution. Same issue happening on multiple computers, and multiple devices.

1and1 control panel that allows me to manage the domain is not working, and is throwing a 500 error.

@jwigal
jwigal / outer_inner_scope.php
Created Jan 31, 2014
global scope isn't global any more...
View outer_inner_scope.php
<?php
$global1 = "boo!";
function outer(){
global $global1;
$global2 = "ya!";
echo "<p>outer says global1 is $global1</p>";
function inner(){
@jwigal
jwigal / gist:2315831
Created Apr 6, 2012
Kopywriting Kourse from AppSumo... any wonder why women aren't working in tech?
View gist:2315831
Date: Thu, 5 Apr 2012 19:12:32 -0400
To: jwigal@gmail.com
From: "KopywritingKourse" <nevmed@gmail.com>
Sender: kopywriting@aweber.com
Subject: why shitty stuff sometimes works better
If it's all dudes at a party, a hot chick will STAND OUT.
If every magazine ad has a hot chick on it, a big-ole picture of cute Pug will STAND OUT.
View gist:1749452
=begin
Delayed Job will let you do this:
MyMailer.delay.mailer_action(args)
but you can't do this because of yaml serialization:
MyMailer.mailer_action(args).delay.deliver
Most cases this works fine, but I need this as a before_destroy callback. my data is gone when
@jwigal
jwigal / car.rb
Created Jan 22, 2012 — forked from otobrglez/car.rb
Experimenting with observer pattern (publish/subscribe pattern) in Ruby
View car.rb
# Simple Car class. Nothing special here...
class Car
attr_accessor :brand
attr_accessor :model
attr_accessor :year
def initialize(brand, model, year=2011)
@brand, @model, @year = brand, model, year
end
You can’t perform that action at this time.