This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a041e63
Showing
5 changed files
with
491 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | ||
<title>Ghost by bjeanes</title> | ||
|
||
<link rel="stylesheet" href="stylesheets/styles.css"> | ||
<link rel="stylesheet" href="stylesheets/pygment_trac.css"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> | ||
<!--[if lt IE 9]> | ||
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<div class="wrapper"> | ||
<header> | ||
<h1>Ghost</h1> | ||
<p>A gem that allows you to create, list, and modify hostnames with ease...</p> | ||
<p class="view"><a href="https://github.com/bjeanes/ghost">View the Project on GitHub <small>bjeanes/ghost</small></a></p> | ||
<ul> | ||
<li><a href="https://github.com/bjeanes/ghost/zipball/master">Download <strong>ZIP File</strong></a></li> | ||
<li><a href="https://github.com/bjeanes/ghost/tarball/master">Download <strong>TAR Ball</strong></a></li> | ||
<li><a href="https://github.com/bjeanes/ghost">Fork On <strong>GitHub</strong></a></li> | ||
</ul> | ||
</header> | ||
<section> | ||
<h1>Ghost</h1> | ||
|
||
<p>A gem that allows you to create, list, and modify local hostnames | ||
with ease in linux and OS (more to come)...</p> | ||
|
||
<h1>Requirements</h1> | ||
|
||
<p>Unix-based OS (for now)</p> | ||
|
||
<h1>Intended Usage</h1> | ||
|
||
<p>This gem is designed primarily for web developers who need to add | ||
and modify hostnames to their system for virtual hosts on their | ||
local/remote web server. However, it could be of use to other people | ||
who would otherwise modify their <code>/etc/hosts</code> file manually and | ||
flush the cache.</p> | ||
|
||
<h2>Command</h2> | ||
|
||
<pre><code>$ ghost add mydevsite.local | ||
[Adding] mydevsite.local -> 127.0.0.1 | ||
|
||
$ ghost add staging-server.local 67.207.136.164 | ||
[Adding] staging-server.local -> 67.207.136.164 | ||
|
||
$ ghost list | ||
Listing 2 host(s): | ||
mydevsite.local -> 127.0.0.1 | ||
staging-server.local -> 67.207.136.164 | ||
|
||
$ ghost delete mydevsite.local | ||
[Deleting] mydevsite.local | ||
|
||
$ ghost delete_matching test | ||
[Deleting] test2.local | ||
[Deleting] test.local | ||
|
||
$ ghost list | ||
Listing 1 host(s): | ||
staging-server.local -> 67.207.136.164 | ||
|
||
$ ghost modify staging-server.local 64.233.167.99 | ||
[Modifying] staging-server.local -> 64.233.167.99 | ||
|
||
$ ghost list | ||
Listing 1 host(s): | ||
staging-server.local -> 64.233.167.99 | ||
|
||
$ ghost export > some_file | ||
|
||
$ ghost empty | ||
[Emptying] Done. | ||
|
||
$ ghost list | ||
Listing 0 host(s): | ||
|
||
$ ghost import some_file | ||
[Adding] staging-server.local -> 64.233.167.99 | ||
|
||
$ ghost list | ||
Listing 1 host(s): | ||
staging-server.local -> 64.233.167.99 | ||
</code></pre> | ||
|
||
<h2>Library</h2> | ||
|
||
<p>There is also a library that can be used in Ruby scripts. The <code>ghost</code> | ||
command is a wrapper for the library. View the source of <code>bin/ghost</code> | ||
to see how to use the library.</p> | ||
|
||
<h1>Installation</h1> | ||
|
||
<pre><code>sudo gem install ghost | ||
</code></pre> | ||
|
||
<h1>Contributors</h1> | ||
|
||
<p>If this list is ever out of date, you can get full contributor list with <code>git log --format='%aN (%ae)' | sort -u</code></p> | ||
|
||
<ul> | ||
<li><a href="http://github.com/alkesh">Alkesh Vaghmaria</a></li> | ||
<li><a href="http://github.com/extraordinaire">Andrei Serdeliuc</a></li> | ||
<li><a href="http://github.com/benhoskings">Ben Hoskings</a></li> | ||
<li><a href="http://github.com/bjeanes">Bodaniel Jeanes</a></li> | ||
<li><a href="http://github.com/simonc">Courtois Simon</a></li> | ||
<li><a href="http://github.com/fcoury">Felipe Coury</a></li> | ||
<li><a href="http://github.com/jmazzi">Justin Mazzi</a></li> | ||
<li><a href="http://github.com/LarsFronius">Lars Fronius</a></li> | ||
<li><a href="http://github.com/outerim">Lee Jensen</a></li> | ||
<li><a href="http://github.com/mitchellvriley">Mitchell Riley</a></li> | ||
<li><a href="http://github.com/radar">Ryan Bigg</a></li> | ||
</ul><h1>Legal Stuff</h1> | ||
|
||
<p>Copyright (c) 2008-2010 Bodaniel Jeanes</p> | ||
|
||
<p>Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions:</p> | ||
|
||
<p>The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software.</p> | ||
|
||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p> | ||
</section> | ||
<footer> | ||
<p>This project is maintained by <a href="https://github.com/bjeanes">bjeanes</a></p> | ||
<p><small>Hosted on GitHub Pages — Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p> | ||
</footer> | ||
</div> | ||
<script src="javascripts/scale.fix.js"></script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
var metas = document.getElementsByTagName('meta'); | ||
var i; | ||
if (navigator.userAgent.match(/iPhone/i)) { | ||
for (i=0; i<metas.length; i++) { | ||
if (metas[i].name == "viewport") { | ||
metas[i].content = "width=device-width, minimum-scale=1.0, maximum-scale=1.0"; | ||
} | ||
} | ||
document.addEventListener("gesturestart", gestureStart, false); | ||
} | ||
function gestureStart() { | ||
for (i=0; i<metas.length; i++) { | ||
if (metas[i].name == "viewport") { | ||
metas[i].content = "width=device-width, minimum-scale=0.25, maximum-scale=1.6"; | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"Ghost","body":"Ghost\r\n=====\r\n\r\nA gem that allows you to create, list, and modify local hostnames\r\nwith ease in linux and OS (more to come)...\r\n\r\nRequirements\r\n============\r\n\r\nUnix-based OS (for now)\r\n\r\nIntended Usage\r\n==============\r\n\r\nThis gem is designed primarily for web developers who need to add\r\nand modify hostnames to their system for virtual hosts on their\r\nlocal/remote web server. However, it could be of use to other people\r\nwho would otherwise modify their `/etc/hosts` file manually and\r\nflush the cache.\r\n\r\nCommand\r\n-------\r\n\r\n $ ghost add mydevsite.local\r\n [Adding] mydevsite.local -> 127.0.0.1\r\n\r\n $ ghost add staging-server.local 67.207.136.164\r\n [Adding] staging-server.local -> 67.207.136.164\r\n\r\n $ ghost list\r\n Listing 2 host(s):\r\n mydevsite.local -> 127.0.0.1\r\n staging-server.local -> 67.207.136.164\r\n\r\n $ ghost delete mydevsite.local\r\n [Deleting] mydevsite.local\r\n\r\n $ ghost delete_matching test\r\n [Deleting] test2.local\r\n [Deleting] test.local\r\n\r\n $ ghost list\r\n Listing 1 host(s):\r\n staging-server.local -> 67.207.136.164\r\n\r\n $ ghost modify staging-server.local 64.233.167.99\r\n [Modifying] staging-server.local -> 64.233.167.99\r\n\r\n $ ghost list\r\n Listing 1 host(s):\r\n staging-server.local -> 64.233.167.99\r\n\r\n $ ghost export > some_file\r\n\r\n $ ghost empty\r\n [Emptying] Done.\r\n\r\n $ ghost list\r\n Listing 0 host(s):\r\n\r\n $ ghost import some_file\r\n [Adding] staging-server.local -> 64.233.167.99\r\n\r\n $ ghost list\r\n Listing 1 host(s):\r\n staging-server.local -> 64.233.167.99\r\n\r\nLibrary\r\n-------\r\n\r\nThere is also a library that can be used in Ruby scripts. The `ghost`\r\ncommand is a wrapper for the library. View the source of `bin/ghost`\r\nto see how to use the library.\r\n\r\nInstallation\r\n============\r\n\r\n sudo gem install ghost\r\n\r\nContributors\r\n============\r\n\r\nIf this list is ever out of date, you can get full contributor list with `git log --format='%aN (%ae)' | sort -u`\r\n\r\n* [Alkesh Vaghmaria](http://github.com/alkesh)\r\n* [Andrei Serdeliuc](http://github.com/extraordinaire)\r\n* [Ben Hoskings](http://github.com/benhoskings)\r\n* [Bodaniel Jeanes](http://github.com/bjeanes)\r\n* [Courtois Simon](http://github.com/simonc)\r\n* [Felipe Coury](http://github.com/fcoury)\r\n* [Justin Mazzi](http://github.com/jmazzi)\r\n* [Lars Fronius](http://github.com/LarsFronius)\r\n* [Lee Jensen](http://github.com/outerim)\r\n* [Mitchell Riley](http://github.com/mitchellvriley)\r\n* [Ryan Bigg](http://github.com/radar)\r\n\r\nLegal Stuff\r\n===========\r\n\r\nCopyright (c) 2008-2010 Bodaniel Jeanes\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of this software and associated documentation files (the\r\n\"Software\"), to deal in the Software without restriction, including\r\nwithout limitation the rights to use, copy, modify, merge, publish,\r\ndistribute, sublicense, and/or sell copies of the Software, and to\r\npermit persons to whom the Software is furnished to do so, subject to\r\nthe following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be\r\nincluded in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r\n","tagline":"A gem that allows you to create, list, and modify hostnames with ease...","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.highlight { background: #ffffff; } | ||
.highlight .c { color: #999988; font-style: italic } /* Comment */ | ||
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ | ||
.highlight .k { font-weight: bold } /* Keyword */ | ||
.highlight .o { font-weight: bold } /* Operator */ | ||
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ | ||
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ | ||
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ | ||
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ | ||
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ | ||
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ | ||
.highlight .ge { font-style: italic } /* Generic.Emph */ | ||
.highlight .gr { color: #aa0000 } /* Generic.Error */ | ||
.highlight .gh { color: #999999 } /* Generic.Heading */ | ||
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ | ||
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ | ||
.highlight .go { color: #888888 } /* Generic.Output */ | ||
.highlight .gp { color: #555555 } /* Generic.Prompt */ | ||
.highlight .gs { font-weight: bold } /* Generic.Strong */ | ||
.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */ | ||
.highlight .gt { color: #aa0000 } /* Generic.Traceback */ | ||
.highlight .kc { font-weight: bold } /* Keyword.Constant */ | ||
.highlight .kd { font-weight: bold } /* Keyword.Declaration */ | ||
.highlight .kn { font-weight: bold } /* Keyword.Namespace */ | ||
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ | ||
.highlight .kr { font-weight: bold } /* Keyword.Reserved */ | ||
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ | ||
.highlight .m { color: #009999 } /* Literal.Number */ | ||
.highlight .s { color: #d14 } /* Literal.String */ | ||
.highlight .na { color: #008080 } /* Name.Attribute */ | ||
.highlight .nb { color: #0086B3 } /* Name.Builtin */ | ||
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ | ||
.highlight .no { color: #008080 } /* Name.Constant */ | ||
.highlight .ni { color: #800080 } /* Name.Entity */ | ||
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ | ||
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ | ||
.highlight .nn { color: #555555 } /* Name.Namespace */ | ||
.highlight .nt { color: #000080 } /* Name.Tag */ | ||
.highlight .nv { color: #008080 } /* Name.Variable */ | ||
.highlight .ow { font-weight: bold } /* Operator.Word */ | ||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */ | ||
.highlight .mf { color: #009999 } /* Literal.Number.Float */ | ||
.highlight .mh { color: #009999 } /* Literal.Number.Hex */ | ||
.highlight .mi { color: #009999 } /* Literal.Number.Integer */ | ||
.highlight .mo { color: #009999 } /* Literal.Number.Oct */ | ||
.highlight .sb { color: #d14 } /* Literal.String.Backtick */ | ||
.highlight .sc { color: #d14 } /* Literal.String.Char */ | ||
.highlight .sd { color: #d14 } /* Literal.String.Doc */ | ||
.highlight .s2 { color: #d14 } /* Literal.String.Double */ | ||
.highlight .se { color: #d14 } /* Literal.String.Escape */ | ||
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ | ||
.highlight .si { color: #d14 } /* Literal.String.Interpol */ | ||
.highlight .sx { color: #d14 } /* Literal.String.Other */ | ||
.highlight .sr { color: #009926 } /* Literal.String.Regex */ | ||
.highlight .s1 { color: #d14 } /* Literal.String.Single */ | ||
.highlight .ss { color: #990073 } /* Literal.String.Symbol */ | ||
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ | ||
.highlight .vc { color: #008080 } /* Name.Variable.Class */ | ||
.highlight .vg { color: #008080 } /* Name.Variable.Global */ | ||
.highlight .vi { color: #008080 } /* Name.Variable.Instance */ | ||
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ | ||
|
||
.type-csharp .highlight .k { color: #0000FF } | ||
.type-csharp .highlight .kt { color: #0000FF } | ||
.type-csharp .highlight .nf { color: #000000; font-weight: normal } | ||
.type-csharp .highlight .nc { color: #2B91AF } | ||
.type-csharp .highlight .nn { color: #000000 } | ||
.type-csharp .highlight .s { color: #A31515 } | ||
.type-csharp .highlight .sc { color: #A31515 } |
Oops, something went wrong.