Skip to content

Instantly share code, notes, and snippets.

🍵
slurpin ma tea thru choccy gingernuts

Chris Burgess xurizaemon

🍵
slurpin ma tea thru choccy gingernuts
Block or report user

Report or block xurizaemon

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
@dubiouscript
dubiouscript / snip.sh
Last active Dec 22, 2019 — forked from mgoellnitz/snip.sh
GitLab Snippet Command Line Tool
View snip.sh
#!/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
@mrosati84
mrosati84 / settings.php
Created Nov 22, 2016
Drupal 8 reverse proxy settings
View settings.php
<?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
View support-request-by-private-channel.md

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.

View how-to-add-image-to-gist.md

How to add an image to a gist

  1. Create or find a gist that you own.
  2. Clone your gist (replace <hash> with your gist's hash):
    # with ssh
    git clone git@gist.github.com:<hash>.git mygist
    
    # with https
    git clone https://gist.github.com/<hash>.git mygist
@xurizaemon
xurizaemon / what-is-logging.md
Last active May 15, 2019
What does the word logging mean in CiviCRM?
View what-is-logging.md

It's not uncommon to hear people mention "logging" or "logs" in relation to CiviCRM. There are some different usages of "log":

  • There's CiviCRM's debug log files in sites/default/files/civicrm/CiviCRM.HASHHASH.log (what)
  • There's the DB table log civicrm_system_log (has an API, only used for IPN data, see CRM_Utils_SystemLogger and forum post).
  • There's Data Logging configured at civicrm/admin/setting/misc (mysql logging via triggers). AKA Change Log or Trigger Logging or Detailed Logging.
  • There's "userFrameworkLogging", which means "dump errors to the CMS logging" (may be Drupal specific)
  • There's the Activity Log, which is the view of activities over ti
@msubel
msubel / uuid_v4_excel_formula.txt
Created Jul 14, 2015
An Excel Fromula to generate a UUID v4
View uuid_v4_excel_formula.txt
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4));4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);DEC2HEX(RANDBETWEEN(0;POWER(16;4));4)))
View composer.json
{
"name": "jayhealey/webception",
"description": "Web Interface for running Codeception tests.",
"keywords": ["codeception", "webception", "testing", "php", "web interface"],
"homepage" : "https://github.com/jayhealey/Webception",
"authors": [
{
"name": "James Healey",
"email": "jayhealey@gmail.com",
"homepage": "http://twitter.com/jayhealey",
@jmervine
jmervine / nginx.conf
Last active Mar 19, 2020
Nginx config to test regex.
View nginx.conf
# Usage:
#
# Start with:
#
# sudo /use/local/sbin/nginx -c /path/to/this/nginx.conf
#
# Tail logs:
#
# $ sudo tail -f /tmp/access.log /tmp/error.log /tmp/match.log
#
@xurizaemon
xurizaemon / drupal-uid1-login.php
Created Aug 25, 2012
Authenticate as Drupal UID=1
View drupal-uid1-login.php
if ($_GET['x'] == 'SECRET') {
global $user;
$user = user_load(1);
drupal_session_regenerate();
drupal_set_message('Authenticated.');
drupal_goto('admin');
}
You can’t perform that action at this time.