Skip to content

Instantly share code, notes, and snippets.

View xurizaemon's full-sized avatar
🌻
SPRING

Chris Burgess xurizaemon

🌻
SPRING
View GitHub Profile
#!/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 ;;
@xurizaemon
xurizaemon / DEBIAN_GHOST_CHECKER.sh
Last active August 29, 2015 14:14 — forked from proffalken/DEBIAN_GHOST_CHECKER.sh
Updated for different libc6 versions for Debian releases
#!/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)
#!/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

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}();

@xurizaemon
xurizaemon / RTExport
Created August 2, 2015 17:36
RescueTime Data Export
#!/usr/bin/env python
#-*- coding: utf-8 -*-
# RescueTime Data Exporter
# Dan Nixon
# 18/09/2011
import urllib
apiKey = "API_KEY"
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;
-- 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 */;
<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>