Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Go Avs!

Andrew Ellis ellisio

:octocat:
Go Avs!
View GitHub Profile
View gist:834156
<?php
/**
* Enable modules. Modules are referenced by a relative or absolute path.
*/
if (Kohana::$environment === Kohana::PRODUCTION)
{
Kohana::modules(array(
'cache' => MODPATH.'cache',
'database' => MODPATH.'database'
));
View gist:834143
$ cd /path/to/new/files
$ tar -cf temp.tar *
$ cd /path/to/working/application
$ tar -xf /path/to/new/files/temp.tar
View gist:977342
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="object">
<div class="box"></div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript">
View Homebrew PHP 5.3.10
require 'formula'
def mysql_installed?
`which mysql_config`.length > 0
end
def postgres_installed?
`which pg_config`.length > 0
end
View gist:2364069
<?php
class Date {
/**
* Convert a local timestamp to a GMT timestamp.
*
* @static
*
* @param string $timestamp
* @param string $timezone
* @param string $format
View test.json
[
{ "date": 20150101, "text": "Cat" },
{ "date": 20150101, "text": "Dog" },
{ "date": 20150201, "text": "Fish" }
]
View ngrok.service
[Unit]
Description=Share local port(s) with ngrok
After=syslog.target network.target
[Service]
User=vagrant
Type=simple
Restart=always
RestartSec=1min
TimeoutSec=0
View docker-compose.yml
version: '2'
#
# Network Configuration
#
networks:
default:
#
# Services Configuration
View .aliases
# Set colorflag for LS
colorflag="-G"
# List all files colorized in long format
alias l="ls -l ${colorflag}"
# List all files colorized in long format, including dot files
alias la="ls -la ${colorflag}"
# List only directories
You can’t perform that action at this time.