Skip to content

Instantly share code, notes, and snippets.

View dbradley's full-sized avatar

Deacon Bradley dbradley

View GitHub Profile
@dbradley
dbradley / new-event-1.js
Created June 3, 2016 00:37
FB Advantage
<!-- Facebook Pixel Code - GabbyBernstein -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '1234567890');
fbq('track', "PageView");
@dbradley
dbradley / FB-new-lead-pixel.js
Created December 1, 2015 03:19
FB New Lead Pixel Code
<script>
fbq('track', 'Lead');
</script>
@dbradley
dbradley / fb-base-code-example.js
Last active March 13, 2023 08:51
Facebook Pixel Standard Events
<!-- Facebook Pixel Code Example -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','//connect.facebook.net/en_US/fbevents.js');
fbq('init', '1234567890');
fbq('track', "PageView");
===================================
Company Memo
FROM: Patty Lewis, Human Resources Director
TO: All Employees
DATE: October 1, 2008
RE: Gala Christmas Party
I'm happy to inform you that the company Christmas Party will take place on December 23rd, starting at noon in the private function room at the Grill House. There will be a cash bar and plenty of drinks! We'll have a small band playing traditional carols... feel free to sing along. And don't be surprised if our CEO shows up dressed as Santa Claus! A Christmas tree will be lit at 1:00 PM. Exchanges of gifts among employees can be done at that time; however, no gift should be over $10.00 to make the giving of gifts easy for everyone's pockets. This gathering is only for employees!
Our CEO will make a special announcement at that time!
Merry Christmas to you and your family,
iptables -t nat -I PREROUTING \
-s ! 127.0.0.1 -p tcp \
--dport 80 -j \
REDIRECT --to-ports 3333
#!/bin/bash -e
########################
# To use this script download this tarball and upload it as an attachment to the script
#
# http://rubyforge.org/frs/download.php/56227/rubygems-1.3.3.tgz
#########################
tar -xvf $RS_ATTACH_DIR/rubygems-1.3.3.tgz -C /usr/local/src/