This file contains hidden or 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 | |
// Import arbitrary config from a variable. | |
$config = \Drupal::service('config.factory')->getEditable('filter.format.basic_html'); | |
$config->setData($data)->save(); | |
// Or, re-import the default config for a module or profile, etc. | |
\Drupal::service('config.installer')->installDefaultConfig('module', 'my_custom_module'); | |
// Or, import YAML config an arbitrary directory. |
This file contains hidden or 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
custom_view: | |
css: | |
component: | |
css/custom_view.css: {} |
This file contains hidden or 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": "drupal-composer/drupal-project", | |
"description": "Project template for Drupal 8 projects with composer", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"authors": [ | |
{ | |
"name": "", | |
"role": "" | |
} |
This file contains hidden or 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
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Firefox Developer Edition | |
Icon=/opt/firefox/browser/icons/mozicon128.png | |
Path=/opt/firefox/firefox | |
Exec=/opt/firefox/firefox --class="firefox-developer" -P dev-edition-default %u | |
StartupNotify=true | |
StartupWMClass=firefox-developer |
This file contains hidden or 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 program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
# | |
# Version 3, enhanced for Ubuntu 13.X+, Fedora 19+, and similar distros. |
This file contains hidden or 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
Setup | |
----- | |
- How to install Timidity++: https://help.ubuntu.com/community/Midi/SoftwareSynthesisHowTo | |
- Fix issues to get Ardour running (add user to audio group): http://manual.ardour.org/setting-up-your-system/platform-specifics/ubuntu-linux/ | |
- Fix issues to get Ardour running (mv /etc/security/audio.conf.disabled to /etc/security/audio.conf): https://community.ardour.org/node/7237 | |
- Setup MIDI in Jack: http://manual.ardour.org/setting-up-your-system/setting-up-midi/midi-on-linux/ | |
Ardour plugins | |
-------------- |
This file contains hidden or 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 | |
/** | |
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
* | |
* INSTRUCTIONS: | |
* 1. Edit the variables below | |
* 2. Upload this script to your server somewhere it can be publicly accessed | |
* 3. Make sure the apache user owns this script (e.g., sudo chown www-data:www-data webhook.php) | |
* 4. (optional) If the repo already exists on the server, make sure the same apache user from step 3 also owns that |
This file contains hidden or 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
function onEachFeature(feature, layer) { | |
var coordinates = feature.geometry.coordinates[0]; | |
var coordinatesString = ''; | |
$.each(coordinates, function(key, value) { | |
coordinatesString = coordinatesString + '[' + value + ']'; | |
}); | |
var popup = L.popup().setContent(coordinatesString); | |
layer.bindPopup(popup); | |
} |