Skip to content

Instantly share code, notes, and snippets.

View andrewmallis's full-sized avatar

Andrew_Mallis andrewmallis

View GitHub Profile
@bassettsj
bassettsj / post-commit
Created August 30, 2014 16:01
Git hooks to compile the assets to production
#!/bin/sh
echo
if [ -a .commit ]
then
rm .commit
grunt --base=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz --gruntfile=$HOME/kalabox/www/greenbiz/sites/all/themes/greenbiz/Gruntfile.coffee
git add sites/all/themes/greenbiz/css
git add sites/all/themes/greenbiz/js/dist
git add sites/all/themes/greenbiz/styleguide
git commit --amend -C HEAD --no-verify
@aaronbauman
aaronbauman / p-connect.sh
Last active June 10, 2020 09:28
Connect to a Pantheon database in Sequel Pro
#!/bin/sh
# exit on any errors:
set -e
if [ $# -lt 1 ]
then
echo "Usage: $0 @pantheon-alias"
exit 1
fi
@labboy0276
labboy0276 / k2m_force_title.info
Last active January 26, 2016 22:06
Force FPP Admin Title, Change as needed
name = Kettering Force Title
description = This module is for forcing the admin title on all FPPs that are reusable.
package = Kettering
core = 7.x
version = 7.x-0.1
dependencies[] = fieldable_panels_panes
@JavierCane
JavierCane / listGoogleDriveSharedDocuments.js
Last active February 21, 2024 11:54 — forked from woodwardtw/tellmeyoursecrets.js
Google Spreadsheet script that lists all the shared documents inside a specified folder and all its subfolders recursively. Skips out the documents shared internally (with specified email addresses)
function start() {
const sheet = SpreadsheetApp.getActiveSheet();
sheet.appendRow(["Name", "Sharing Access", "Sharing Permission", "Get Editors", "Get Viewers", "Date", "Size", "URL", "Download", "Description", "Type"]);
const folder = DriveApp.getFolderById("folder_id_copied_from_the_url_without_the_google_drive_domain");
recursiveListSharedFiles(folder, sheet);
}
function recursiveListSharedFiles(folder, sheet) {