Skip to content

Instantly share code, notes, and snippets.

Bruno De Bondt brunodbo

Block or report user

Report or block brunodbo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@brunodbo
brunodbo / import.php
Created Apr 29, 2019 — forked from mikecrittenden/import.php
Importing Drupal 8 config programmatically
View import.php
<?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.
@brunodbo
brunodbo / mymodule.libraries.yml
Created May 12, 2017 — forked from steffenr/mymodule.libraries.yml
Attach a CSS or JS library to a View in Drupal 8
View mymodule.libraries.yml
custom_view:
css:
component:
css/custom_view.css: {}
@brunodbo
brunodbo / composer.json
Created Apr 10, 2017 — forked from joelpittet/composer.json
D8 Composer & Patches
View composer.json
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0+",
"authors": [
{
"name": "",
"role": ""
}
@brunodbo
brunodbo / firefox-developer-edition.desktop
Last active Sep 13, 2015 — forked from jaywink/firefox-developer-edition.desktop
Firefox Developer Edition (or any edition), separate Unity launcher icon (Ubuntu 14.04)
View firefox-developer-edition.desktop
[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
View timecapsule-handler
#!/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.
@brunodbo
brunodbo / Ubuntu audio
Last active Jan 11, 2016
Collection of links related to making music on a Ubuntu system
View Ubuntu audio
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
--------------
@brunodbo
brunodbo / git-php-webhook.php
Created Aug 20, 2014
A basic webhook for deploying updates to repos on Github to your local server
View git-php-webhook.php
<?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
@brunodbo
brunodbo / gist:7622091
Created Nov 24, 2013
Leaflet onEachFeature() function to show polygon coordinates in a popup. Useful for cleaning a up geodata file.
View gist:7622091
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);
}
You can’t perform that action at this time.