Skip to content

Instantly share code, notes, and snippets.

@ianlintner-wf
ianlintner-wf / kaboom.sql
Last active January 2, 2016 13:09
Truncate all tables mysql in a database.
SELECT Concat('TRUNCATE TABLE ', TABLE_NAME, ';') FROM INFORMATION_SCHEMA.TABLES
@ianlintner-wf
ianlintner-wf / drush_add_role.sh
Last active January 2, 2016 13:09
drush manage users for fun and profit
drush user-add-role "administrator" 3
@ianlintner-wf
ianlintner-wf / index.html
Last active January 2, 2016 20:29
HTML/CSS3 IPad
<body>
<div class="ipad">
<div class="screen">
</div>
</div>
</body>
@ianlintner-wf
ianlintner-wf / multi-site-overview.txt
Created January 14, 2014 22:26
Drupal Multi-Site Setup (Update single site)
1. Add directory to drupal website
2. Add config settings.php to directory
3. Profit
@ianlintner-wf
ianlintner-wf / Horizontal-Align-UL.markdown
Created January 17, 2014 19:00
A Pen by Ian Lintner.
@ianlintner-wf
ianlintner-wf / drush_change_theme.sh
Last active January 3, 2016 22:49
Drush Change Theme
#Get theme status
drush status theme
#Change default theme
drush vset theme_default seven
#Change admin theme
drush vset admin_theme seven
#! /bin/bash
#name resotre script restore.sql to automate via script
echo -n "Specify Database: "
read -e DB
setterm -background $DB
mysqldump -u dbuser -h server $DB << zap.sql
mysqldump -u dbuser -h server $DB << restore.sql
<link href="touch-icon-iphone.png" rel="apple-touch-icon-precomposed" />
<link href="touch-icon-ipad.png" rel="apple-touch-icon-precomposed" sizes="72x72" />
<link href="touch-icon-iphone4.png" rel="apple-touch-icon-precomposed" sizes="114x114" />
<link href="touch-icon-ipad3.png" rel="apple-touch-icon-precomposed" sizes="144x144" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Embedded SVG</title>
</head>
<body>
<h1>Embedded SVG</h1>
<a href="http://www.sitepoint.com/add-svg-to-web-page/">Source of this stuff.</a>
<!-- SVG code -->
@ianlintner-wf
ianlintner-wf / aliases.drushrc.php
Created February 3, 2014 16:35
SSH Public Key
<?php
$options['ssh-options'] = '-o PasswordAuthentication=no -i /home/YOURUSERNAME/.ssh/id_rsa';