Skip to content

Instantly share code, notes, and snippets.

View xurizaemon's full-sized avatar
🌻
SPRING

Chris Burgess xurizaemon

🌻
SPRING
View GitHub Profile
@mrosati84
mrosati84 / settings.php
Created November 22, 2016 15:21
Drupal 8 reverse proxy settings
<?php
/**
* Reverse Proxy Configuration:
*
* Reverse proxy servers are often used to enhance the performance
* of heavily visited sites and may also provide other site caching,
* security, or encryption benefits. In an environment where Drupal
* is behind a reverse proxy, the real IP address of the client should
* be determined such that the correct client IP address is available
@dubiouscript
dubiouscript / snip.sh
Last active July 10, 2020 01:34 — forked from mgoellnitz/snip.sh
GitLab Snippet Command Line Tool
#!/bin/bash
#
# Copyright 2016-2017 Martin Goellnitz
#
# update gitlab api
# https://gist.github.com/dubiouscript/5553dce89497ffd9805dd0de16503e8d
# -dscript-
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by

Hi _____,

Thanks for getting in touch, it’s nice to talk with CiviCRM developers around the world. I hope this effort brings good results for you!

I enjoy contributing to community support through public channels available - Github, CiviCRM chat, Stack Exchange and other similar avenues.

If I am providing support, I want to know it's available to the community. In contrast, to preserve focus I make a distinction between these public forums and direct personal communication. Essentially it’s this: my email (and other private comms) is for personal discussions, and paid work.

By asking a question in the CiviCRM community channel, you’ll be demonstrating an ability to participate in the wider CiviCRM community, and to ask for help when needed. Please try to use the existing community resources for these requests.

@mortenson
mortenson / ddrush.sh
Last active March 20, 2022 09:51
What I currently use for local Drupal/Tome dev
#! /bin/bash
# This runs a new Docker container, mounts the current directory (Drupal root),
# and runs an arbitrary drush command, in case you don't want to run it in dsession.
sudo docker run --rm -it --init -v "$(pwd)":/var/www/tome mortenson/tome drush "$@"
@learosema
learosema / prng.js
Last active May 16, 2023 15:38
eleventy-prng.js
// store this file in the _data directory
let randomSeed = 1234567;
module.exports = {
init(seed) { randomSeed = seed; },
random() {
randomSeed = randomSeed * 16807 % 2147483647;
return randomSeed / 2147483647;
}
};