This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /path/to/new/files | |
$ tar -cf temp.tar * | |
$ cd /path/to/working/application | |
$ tar -xf /path/to/new/files/temp.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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' | |
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
def mysql_installed? | |
`which mysql_config`.length > 0 | |
end | |
def postgres_installed? | |
`which pg_config`.length > 0 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Date { | |
/** | |
* Convert a local timestamp to a GMT timestamp. | |
* | |
* @static | |
* | |
* @param string $timestamp | |
* @param string $timezone | |
* @param string $format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf images | |
mkdir images | |
for i in {1..1024} | |
do | |
for x in {1..100} | |
do | |
echo "Checking ${i}x${i}-${x}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Settings | |
lang en_US.UTF-8 | |
keyboard us | |
rootpw vagrant | |
authconfig --enableshadow --enablemd5 | |
timezone UTC | |
# Pre-install | |
install | |
cdrom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
44 # VAGRANTFILE | |
45 # ----------- | |
46 # | |
47 # DO NOT EDIT ANY OF THIS OR YOU WILL BE EATEN BY AN EVIL DRAGON! | |
48 # | |
49 =begin | |
50 .~))>> | |
51 .~)>> | |
52 .~))))>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# /etc/rc.d/init.d/supervisor | |
# | |
# Supervisor is a client/server system that | |
# allows its users to monitor and control a | |
# number of processes on UNIX-like operating | |
# systems. | |
# | |
# chkconfig: 345 83 04 |
OlderNewer