Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Script to do security updates only in Drupal 6 and Drupal 7 using drush version 6.2.0
# Note: drush up --security-only updates modules as well as core
# run `which drush` to find this path
drush='/usr/bin/drush'
# where your drupal sites live
site_dir='/var/www'
echo "Scanning sites directory for drupal installations"
cd $site_dir
@sco-tt
sco-tt / README.md
Last active August 29, 2015 14:20 — forked from mbostock/.block
@sco-tt
sco-tt / README.md
Last active August 29, 2015 14:20 — forked from mbostock/.block
@sco-tt
sco-tt / acqoponline.js
Created August 15, 2018 22:51
ACQ Op Online
function __acqOp() {
$(document).ready(function () {
var acqOpVideos = {
/*
———————————————————————————————————————————————————————————————————————————————————————————————
|
| PROPERTIES
|
<?php
namespace App\Http\Controllers;
/**
* Written in a Laravel controller for ease of development.
* Nullable type hints (PHP 7.1 and up) in use.
*/
class TestController extends Controller
{
html,body{margin:0;font-family:'Montserrat','helvetica neue',sans-serif!important}
html,body{background-color: black;overflow-x: hidden}
.screenreader-only,.screenreader-only a {position: absolute;opacity: 0;z-index: -10;}
/* header */
#div_Header,#gdbHeaderWrapper,.topSection,.bottomSection,#ProcessForm {width:100%;float:left;clear:both}
#div_Header{margin-top:1em}
.bottomSection ul li {width:90%;text-align:right;color:#EE2669;font-size:1.1em}
.bottomSection ul li a {text-decoration: none;color: #fff}
.bottomSection ul li a:hover {color: #00ade1!important;}
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
@sco-tt
sco-tt / laravel-php-7
Last active November 8, 2019 19:11
Setting Up Scotchbox for Laravel on PHP 7
# Props to @Mizener on https://github.com/scotch-io/scotch-box/issues/157
sudo apt-get update
sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.0
sudo apt-get update
sudo apt-get install php7.0-mysql libapache2-mod-php7.0
sudo a2dismod php5
sudo a2enmod php7.0
BEGIN:VCALENDAR
PRODID:-//Google Inc//Google Calendar 70.9054//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:CCS HS Baseball
X-WR-TIMEZONE:America/Chicago
X-WR-CALDESC:
BEGIN:VEVENT
DTSTART:20200307T003000Z
@sco-tt
sco-tt / GA-copy-to-archive.js
Last active March 30, 2021 10:40
This google apps script copies values from a specific sheet within a Google Apps spreadsheet to a master spreadsheet. All values are added a a master acrhive where the name of the source sheet is automatically added as the first column. Additionally, all copy operations are logged in a separate sheet.
/* Menu set-up. From https://developers.google.com/apps-script/guides/menus#menus_for_add-ons_in_google_docs_or_sheets */
function onOpen(e) {
var menu = SpreadsheetApp.getUi().createAddonMenu(); // Or DocumentApp.
if (e && e.authMode == ScriptApp.AuthMode.NONE) {
// Add a normal menu item (works in all authorization modes).
menu.addItem('Copy Values to Master', 'copySheetValues');
} else {
// Add a menu item based on properties (doesn't work in AuthMode.NONE).
var properties = PropertiesService.getDocumentProperties();
var workflowStarted = properties.getProperty('workflowStarted');