Skip to content

Instantly share code, notes, and snippets.

View sam452's full-sized avatar

sam walton sam452

View GitHub Profile
<?php
use Drupal\DrupalExtension\Context\RawDrupalContext;
use Behat\Behat\Context\SnippetAcceptingContext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\Gherkin\Node\TableNode;
use Behat\Behat\Tester\Exception\PendingException;
/**
* Defines application features from the specific context.
@sam452
sam452 / parallels-tools-install.log
Last active March 28, 2018 13:24
Error installing Parallels Tools on Mint 18
Wed Mar 28 08:21:22 CDT 2018
Start installation or upgrade of Guest Tools
new version of parallels tools
Installed Guest Tools were not found
Perform installation into the /usr/lib/parallels-tools directory
cat: /usr/lib/parallels-tools/kmods/../version: No such file or directory
Start installation of prl_eth kernel module
make: Entering directory '/usr/lib/parallels-tools/kmods'
cd prl_eth/pvmnet && make
make[1]: Entering directory '/usr/lib/parallels-tools/kmods/prl_eth/pvmnet'
phpbrew -d ext install gd -- --with-libdir=lib/x86_64-linux-gnu --with-gd=shared --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr/include/freetype2/ft2build.h --with-xpm-dir=/usr
@sam452
sam452 / app.js
Created August 20, 2017 20:13
Add question
'use strict';
// Declare app level module which depends on views, and components
angular.module('myApp', [
'ngRoute',
'myApp.ProfileView',
'myApp.GroupView',
'myApp.QuestionView',
'myApp.version'
]).
@sam452
sam452 / page.tpl.php
Last active May 19, 2017 02:58
zen files
<?php
/**
* @file
* Returns the HTML for a single Drupal page.
*
* Complete documentation for this file is available online.
* @see https://drupal.org/node/1728148
*/
?>
@sam452
sam452 / data.sql
Created September 8, 2016 02:27
Drupal data blob
field.storage.contact_message.field_referral_made_to
sa:16:{s:4:"uuid";
s:36:"c3da7198-edff-46de-a295-fb458f26af5f";
s:8:"langcode";
s:2:"en";
s:6:"status";
b:1;
s:12:"dependencies";
a:1:{s:6:"module";
@sam452
sam452 / mysqltuner.txt
Created April 19, 2016 18:42
mysqltuner output 2GB
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.47-0+deb8u1-log
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -----------------------------------------------------------------
[--] Status: +ARCHIVE +BLACKHOLE +CSV -FEDERATED +InnoDB +MEMORY +MRG_MYISAM +MyISAM +PERFORMANCE_SCHEMA
[--] Data in InnoDB tables: 306M (Tables: 549)
[--] Data in MyISAM tables: 5M (Tables: 203)
[!!] Total fragmented tables: 549
@sam452
sam452 / Show_status.txt
Created April 14, 2016 21:52
5.5.47-0+deb8u1-log
SHOW GLOBAL STATUS:
+------------------------------------------+-------------+
| Variable_name | Value |
+------------------------------------------+-------------+
| Aborted_clients | 0 |
| Aborted_connects | 1 |
| Binlog_cache_disk_use | 0 |
| Binlog_cache_use | 0 |
| Binlog_stmt_cache_disk_use | 0 |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Cache;
// use Zendesk\API\HttpClient as Zendesk;
use Flash;
@sam452
sam452 / composer.json
Last active March 22, 2016 20:19
Where to add a new repository?
{
"name": "sroutier/laravel-5.1-enterprise-starter-kit",
"description": "A Starter project based on Laravel 5.1 with theme support, optional LDAP/AD authentication, dynamic route authorization, etc...",
"keywords": [
"framework",
"laravel",
"starter kit",
"template",
"theme",
"LDAP",