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
View monitors.xml
<monitors version="1">
<configuration>
<clone>no</clone>
<output name="eDP-1">
<vendor>LGD</vendor>
<product>0x0541</product>
<serial>0x00000000</serial>
<width>1920</width>
<height>1080</height>
<rate>60</rate>
View civicrm_case_contact.sql
-- MySQL dump 10.15 Distrib 10.0.20-MariaDB, for osx10.10 (x86_64)
--
-- Host: localhost Database: civicrmdev_idg3g
-- ------------------------------------------------------
-- Server version 10.0.20-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
View DraftFunction
function submit() {
var selected = $(".modal-body input:checked").val();
for (i = 0; i < questions.length; i++) {
if ( selected === questions[i].correctAnswer ) {
console.log(selected + " was selected");
console.log("You selected the correct answer:" + questions[i].correctAnswer);
var scs = i;
}
if ( scs === 0 || scs === 5 || scs === 10 || scs === 15 || scs === 20 ) {
score1 = score1 + 10;
@xurizaemon
xurizaemon / RTExport
Created Aug 2, 2015
RescueTime Data Export
View RTExport
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# RescueTime Data Exporter
# Dan Nixon
# 18/09/2011
import urllib
apiKey = "API_KEY"
View Hooks-CiviCRM-WP.md

WordPress Hooks used in CiviCRM

add_action();

CiviCRM_For_WordPress::wp();

CiviCRM_For_WordPress::wp_loaded();

CiviCRM_For_WordPress::plugins_loaded();

CiviCRM_For_WordPress::admin_menu();

CiviCRM_For_WordPress::admin_notices();

CiviCRM_For_WordPress::load_{$menu_page}();

View DEBIAN_GHOST_CHECKER.sh
#!/bin/bash
## Thanks to https://gist.github.com/xurizaemon for sorting this version out for me! :)
DEB_OR_UBU=$(lsb_release -ds | cut -d " " -f 1)
INSTALLED_VERSION=$(dpkg -s libc6 | grep Version | awk '{ print $2 }')
FIXED_VERSION=""
if [ "$DEB_OR_UBU" == "Ubuntu" ]; then
UBUNTU_RELEASE=$(lsb_release -sr | cut -d '.' -f 1)
case $UBUNTU_RELEASE in
@xurizaemon
xurizaemon / DEBIAN_GHOST_CHECKER.sh
Last active Aug 29, 2015 — forked from proffalken/DEBIAN_GHOST_CHECKER.sh
Updated for different libc6 versions for Debian releases
View DEBIAN_GHOST_CHECKER.sh
#!/bin/bash
# The original @ https://gist.github.com/proffalken/08e9649ee7083fc3c5bd has been updated to
# include these changes and adds support for Ubuntu. Use that version again now.
INSTALLED_VERSION=$(dpkg -s libc6 | grep Version | awk '{ print $2 }')
DEBIAN_RELEASE=$(lsb_release -sr | cut -c 1)
case $DEBIAN_RELEASE in
6)
View DEBIAN_GHOST_CHECKER.sh
#!/bin/bash
INSTALLED_VERSION=$(dpkg -s libc6 | grep Version | awk '{ print $2 }')
DEBIAN_RELEASE=$(lsb_release -sr | cut -c 1)
case $DEBIAN_RELEASE in
6)
FIXED_VERSION=2.11.3-4+deb6u4 ;;
7)
FIXED_VERSION=2.13-38+deb7u7 ;;
You can’t perform that action at this time.