This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
spl_autoload_register( function ( $class ) { | |
// project-specific namespace prefix | |
$prefix = 'my_plugin\\'; | |
// base directory for the namespace prefix | |
$base_dir = __DIR__ . '/includes/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
REMOTE_URL="https://staging.example.com" | |
LOCAL_URL="http://example.dev" | |
REMOTE_PATH="/home/staging_example/public_html" | |
LOCAL_PATH="/var/www/example.dev" | |
SSH_HOST="[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class TrashTestCase extends DrupalWebTestCase { | |
# [...] | |
public function testAdminContentNodesList() { | |
# Administrator account | |
$permissions = module_invoke_all('permission'); | |
$permissions = array_keys($permissions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
for file in *; do mv "$file" `echo $file | tr '_' '-'` ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#List vms | |
VBoxManage list vms | |
#get status of time sync | |
VBoxManage getextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled | |
#NOTE: Make sure to restart the VM after changing these settings. | |
#disable time sync | |
VBoxManage setextradata <vm-name> VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# slugify.sh by Ronan | |
# | |
# Distributed under terms of the MIT license. | |
# | |
for file in *.mp4; do | |
filename=${file%.*} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mock_file = {name: 'myfile.png', size: 10000}; | |
mock_file.status = Dropzone.SUCCESS; | |
mock_file.accepted = true; | |
this.emit("addedfile", mock_file); | |
this.emit("complete", mock_file); | |
this.files.push(mock_file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
/** | |
* @file | |
* Theme override to display a view of unformatted rows. | |
* | |
* Available variables: | |
* - title: The title of this group of rows. May be empty. | |
* - rows: A list of the view's row items. | |
* - attributes: The row's HTML attributes. | |
* - content: The row's content. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Author: @kayintveen | |
// Credits: Microdesign B.V | |
// Created November 2015 | |
//===================================== | |
// Enable Error Reporting | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); |