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 | |
/** | |
* @file `src/FancyService.php` | |
* | |
* Fancy service provides lyric segments from Iggy Azalea's song, "Fancy". | |
*/ | |
namespace Drupal\example; | |
use Drupal\Core\Language\LanguageManagerInterface; |
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 | |
/** | |
* @file `tests/src/Kernel/ExampleHomepageResolverTest.php` | |
* | |
* Provides kernel tests for the HomepageEnhancer. | |
*/ | |
namespace Drupal\Tests\example\Kernel; | |
use Drupal\Core\Datetime\DrupalDateTime; |
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
server { | |
listen *:80; | |
server_name jupyter.l; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Host $http_host; | |
proxy_pass http://127.0.0.1:8885; | |
} | |
} |
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 | |
// Load the autoloader. | |
$autoloader = !isset($autoloader) ? $autoloader : require_once '/path/to/drupal_root/autoload.php'; | |
// Bootstrap drupal. | |
$request = \Symfony\Component\HttpFoundation\Request::createFromGlobals(); | |
$kernel = \Drupal\Core\DrupalKernel::createFromRequest($request, $autoloader, 'prod'); | |
// There are a couple of files not loaded by the autoloader. | |
$kernel->loadLegacyIncludes(); |
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
[profile] | |
layer_height = 0.2 | |
wall_thickness = 0.7 | |
retraction_enable = True | |
solid_layer_thickness = .6 | |
fill_density = 100 | |
print_speed = 60 | |
print_temperature = 187 | |
print_temperature2 = 200 | |
print_temperature3 = 0 |
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 | |
# Run as root. If using sudo, use "sudo -i -u root" | |
# This script is for building octoprint on a zim cubieboard. | |
# I have since moved to building a binary version of octoprint in an armhf qemu vm. | |
# I am using a build virtual machine to build octoprint. Qemu immulates armhf and | |
# is used to hostthe build machine. | |
# | |
# Debian Wheezy armhf images were obtained from: https://people.debian.org/~aurel32/qemu/armhf/ |
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 | |
# This script is for initializing a zim and installing a pre-compiled version of octoprint. | |
# Run as root. If using sudo, use "sudo -i -u root" | |
echo "Making root writable" | |
mount -o remount,rw / | |
echo "Add some aliases for root." |
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 | |
/** | |
* Creates a new snapshot of the current state of configuration. | |
*/ | |
\Drupal::service('config.manager')->createSnapshot(\Drupal::service('config.storage'), \Drupal::service('config.storage.snapshot')); | |
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 | |
# .travis.yml - Drupal 8 Travis CI Integration | |
language: php | |
sudo: false | |
env: | |
global: | |
# The name of the moduel to run tests on (this module). | |
- DRUPAL_MODULE=example |
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 | |
# NGINX Configuration file for Drupal 8 | |
# Redirect index to php. | |
location / { | |
try_files $uri @rewrite; | |
} | |
# Allow but don't log access to /favicon.ico and /robots.txt | |
location ~ (^/favicon\.ico$|^/robots\.txt$) { |
NewerOlder