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
# per http://groups.google.com/group/ec2debian/browse_thread/thread/cf14dbd5e04fab41/40097775d0c6c04d | |
apt-get update | |
apt-get remove --purge grub-legacy | |
apt-get install grub2 | |
# linux command line: blank | |
# grub install devices: blank | |
# continue: yes | |
apt-get --purge autoremove | |
# remove the old menu.lst | |
rm /boot/grub/menu.lst |
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
<!DOCTYPE html> | |
<html<?php print $html_attributes; ?>> | |
<head> | |
<?php print $head; ?> | |
<title><?php print $head_title; ?></title> | |
<?php print $styles; ?> | |
<?php print $scripts; ?> | |
</head> | |
<body<?php print $body_attributes;?>> |
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 FeatureContext extends MinkContext | |
{ | |
/** | |
* Looks for a table, then looks for a row that contains the given text. | |
* Once it finds the right row, it clicks a link in that row. | |
* |
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
int fd; | |
struct sockaddr_in cli_addr; | |
int n; | |
int p; | |
n = fork(); | |
if (n < 0) | |
return n; | |
if (!n) { |
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
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.Map; | |
import org.acra.ACRA; | |
import org.acra.collector.CrashReportData; | |
import org.acra.ReportField; | |
import org.acra.sender.ReportSender; |
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
defmodule State.Counter do | |
use GenServer | |
def start_link(opts \\ []) do | |
GenServer.start_link(__MODULE__, :ok, opts) | |
end | |
## Client API | |
@doc "Gets the counter's current value." |
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 | |
# Runs an acquia task, and waits for the task to complete before continuing. | |
# This is a helper script, to be used in others as needed. | |
if [[ $1 = "" ]] || [[ $2 = "" ]] | |
then | |
echo "Runs an acquia drush command, waiting for the results before continuing." | |
echo "Can be used as a replacement for drush." | |
echo | |
echo " Usage: $0 <site-alias> <ac-drush-command>" |
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
var React = require('react'); | |
var {Table} = require('fixed-data-table'); | |
var _ = require('lodash'); | |
var FittedTable = React.createClass({ | |
getInitialState() { | |
return { | |
tableWidth : 400, | |
tableHeight : 400 | |
}; |
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
<section id="{{ block_html_id }}" class="{{ classes }} clearfix"{{ attributes }}> | |
{{ title_prefix }} | |
{% if title %} | |
<h2{{ title_attributes }}>{{ title }}</h2> | |
{% endif %} | |
{{ title_suffix }} | |
{{ content }} | |
</section> |
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
defmodule MyApp do | |
use Application | |
def start(_type, _args) do | |
import Supervisor.Spec, warn: false | |
children = [ | |
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [ | |
dispatch: dispatch | |
]) |
OlderNewer