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

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 ( 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 / outer_inner_scope.php
Created Jan 31, 2014
global scope isn't global any more...
View outer_inner_scope.php
$global1 = "boo!";
function outer(){
global $global1;
$global2 = "ya!";
echo "<p>outer says global1 is $global1</p>";
function inner(){
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
From: "KopywritingKourse" <>
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
Delayed Job will let you do this:
but you can't do this because of yaml serialization:
Most cases this works fine, but I need this as a before_destroy callback. my data is gone when
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
You can’t perform that action at this time.