Skip to content

Instantly share code, notes, and snippets.

View carolinecblaker's full-sized avatar
🌌
pretty good.

Caroline C. Blaker carolinecblaker

🌌
pretty good.
View GitHub Profile
@0xjac
0xjac / private_fork.md
Last active November 2, 2025 00:44
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active October 31, 2025 16:56
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@fideloper
fideloper / gist:0dfb4491ffefba6766eb
Created May 28, 2015 12:26
nginx cache secondary php location
fastcgi_cache_path /tmp/cache levels=1:2 keys_zone=images:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
#root /usr/share/nginx/html;
root /var/www/html;
index index.html index.htm;
@ericlbarnes
ericlbarnes / bower.json
Last active January 8, 2024 01:52
Gulp, Bower, Bootstrap Sass, FontAwesome
{
"name": "project",
"version": "0.0.0",
"authors": [
"Eric Barnes <[email protected]>"
],
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
@BERA
BERA / gulpfile.js
Last active November 19, 2015 23:54
The awesome gulp web project automator
'use strict';
// The awesome gulp web project automator
// author: Bruno Rogério de Moura
// version: 0.0.1
// Release Date: 08-08-2014
//
// About:
// If you are using the awesome google web toolkit or the fantastic
// yeoman gulp web app generator this file is for you :-D
//
@litzinger
litzinger / 0-Debugging-ExpressionEngine.md
Last active August 20, 2025 14:33
How to show errors when you get a white screen in EE. Turning up the debugging will reveal PHP errors.

Overview

Below are two techniques to help debug the WSOD (white screen of death), usually a 500 server error, in an ExpressionEngine site. The Basic-Debugging option will be suitable in most cases and is specific to ExpressionEngine. The Advanced-Debugging is generic and applicable to any PHP based software. If the basic debugging does not work, try the advanced.

If you get a WSOD you will need to first get your site to reveal an error before reporting it to EllisLab or the add-on developer. Simply reporting "I get a white screen" does not give the developer enough information to assist you. An error message on the other hand will point the developer to the source of the issue.

@rsanchez
rsanchez / gist:1334725
Created November 2, 2011 20:04
CartThrob XML for Google Product Search
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0"
xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>{site_name} Products</title>
<link>{site_url}</link>
<description>[insert store description here]</description>
{exp:channel:entries channel="products" rdf="off" dynamic_start="on" limit="1000" disable="member_data|trackbacks"}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
@davist11
davist11 / EE2.rss
Created February 10, 2011 17:17
ExpressionEngine 2 RSS
{preload_replace:channel="blog|work"}
{exp:rss:feed channel="{channel}"}
<?xml version="1.0" encoding="{encoding}"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom">