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
$service = New-WebServiceProxy -Uri http://143.166.84.118/services/assetservice.asmx?WSDL | |
if($args.count -ne 0){ | |
$serial = $args[0] | |
} | |
else{ | |
$system = Get-WmiObject win32_SystemEnclosure | |
$serial = $system.serialnumber | |
} | |
$guid = [guid]::NewGuid() | |
$info = $service.GetAssetInformation($guid,'check_warranty.ps1',$serial) |
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
$ cd drupal-multisite-subtree | |
$ ### This is a basic Drupal 7 install | |
$ ls | |
CHANGELOG.txt INSTALL.txt authorize.php misc sites | |
COPYRIGHT.txt LICENSE.txt cron.php modules themes | |
INSTALL.mysql.txt MAINTAINERS.txt includes profiles update.php | |
INSTALL.pgsql.txt README.txt index.php robots.txt web.config | |
INSTALL.sqlite.txt UPGRADE.txt install.php scripts xmlrpc.php | |
$ ### Lets add a new multisite | |
$ git subtree add --prefix sites/site1 [email protected]:mortenson/site1.git master |
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
$ ### Checkout and push a new branch | |
$ git checkout -b site1-update | |
Switched to a new branch 'site1-update' | |
$ git push -u origin site1-update | |
Total 0 (delta 0), reused 0 (delta 0) | |
To [email protected]:mortenson/drupal-multisite-subtree.git | |
* [new branch] site1-update -> site1-update | |
Branch site1-update set up to track remote branch site1-update from origin. | |
$ ### Update the site1 subtree | |
$ git subtree pull --prefix sites/site1 [email protected]:mortenson/site1.git master |
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
<html> | |
<head> | |
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script> | |
<script> | |
$(function() { | |
if (typeof init === 'undefined') { | |
init = true; | |
setInterval(function () { | |
$.get('', function (data) { | |
var doc = document.open('text/html', 'replace'); |
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
diff --git a/src/Plugin/Field/FieldWidget/EntityReference.php b/src/Plugin/Field/FieldWidget/EntityReference.php | |
index 004ab98..935c05f 100644 | |
--- a/src/Plugin/Field/FieldWidget/EntityReference.php | |
+++ b/src/Plugin/Field/FieldWidget/EntityReference.php | |
@@ -33,7 +33,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; | |
* description = @Translation("Uses entity browser to select entities."), | |
* multiple_values = TRUE, | |
* field_types = { | |
- * "entity_reference" | |
+ * "entity_reference", |
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
import cv2 | |
import time | |
import sys | |
import PIL | |
from PIL import Image | |
from PIL import ImageOps | |
# "0" is the port of your built-in webcam, probably. | |
camera_port = 0 | |
# Number of frames to ramp-up the camera. |
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 DebugTest extends YourBrokenTest { | |
/** | |
* Overrides a broken test method and saves HTML at the point of failure. | |
*/ | |
public function testName() { | |
try { | |
parent::testName(); |
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
{ | |
"name": "mortenson/example", | |
"minimum-stability": "dev", | |
"authors": [ | |
{ | |
"name": "Samuel Mortenson", | |
"email": "[email protected]" | |
} | |
], | |
"repositories": [ |
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
# Extend the official Drupal image. | |
FROM drupal:8.1.7-apache | |
# Install required binaries. | |
RUN apt-get update && apt-get install netcat mysql-client -y | |
# Safely remove the normal modules directory. | |
RUN rm /var/www/html/modules/README.txt && rmdir /var/www/html/modules | |
# Install Composer. |
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
version: '2' | |
services: | |
web: | |
build: . | |
ports: | |
- "8000:80" | |
volumes: | |
- ./modules:/var/www/html/modules | |
- ./files:/var/www/html/sites/default/files | |
links: |
OlderNewer