Skip to content

Instantly share code, notes, and snippets.

View burnsjeremy's full-sized avatar

Jeremy Burns burnsjeremy

View GitHub Profile

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
# This script facilitates obtaining the latest DB data from the production
# Drupal 5 site.
# The script gets an ordered dump of the D5 database, and commits it to the
# [email protected]:mysite_d5.git repository master branch.
# We make use of the rebuild.config file, so please make sure that your
# settings are correct there!
# We also assume that your drush aliases are setup correctly for
# @mysite.dev and @mysite_d5.prod. Please check mysite.aliases.drushrc.example,
# make sure your @mysite.dev alias is set up correctly, rename the file
# to mysite.aliases.drushrc.php and move it into your ~/.drush directory.
@burnsjeremy
burnsjeremy / SassMeister-input-HTML.haml
Created June 19, 2014 07:01
Generated by SassMeister.com.
- # Video Page
.flexbox
%nav#mainNav
%h1 Navigation/Ticker
%main
%article
%section.groupedInfo
%figure.video
%h1 Video & Video Description
@burnsjeremy
burnsjeremy / 00_README
Last active April 6, 2018 19:23 — forked from dogeared/00_README
Extracting / Exporting custom emoji from Slack
This can help you copy custom emojis from one team to another team in slack easily.
I wanted to give my new team some updates to their emojis b/c they were missing the usual emojis that I was used to seeing.
I went to google and found someone had came up with something that could work but I made some updates to make it easier to use and used some suggestions from the commenters to finish the script up also.
*******
This builds off the excellent work of @lmarkus.
The scripts below can be used in conjunction with the Slack Emoji Tools Google Chrome extension to export emojis from
one Slack team and import into another team.
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],