A collection of Drupal snippets.
<?php if(drupal_is_front_page()) {unset($page['content']['system_main']['default_message']);} ?>
--- | |
layout: default | |
--- | |
<div class="blog-index"> | |
{% assign post = site.posts.first %} | |
{% assign content = post.content %} | |
{% include post_detail.html %} | |
</div> |
#!/bin/sh | |
# Run the vagrant command for a particular project from anywhere. | |
# | |
# To use: | |
# 1. Put this file in ~/bin/ or some other executable path (also make sure the | |
# file is executable). | |
# 2. Insert the path to the directory containing your project's Vagrantfile | |
# where indicated below. | |
# 3. Rename this file to match the project you're using it for. |
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
Without even installing drivers, the Logitech k400r tap-to-click functionality can be turned off by holding down the "FN" (function) key and the left click button on the trackpad.
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
{# | |
/** | |
* @file | |
* Theme override of a container used to wrap child elements. | |
* | |
* Used for grouped form items. Can also be used as a theme wrapper for any | |
* renderable element, to surround it with a <div> and HTML attributes. | |
* See \Drupal\Core\Render\Element\RenderElement for more | |
* information on the #theme_wrappers render array property, and | |
* \Drupal\Core\Render\Element\container for usage of the container render |