I hereby claim:
- I am teknikqa on github.
- I am teknikqa (https://keybase.io/teknikqa) on keybase.
- I have a public key whose fingerprint is 2DF7 6C8B 02F3 92F7 885B 6D14 0F8E 60C9 55D0 5294
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Responsive Design Testing</title> | |
<style> | |
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; } | |
.wrapper { width: 6000px; } | |
.frame { float: left; } | |
h2 { margin: 0 0 5px 0; } |
<?php | |
/** | |
* Download helper to download files in chunks and save it. | |
* | |
* @author Syed I.R <[email protected]> | |
* @link https://github.com/irazasyed | |
* | |
* @param string $srcName Source Path/URL to the file you want to download | |
* @param string $dstName Destination Path to save your file | |
* @param integer $chunkSize (Optional) How many bytes to download per chunk (In MB). Defaults to 1 MB. |
#allows a single uri through the .htaccess password protection | |
SetEnvIf Request_URI "/testing_uri$" test_uri | |
#allows everything if its on a certain host | |
SetEnvIf HOST "^testing.yoursite.com" testing_url | |
SetEnvIf HOST "^yoursite.com" live_url | |
Order Deny,Allow | |
AuthName "Restricted Area" | |
AuthType Basic |
# new drupal vagrant install | |
# A function, when added to bash profile, clones the Vagrant Drupal-Dev-VM (https://github.com/geerlingguy/drupal-dev-vm), | |
# augments config (based on d7 or d8), renames the VM to something other than drupaltest.dev and starts vagrant up. Uses | |
# include <newd 7 my-drupal-site> and <newd 8 my-other-drupal-site>. | |
function newd { | |
if [ $2 == ]; then | |
echo 'USAGE: newd8 <version> <sitename>' |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* This script will initialize the fields for controlling research and publications | |
* with the default value for all users. This field was added later and so this | |
* step is necessary. | |
* | |
* Run this script only if email notifications are disabled or if reroute email | |
* is enabled. | |
* |
#!/usr/bin/env bash | |
# | |
# This script will purge the Varnish cache on Acquia for the given URLs | |
# Requires cURL | |
# | |
# Usage purge-cache.sh <url> | |
# Author: Nick Mathew <nm7.org> | |
# Date: 2016-04-03 | |
# |
<?php | |
/** | |
* @file | |
* Drush policies to restrict what is allowed for certain drush commands. | |
*/ | |
/** | |
* Prevent production databases from being overwritten using drush sql-sync. | |
*/ |
#!/usr/bin/env bash | |
# Clear cache of the following tables using the Drush SQL command | |
# The SQL commands can also be used directly in MySQL | |
drush sql-cli | |
TRUNCATE TABLE cache; | |
TRUNCATE TABLE cache_block; | |
TRUNCATE TABLE cache_bootstrap; | |
TRUNCATE TABLE cache_field; | |
TRUNCATE TABLE cache_filter; |
#!/bin/bash | |
# Retrieves past and present logs for a site in Acquia Enterprise | |
# Put this in your /usr/local/bin folder and chmod it 0755 | |
# Then you can search/view logs quickly from any terminal | |
if [ "$1" = "" ] || [ "$2" = "" ] | |
then | |
echo "Retrieves past and present logs for a site in Acquia Enterprise" | |
echo "Usage: $0 <site-alias> <site-environment>" | |
echo "Example: $0 qrk test" |