Skip to content

Instantly share code, notes, and snippets.

Chris Coleman chris001

Block or report user

Report or block chris001

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
@chris001
chris001 / mac-curl-ca-bundle.sh
Created Mar 3, 2018 — forked from 1stvamp/mac-curl-ca-bundle.sh
Script to install cURL CA certificates on OS X without macports
View mac-curl-ca-bundle.sh
#!/bin/bash
mkdir /tmp/curl-ca-bundle
cd /tmp/curl-ca-bundle
wget http://curl.haxx.se/download/curl-7.22.0.tar.bz2
tar xzf curl-7.22.0.tar.bz2
cd curl-7.22.0/lib/
./mk-ca-bundle.pl
if [ ! -d /usr/share/curl/ ]; then
sudo mkdir -p /usr/share/curl/
else
@chris001
chris001 / gist:45a0a8fa7c71d7b902b462e45aa2614b
Created Feb 3, 2017 — forked from KyleGawryluk/gist:7418600
SugarCRM - Generating custom error popup from logic hook
View gist:45a0a8fa7c71d7b902b462e45aa2614b
Create a custom view to load popup widget js
custom/modules/{module}/views/view.detail.php
<?php
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/json_config.php');
require_once('include/MVC/View/views/view.detail.php');
class po_purchaseOrdersViewDetail extends ViewDetail {
@chris001
chris001 / default.vcl_PREFACE.txt
Created Oct 1, 2016 — forked from fevangelou/default.vcl_PREFACE.md
The perfect Varnish configuration for Joomla, WordPress & other CMS based websites
View default.vcl_PREFACE.txt
##########################################################################################
### The perfect Varnish configuration for Joomla, WordPress & other CMS based websites ###
##########################################################################################
IMPORTANT: Read this before implementing one of the configuration files below (for either Varnish 3.x or 4.x+).
USE: Replace the contents of the main Varnish configuration file located in /etc/varnish/default.vcl
(root server access required - obviously) with the contents of the configuration you'll use (depending on your Varnish version)
from the 2 examples provided below.
View tunnel_4to6.py
"""
HE-2-4 Copyright (C) 2014 Liam Stanley
License: Eiffel Forum License, version 2
- https://links.ml/FFa1
Website: https://liamstanley.io
NOTE: THIS IS FOR KVM BASED SERVERS ONLY.
I'M NOT ADDING CUSTOM CHECKS TO SEE IF
YOU'RE USING KVM.
"""
You can’t perform that action at this time.