Skip to content

Instantly share code, notes, and snippets.

View joetower's full-sized avatar

Joe Tower joetower

View GitHub Profile
@idiazroncero
idiazroncero / container.html.twig
Last active April 27, 2024 22:32
Drupal 8 // removes the [opinionated: unnecesary] class 'views-element-container' from rendered views.
{#
/**
* @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
@seoagentur-hamburg
seoagentur-hamburg / .htaccess
Last active November 13, 2024 09:48
UPDATE 2024/03: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# 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
########################################################################
@ryanmaclean
ryanmaclean / disable_k400r_tap_click.md
Last active October 24, 2024 14:40
Turn off Logitech k400r Tap to Click

Turn off k400r Tap to Click

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.

Source

@kyledrake
kyledrake / ferengi-plan.txt
Last active October 3, 2024 15:12
How to throttle the FCC to dial up modem speeds on your website using Nginx
# 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 / {
@chasingmaxwell
chasingmaxwell / vagrant-anywhere
Created March 11, 2014 16:34
Run the vagrant command for a particular project from anywhere
#!/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.
@nimbupani
nimbupani / index.html
Created December 2, 2011 05:00
Showing latest post on home page with Jekyll
---
layout: default
---
<div class="blog-index">
{% assign post = site.posts.first %}
{% assign content = post.content %}
{% include post_detail.html %}
</div>
@americkson
americkson / gist:1173714
Last active July 8, 2019 15:49
Drupal Goodies

A collection of Drupal snippets.

Home / Front Page Tricks

Remove the Default message on home page with our creating a post

<?php if(drupal_is_front_page()) {unset($page['content']['system_main']['default_message']);} ?>