Skip to content

Instantly share code, notes, and snippets.

View sarahg's full-sized avatar
🏂

Sarah German sarahg

🏂
View GitHub Profile
git rm $(git ls-files --deleted)
@sarahg
sarahg / Git log
Created October 17, 2013 15:45
Pretty readable git log output from the last week of commits. Nice for remembering what's in-progress on a project.
git log --since "1 week ago" --pretty=oneline
<?php
/**
* @file
* Default theme implementation to display the basic html structure of a single
* Drupal page.
*
* Variables:
* - $css: An array of CSS files for the current page.
* - $language: (object) The language the site is being displayed in.
@sarahg
sarahg / Git changed list
Created December 18, 2013 16:44
Git - List files that changed in a commit
git diff-tree --no-commit-id --name-only -r 6fe0ace6404dbf0f9cadce17012bb17c4450a3d0
SELECT revision_id, count(*) as Count FROM table GROUP BY revision_id HAVING count(*) > 1;
<!-- BLOCK 1 -->
<div class="sidebar-feature-box">
<img src="/sites/default/themes/learning_curve/images/sidebar-img-1.jpg" alt="">
<h2>Old tech, new issues</h2>
<p>What have you done with your classroom tech? Submit your answers with #lcsubmissions</p>
<a class="lc-link" href="#">View &raquo;</a>
</div>
<!-- BLOCK 2 -->
<div class="sidebar-feature-box">
@sarahg
sarahg / gist:bc65984c03bd36bb5566
Last active August 29, 2015 14:02
Marketplace Weekend launch
- drush pm-disable custom_features_panels_latest_comments
- drush pm-disable custom_features_views_latest_comments
- drush pm-disable calendar
- drush pm-uninstall custom_features_episode_archive_views
- drush pm-uninstall calendar
- update code
- drush pm-enable marketplace_episode_calendar
- drush pm-enable weekend
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="//a.disquscdn.com/images/disqus-v3.ico" type="image/vnd.microsoft.icon">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="keywords" content="Disqus, disqus.com, comments, blog, blogs, discussion">
<meta name="description" content="Disqus is a global comment system that improves discussion on websites and connects conversations across the web.">
<link rel="stylesheet" href="//a.disquscdn.com/styles/v3/global.css" type="text/css">
<title>DISQUS | Maintenance (503)</title>
</head>
@sarahg
sarahg / Drupal Best Practices for Government
Last active August 29, 2015 14:04
Notes from DrupalCamp Wisconsin | July 25, 2014
DrupalCamp WI - Drupal Best Practices for Government - Sheldon Rampton (@sheldonrampton / https://www.drupal.org/user/13085)
============================================================================================================================
Challenges that governments face
---------------------------------
- Multiple stakeholders
- High level of public scrutiny
- Bureaucratic, legal and policy requirements might not be compatible with efficient web dev