Add paste to ansible. Ticket 4231. Thanks adimania

This commit is contained in:
Kevin Fenzi 2014-03-02 18:58:37 +00:00
parent c3a5f73b6a
commit c76f5b8c66
52 changed files with 1799 additions and 0 deletions

View file

@ -1,2 +1,14 @@
---
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 2048
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
tcp_ports: [ 80, 443, 8888 ]
fas_client_groups: sysadmin-noc,sysadmin-paste,fi-apprentice
# This host doesn't freeze
freezes: false

View file

@ -0,0 +1,14 @@
---
# Define resources for this group of hosts here.
lvm_size: 20000
mem_size: 2048
num_cpus: 2
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
tcp_ports: [ 80, 443, 8888 ]
fas_client_groups: sysadmin-noc,sysadmin-paste,fi-apprentice
# This host doesn't freeze
freezes: false

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_guests00
eth0_ip: 10.5.126.59
vmhost: virthost15.phx2.fedoraproject.org
datacenter: phx2

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_virthost11
eth0_ip: 10.5.126.61
vmhost: virthost11.phx2.fedoraproject.org
datacenter: phx2

View file

@ -0,0 +1,10 @@
---
nm: 255.255.255.0
gw: 10.5.126.254
dns: 10.5.126.21
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-6
ks_repo: http://10.5.126.23/repo/rhel/RHEL6-x86_64/
volgroup: /dev/vg_guests00
eth0_ip: 10.5.126.17
vmhost: virthost14.phx2.fedoraproject.org
datacenter: phx2

View file

@ -0,0 +1,50 @@
- name: make paste
hosts: paste-stg:paste
user: root
gather_facts: False
accelerate: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
tasks:
- include: "{{ tasks }}/virt_instance_create.yml"
- include: "{{ tasks }}/accelerate_prep.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"
- name: make the box be real
hosts: paste-stg:paste
user: root
gather_facts: True
accelerate: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- denyhosts
- nagios_client
- fas_client
- paste
tasks:
- include: "{{ tasks }}/hosts.yml"
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
- include: "{{ tasks }}/sudo.yml"
- include: "{{ tasks }}/openvpn_client.yml"
when: env != "staging"
- include: "{{ tasks }}/apache.yml"
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,37 @@
<?php
/**
* Sticky Notes pastebin
* @ver 0.3
* @license BSD License - www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012 Sayak Banerjee <sayakb@kde.org>
* Copyright (c) 2013 Athmane Madjoudj <athmane@fedoraproject.org>
* All rights reserved. Do not remove this copyright notice.
*/
/**
* URL shortener using ur1.ca from Indenti.ca
**/
class URLShortener
{
public function shorten($long_url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://ur1.ca/");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array('longurl' => $long_url)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,2);
curl_setopt($ch, CURLOPT_TIMEOUT, 2);
$result = curl_exec($ch);
curl_close($ch);
preg_match( '/<p class="success">Your ur1 is: <a href="(.+)">(.+)<\/a><\/p>/', $result, $match );
if (!empty($match))
return $match[1];
else
return false;
}
}
?>

View file

@ -0,0 +1,561 @@
/*
Fedora pastebin styling, based on Koji styling
Copyright (c) 2007,2008, 2009, 2012 Red Hat, Inc.
Authors:
Athmane Madjoudj <athmane@fedoraproject.org>
Original Authors:
Mike Bonnet <mikeb@redhat.com>
Mike McLean <mikem@redhat.com>
Dennis Gilmore <dgilmore@redhat.com>
*/
html {
min-width: 800px;
}
body {
margin: 0px;
padding: 0px;
font-size: small;
font-family: "Liberation Sans","Lucida Grande", "Luxi Sans", "Bitstream Vera Sans", helvetica, verdana, arial, sans-serif;
color: #666;
background: #fff url(../images/header-bg.png) repeat-x;
}
a, a:visited, a:hover {
color: #0066CC;
text-decoration: none;
}
h4
{
font-size:19px;
margin-bottom:14px;
}
#wrap {
min-width: 750px;
max-width:1100px;
margin-left:auto;
margin-right:auto;
padding: 0;
text-align: left;
}
#innerwrap {
position:relative;
}
#header {
height:87px
}
#fpasteLogo {
display:inline-block;
padding-top:8px;
}
div#content {
margin: 0 20px;
margin-top:30px;
clear: both;
}
p#footer {
padding-top: 40px;
margin-left: 15px;
line-height: 1.5em;
color: #999;
font-size: xx-small;
clear: both;
}
p#footer a {
text-decoration: none;
}
.hide {
display: none;
}
.disabled {
color: #808080;
}
#mainNav {
font-size:16px;
font-weight:bold;
height: 30px;
}
#mainNav ul {
padding: 0px;
margin: 0px;
list-style-type: none;
}
#mainNav ul li {
float: left;
}
#mainNav ul li a {
display: block;
color: rgba(255,255,255,0.8);
text-decoration: none;
padding: 0.5em 1.5em;
font-size: 0.77em;
height: 1.5em;
}
#mainNav ul li:hover {
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
background-color:rgba(255,255,255,0.1);
}
body#summary #mainNav li#summaryTab a,
body#tasks #mainNav li#tasksTab a,
body#tags #mainNav li#tagsTab a,
body#builds #mainNav li#buildsTab a,
body#packages #mainNav li#packagesTab a,
body#users #mainNav li#usersTab a,
body#hosts #mainNav li#hostsTab a,
body#buildtargets #mainNav li#buildtargetsTab a,
body#reports #mainNav li#reportsTab a,
body#search #mainNav li#searchTab a {
background-color: #fff;
color: #444;
-webkit-border-top-left-radius: 5px;
-webkit-border-top-right-radius: 5px;
-moz-border-radius-topleft: 5px;
-moz-border-radius-topright: 5px;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
table {
border-spacing: 0px;
}
th {
font-weight: bold;
vertical-align: text-top;
min-width: 100px;
text-align:right;
}
td
{
padding-left:15px;
}
th, td {
line-height:19px;
}
td.building {
color: #cc0;
width:45px;
}
td.complete {
color: #0c0;
width:45px;
}
td.deleted,
td.failed,
td.canceled {
color: #c00;
width:45px;
}
td.false {
color: #c00;
}
td.true {
color: #0c0;
}
img.sort {
/* used for up/down sort arrows*/
vertical-align: baseline;
width: 10px;
height: 9px;
}
td.paginate {
text-align: center;
}
form.pageJump {
float: right;
margin-left: 20px;
}
form.pageJump select {
font-size: smaller;
}
div.dataHeader {
font-weight: bold;
font-size:17px;
line-height:28px;
padding-bottom:4px;
}
div.pageHeader {
margin-bottom: 10px;
font-weight: bold;
font-size: 19px;
}
table.nested {
float: left;
}
td.container {
/*padding: 4px 0px;*/
width: 100%;
}
table.nested th,
table.nested td {
padding: 2px 4px;
}
div.toggle {
padding: 6px;
}
td.tree {
}
.tree span.root {
font-weight: bold;
}
.tree ul {
padding-left: 2em;
list-style: none;
margin-top: 0em;
margin-bottom: 0em;
}
.tree span.treeBranch {
border-bottom: 1px solid #000;
border-left: 1px solid #000;
font-size: 1.2em;
}
.tree li.sibling > span.treeBranch {
border-left-width: 0em;
}
.tree li.sibling {
border-left: 1px solid #000;
}
.tree a {
text-decoration: none;
}
.tree span.treeLabel {
position: relative;
top: 0.6em;
margin-left: 1.2em;
padding-left: 0.2em;
font-size: 0.83em;
}
.tree > ul {
padding-bottom: 0.6em;
}
.hidden {
display: none;
}
.tree span.treeToggle {
font-weight: bold;
}
.tree span.treeLink {
font-size: smaller;
}
.adminLink {
color: #000;
}
img.stateimg {
margin-top: -6px;
margin-bottom: -6px;
}
.charlist {
text-align: center;
}
img.graphrow {
background-color: #00f;
vertical-align: bottom;
}
table.data-list {
width: 100%;
}
table.data-list td {
vertical-align: text-top;
padding-left:3px;
}
tr.list-header {
background-color: #fff;
}
tr.list-header th {
background-color: #eee;
box-shadow: 0 -1px 0 #ddd, 0 1px 0 #ddd;
text-align:left;
padding-left:4px;
}
tr.list-header th {
min-width:1px;
}
table.nested th
{
min-width:1px;
}
tr.row-even,
tr.row-odd
{
box-shadow: 0 1px 0 #ddd;
}
tr.row-even td,
tr.row-odd td
{
padding-left:4px;
}
tr.row-odd td:first-child,
tr.row-even td:first-child
{
box-shadow: -1px 0 0 #ddd;
}
tr.row-odd td:last-child,
tr.row-even td:last-child {
box-shadow: 1px 0 0 #ddd;
}
tr.list-header th:first-child
{
box-shadow: -1px 0 0 #ddd,0 -1px 0 #ddd, 0 1px 0 #ddd;
}
tr.list-header th:last-child
{
box-shadow: 1px 0 0 #ddd,0 -1px 0 #ddd, 0 1px 0 #ddd;
}
tr.row-even td.tree {
}
tr.row-even td.tree span.treeLabel {
}
.taskfree, .taskfree:visited, .taskfree:hover {
color: #3300CC;
background-color:#fff;
}
.taskopen, .taskopen:visited, .taskopen:hover {
color: #FF6600;
background-color:#fff;
}
.taskclosed, .taskclosed:visited, .taskclosed:hover {
color: #00CC00;
background-color:#fff;
}
.taskcanceled, .taskcanceled:visited, .taskcanceled:hover {
color: #CC9900;
background-color:#fff;
}
.taskassigned, .taskassigned:visited, .taskassigned:hover {
color: #CC00FF;
background-color:#fff;
}
.taskfailed, .taskfailed:visited, .taskfailed:hover {
color: #CC0000;
background-color:#fff;
}
a.help {
text-decoration: underline;
}
abbr {
cursor: help;
}
.changelog {
font-family: monospace;
font-size: medium;
white-space: pre;
}
#headerHelp {
float: right;
margin: 15px 10px 0 0;
}
.filterlist {
font-size: smaller;
}
span#loginInfo {
background-color: #ccc;
font-weight: bold;
padding: 3px 15px;
position: absolute;
right: 0;
top: 0;
-webkit-border-bottom-left-radius: 3px;
-webkit-border-bottom-right-radius: 3px;
-moz-border-radius-bottomleft: 3px;
-moz-border-radius-bottomright: 3px;
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
box-shadow: 0 10px 10px rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(0, 0, 0, 0.5);
-mox-box-shadow: 0 10px 10px rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 0 10px 10px rgba(255, 255, 255, 0.5) inset, 0 1px 3px rgba(0, 0, 0, 0.5);
}
.smaller {
font-size: smaller;
}
.rpmheader {
/*font-family: monospace;
font-size: medium;
white-space: pre;*/
}
.error {
color: red;
}
hr {
border: 1px solid #ccc;
margin-top: 10px;
}
#paste_data {
background: none repeat scroll 0 0 #FFFFFF;
border: 2px solid #CCCCCC;
min-height: 300px;
width: 1000px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.pre-cache {
display: none;
}
.span6, .span6_2 {
width: 600px;
background-color: #dfe0e3;
font-weight: bold;
padding: 5px 15px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.span6_2 {
width: 730px;
padding: 10px;
}
#paste_lang {
margin-left: 30px
}
#paste_expire {
margin-left: 180px;
}
#label_paste_private {
margin-left: 10px;
}
#paste_button, .btn, .page_no {
margin-left: 60px;
background: #234f8c;
color: #fff;
border: 1px solid #234f8c;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
width: 100px;
padding: 7px;
text-transform: uppercase;
cursor: pointer;
}
.btn, .page_no {
padding: 5px;
margin-left: 5px;
padding: 5px;
text-transform: none;
}
.page_current {
font-weight: bold;
}
a.btn:hover, a.btn:visited {
color: #fff;
}
.pull-right {
float: right;
}
.codewrap, .codewrap_small {
font-size: 12px;
color: #000;
}
.codewrap li:hover {
background: #f0f0f0;
}
.pasteinfo {
padding-bottom: 50px;
}

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,46 @@
<div class="row">
<div class="span6 [[error_box]]">
<label for="paste_user">{{your_alias}}</label>
<input id="paste_user" name="paste_user" type="text" value="[[post_user]]"
size="20" maxlength="50" />
<div class="help-inline [[error_visibility]]">{{author_numeric}}</div>
<div id="paste_user_default" class="hidden">{{anonymous}}</div>
<label for="paste_lang" id="paste_lang">{{language}}</label>
<select id="paste_lang" name="paste_lang" class="monospace">
[[post_lang_list]]
</select>
</div>
</div>
<br />
<div class="row">
<div class="span12">
<textarea id="paste_data" class="span12 codebox" name="paste_data" rows="" cols="">[[post_data]]</textarea>
</div>
</div>
<br />
<div class="row">
<div class="span_6_1">
<span class="span6_2">
<label for="paste_password">{{password}}</label>
<input id="paste_password" name="paste_password" type="password" size="20" maxlength="50" />
<label for="paste_private" class="checkbox" id="label_paste_private">
<input id="paste_private" name="paste_private" type="checkbox" checked="yes" [[post_checked]] />
{{private_paste}}
</label>
<select id="paste_expire" name="paste_expire">
<option value="1800">{{del_30min}}</option>
<option value="21600">{{del_6hrs}}</option>
<option value="86400">{{del_1day}}</option>
<option value="604800">{{del_1week}}</option>
<option value="2592000" selected="selected">{{del_1month}}</option>
<option value="0">{{keep_forever}}</option>
</select>
&nbsp;
</span>
<input id="paste_button" type="submit" name="paste_submit" value="{{paste}}" />
</div>
</div>

View file

@ -0,0 +1,43 @@
<h1>
<img src="[[skin_path]]/images/about.png" alt="" />
{{site_name}} &bull; {{about}}
</h1>
<br />
{{powered_by}}
<br /><br />
<div class="row">
<div class="span6">
<ul class="unstyled">
<li>
{{project_home}}
<a href="http://gitorious.org/sticky-notes" rel="nofollow">
http://gitorious.org/sticky-notes
</a>
</li>
<li>
{{developed_by}}
<a href="http://www.sayakbanerjee.com">Sayak Banerjee</a>
</li>
<li>
{{license}}
<a href="http://www.opensource.org/licenses/bsd-license.php" rel="nofollow">
{{bsd_license}}
</a>
</li>
</ul>
</div>
<div class="span6">
<ul class="unstyled">
<li>
{{build}} [[site_build]]
</li>
<li>
{{theme_name}} [[skin_name]]
</li>
<li>
</li>
</ul>
</div>
</div>

View file

@ -0,0 +1,145 @@
<h1>
<img src="[[skin_path]]/images/api.png" alt="" />
{{site_name}} &bull; {{api}}
</h1>
<br />
<div class="row align-center">
<div class="span6">
<div class="thumbnail pull-center">
<img src="[[skin_path]]/images/xml.png" alt="" />
<div class="caption">{{xml_caption}}</div>
</div>
</div>
<div class="span6">
<div class="thumbnail pull-center">
<img src="[[skin_path]]/images/json.png" alt="" />
<div class="caption">{{json_caption}}</div>
</div>
</div>
</div>
<br />
<div class="whitebox whitebox_nomargin">
{{doc_api_para1}}
<ul class="lessmargin">
<li><a href="#create">{{api_lcase}}/{{create_lcase}}</a></li>
<li><a href="#show">{{api_lcase}}/{{show_lcase}}</a></li>
<li><a href="#list">{{api_lcase}}/{{list_lcase}}</a></li>
</ul>
{{doc_api_para2}}
<br />
{{doc_api_para3}}
<hr />
<h3>{{api}} &rarr; {{create}}</h3>
{{doc_api_para4}}
<br /><br />
<h4>{{mandatory_params}}</h4>
<ul class="lessmargin">
<li><i>paste_data</i> - {{paste_text}}</li>
<li><i>paste_lang</i> - {{paste_language}}</li>
<li><i>api_submit</i> - {{set_this_value}}</li>
<li><i>mode</i> - {{mode_xml_json}}</li>
</ul>
<h4>{{optional_params}}</h4>
<ul class="lessmargin">
<li><i>paste_user</i> - {{paste_author}}</li>
<li><i>paste_password</i> - {{paste_pwd}}</li>
<li><i>paste_private</i> - {{paste_pvt}}</li>
<li><i>paste_expire</i> - {{paste_exptime}}</li>
<li><i>paste_project</i> - {{paste_proj}}</li>
</ul>
{{language_list_exp}}
<br /><br />
<h4>{{return_success}}</h4>
<ul class="lessmargin">
<li><i>id</i> - {{id_of_paste}}</li>
<li><i>hash</i> - {{hash_of_paste}}</li>
</ul>
{{url_format_exp}}
<br /><br />
<h4>{{return_error}}</h4>
{{error_ret_exp}}
<ul class="lessmargin">
<li><i>err_nothing_to_do</i> - {{err_ntd}}</li>
<li><i>err_author_numeric</i> - {{err_anum}}</li>
<li><i>err_save_error</i> - {{err_save}}</li>
<li><i>err_spamguard_ipban</i> - {{err_sg_ipban}}</li>
<li><i>err_spamguard_stealth</i> - {{err_sg_stealth}}</li>
<li><i>err_spamguard_noflood</i> - {{err_sg_noflood}}</li>
<li><i>err_spamguard_php</i> - {{err_sg_php}}</li>
</ul>
<hr />
<h3>{{api}} &rarr; {{show}}</h3>
{{doc_api_para5}}
<br /><br />
{{doc_api_para6}}<br />
{{doc_api_para7}}
<br /><br />
<h4>{{mandatory_params}}</h4>
<ul class="lessmargin">
<li><i>id</i> - {{id_of_paste}}</li>
<li><i>format</i> - {{result_format_exp}}</li>
</ul>
<h4>{{optional_params}}</h4>
<ul class="lessmargin">
<li><i>hash</i> - {{hash_of_paste}}</li>
<li><i>password</i> - {{password_of_paste}}</li>
</ul>
<h4>{{return_success}}</h4>
<ul class="lessmargin">
<li><i>id</i> - {{id_of_paste}}</li>
<li><i>author</i> - {{paste_author_exp}}</li>
<li><i>timestamp</i> - {{paste_timestamp}}</li>
<li><i>language</i> - {{paste_lang_exp}}</li>
<li><i>data</i> - {{paste_text_exp}}</li>
</ul>
<h4>{{return_error}}</h4>
{{error_ret_exp}}
<ul class="lessmargin">
<li><i>err_not_found</i> - {{err_404}}</li>
<li><i>err_invalid_hash</i> - {{err_invhash}}</li>
<li><i>err_password_required</i> - {{err_passreqd}}</li>
<li><i>err_invalid_password</i> - {{err_passwrng}}</li>
</ul>
<hr />
<h3>{{api}} &rarr; {{list}}</h3>
{{doc_api_para8}}
<br /><br />
<h4>{{mandatory_params}}</h4>
<ul class="lessmargin">
<li><i>format</i> - {{result_format_exp}}</li>
</ul>
<h4>{{optional_params}}</h4>
<ul class="lessmargin">
<li><i>project</i> - {{paste_proj_exp}}</li>
<li><i>page</i> - {{paste_page}}</li>
</ul>
<h4>{{return_success}}</h4>
<ul class="lessmargin">
<li><i>pastes</i> - {{paste_list_exp}}</li>
<li><i>count</i> - {{paste_count}}</li>
<li><i>pages</i> - {{paste_pages}}</li>
</ul>
<h4>{{return_error}}</h4>
{{error_ret_exp}}
<ul class="lessmargin">
<li><i>err_no_pastes</i> - {{err_nopastes}}</li>
</ul>
</div>

View file

@ -0,0 +1,82 @@
<h1>
<img src="[[skin_path]]/images/help.png" alt="" />
{{site_name}} &bull; {{help}}
</h1>
<br />
<div class="whitebox">
<ul class="list-cozy">
<li>
<a href="#create">{{create_new_paste}}</a>
<ul>
<li><a href="#private">{{marking_private}}</a></li>
<li><a href="#password">{{password_protection}}</a></li>
</ul>
</li>
<li>
<a href="#view">{{view_a_paste}}</a>
<ul class="sublist">
<li><a href="#copy">{{copying_code}}</a></li>
</ul>
</li>
<li>
<a href="#archive">{{paste_archive}}</a>
<ul>
<li><a href="#feed">{{rss_feed}}</a></li>
</ul>
</li>
<li><a href="#projects">{{pastebin_projects}}</a></li>
</ul>
</div>
<div class="whitebox whitebox_nomargin">
<h3 id="create">{{create_new_paste}}</h3>
<div class="align-justify">
{{doc_help_para1}}
</div>
<br />
<h4 id="private">{{marking_private}}</h4>
<div class="align-justify">
{{doc_help_para2}}
</div>
<br />
<h4 id="password">{{password_protection}}</h4>
<div class="align-justify">
{{doc_help_para3}}
</div>
<hr />
<h3 id="view">{{view_a_paste}}</h3>
<div class="align-justify">
{{doc_help_para4}}
</div>
<br />
<h4 id="copy">{{copying_code}}</h4>
<div class="align-justify">
{{doc_help_para5}}
</div>
<hr />
<h3 id="archive">{{paste_archive}}</h3>
<div class="align-justify">
{{doc_help_para6}}
</div>
<br />
<h4 id="feed">{{rss_feed}}</h4>
<div class="align-justify">
{{doc_help_para7}}
</div>
<hr />
<h3 id="projects">{{pastebin_projects}}</h3>
<div class="align-justify">
{{doc_help_para8}}
</div>
</div>

View file

@ -0,0 +1,10 @@
</form>
</div>
<br/><br/>
<footer id="copyright" class="copyright align-center">{{site_copyright}}</footer>
<div class="pre-cache">
<input type="checkbox" checked="checked" />
</div>
</body>
</html>

View file

@ -0,0 +1,83 @@
<!DOCTYPE html>
<html dir="ltr" lang="{{lang_name}}">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="description" content="{{site_name}} is a feature-rich, yet lightweight paste utility" />
<title>[[page_title]]</title>
<link href="[[skin_path]]/images/favicon.ico" rel="shortcut icon" />
<link href="[[nav_rss]]" rel="alternate" type="application/rss+xml" title="{{rss}}" />
<link href="[[skin_path]]/css/fedora.css" rel="stylesheet" type="text/css" media="screen, projection" />
<link href="" rel="stylesheet" type="text/css" media="screen, projection" id="raw_switch" />
<script type="text/javascript" src="[[addon_path]]/jquery/core/jquery.min.js"></script>
<script type="text/javascript" src="[[addon_path]]/jquery/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="[[skin_path]]/js/bootstrap.min.js"></script>
<script type="text/javascript" src="[[skin_path]]/js/main.js"></script>
<style type="text/css">
[[geshi_stylesheet]]
</style>
</head>
<body>
<div id="wrap">
<div id="innerwrap">
<!-- HEADER -->
<div id="header">
<a class="brand" href="[[nav_newpaste]]"><img src="[[skin_path]]/images/fpaste.png" alt="fpaste Logo" id="fpasteLogo"/></a>
</div><!-- end header -->
<!-- MAIN NAVIGATION -->
<div id="mainNav">
<ul class="nav">
<li>
<a href="[[nav_newpaste]]">
{{newpaste}}
</a>
</li>
<li>
<a href="[[nav_archives]]">
{{archives}}
</a>
</li>
<li>
<a href="[[nav_rss]]">
{{rss}}
</a>
</li>
<li>
<a href="[[nav_api]]">
{{api}}
</a>
</li>
<li>
<a href="[[nav_help]]">
{{help}}
</a>
</li>
<li>
<a href="[[nav_about]]">
{{about}}
</a>
</li>
<li>
<a href="[[nav_admin]]">
{{admin}}
</a>
</li>
</ul>
</div>
<div id="content">
<div class="alert stretch [[msg_visibility]] alert-[[msg_color]]">
<a class="close" data-dismiss="alert">×</a>
[[message_text]]
</div>
<div class="container graybox">
<form id="paste_form" class="form-inline" action="" method="post">

View file

@ -0,0 +1,202 @@
<option value="cpp">C++</option>
<option value="diff">Diff</option>
<option value="gdb">GDB</option>
<option value="javascript">Javascript</option>
<option value="text" selected="selected">Text</option>
<option value="perl">Perl</option>
<option value="php">PHP</option>
<option value="python">Python</option>
<option value="ruby">Ruby</option>
<option value="xml">XML</option>
<option disabled="disabled" value="text">----------------------</option>
<option value="abap">ABAP</option>
<option value="6502acme">ACME Cross Asm</option>
<option value="actionscript">ActionScript</option>
<option value="actionscript3">ActionScript 3</option>
<option value="ada">Ada</option>
<option value="algol68">ALGOL 68</option>
<option value="apache">Apache configuration</option>
<option value="applescript">AppleScript</option>
<option value="apt_sources">Apt sources</option>
<option value="asm">ASM</option>
<option value="asp">ASP</option>
<option value="autoconf">Autoconf</option>
<option value="autohotkey">Autohotkey</option>
<option value="autoit">AutoIt</option>
<option value="avisynth">AviSynth</option>
<option value="awk">awk</option>
<option value="bash">Bash</option>
<option value="basic4gl">Basic4GL</option>
<option value="bf">Brainfuck</option>
<option value="bibtex">BibTeX</option>
<option value="blitzbasic">BlitzBasic</option>
<option value="bnf">bnf</option>
<option value="boo">Boo</option>
<option value="c">C</option>
<option value="c_loadrunner">C (LoadRunner)</option>
<option value="c_mac">C (Mac)</option>
<option value="caddcl">CAD DCL</option>
<option value="cadlisp">CAD Lisp</option>
<option value="cfdg">CFDG</option>
<option value="cfm">ColdFusion</option>
<option value="chaiscript">ChaiScript</option>
<option value="cil">CIL</option>
<option value="clojure">Clojure</option>
<option value="cmake">CMake</option>
<option value="cobol">COBOL</option>
<option value="cpp">C++</option>
<option value="cpp-qt" class="sublang">&nbsp;&nbsp;C++ (Qt)</option>
<option value="csharp">C#</option>
<option value="css">CSS</option>
<option value="cuesheet">Cuesheet</option>
<option value="d">D</option>
<option value="dcs">DCS</option>
<option value="delphi">Delphi</option>
<option value="diff">Diff</option>
<option value="div">DIV</option>
<option value="dos">DOS</option>
<option value="dot">dot</option>
<option value="e">E</option>
<option value="ecmascript">ECMAScript</option>
<option value="eiffel">Eiffel</option>
<option value="email">eMail (mbox)</option>
<option value="epc">EPC</option>
<option value="erlang">Erlang</option>
<option value="f1">Formula One</option>
<option value="falcon">Falcon</option>
<option value="fo">FO (abas-ERP)</option>
<option value="fortran">Fortran</option>
<option value="freebasic">FreeBasic</option>
<option value="fsharp">F#</option>
<option value="4cs">GADV 4CS</option>
<option value="gambas">GAMBAS</option>
<option value="gdb">GDB</option>
<option value="genero">genero</option>
<option value="genie">Genie</option>
<option value="gettext">GNU Gettext</option>
<option value="glsl">glSlang</option>
<option value="gml">GML</option>
<option value="gnuplot">Gnuplot</option>
<option value="go">Go</option>
<option value="groovy">Groovy</option>
<option value="gwbasic">GwBasic</option>
<option value="haskell">Haskell</option>
<option value="hicest">HicEst</option>
<option value="68000devpac">HiSoft Devpac ST 2 Asm</option>
<option value="hq9plus">HQ9+</option>
<option value="html4strict">HTML</option>
<option value="icon">Icon</option>
<option value="idl">Uno Idl</option>
<option value="ini">INI</option>
<option value="inno">Inno</option>
<option value="intercal">INTERCAL</option>
<option value="io">Io</option>
<option value="j">J</option>
<option value="java">Java</option>
<option value="java5">J2SE</option>
<option value="javascript">Javascript</option>
<option value="jquery">jQuery</option>
<option value="6502kickass">Kick Asm</option>
<option value="kixtart">KiXtart</option>
<option value="klonec">KLone C</option>
<option value="klonecpp">KLone C++</option>
<option value="latex">LaTeX</option>
<option value="lb">Liberty BASIC</option>
<option value="lisp">Lisp</option>
<option value="locobasic">Locomotive Basic</option>
<option value="logtalk">Logtalk</option>
<option value="lolcode">LOLcode</option>
<option value="lotusformulas">Lotus Notes</option>
<option value="lotusscript">LotusScript</option>
<option value="lscript">LScript</option>
<option value="lsl2">LSL2</option>
<option value="lua">Lua</option>
<option value="m68k">Motorola 68000 Asm</option>
<option value="magiksf">MagikSF</option>
<option value="make">GNU make</option>
<option value="mapbasic">MapBasic</option>
<option value="matlab">Matlab M</option>
<option value="mirc">mIRC Scripting</option>
<option value="mmix">MMIX</option>
<option value="modula2">Modula-2</option>
<option value="modula3">Modula-3</option>
<option value="mpasm">Microchip Asm</option>
<option value="mxml">MXML</option>
<option value="mysql">MySQL</option>
<option value="newlisp">newlisp</option>
<option value="nsis">NSIS</option>
<option value="oberon2">Oberon-2</option>
<option value="objc">Objective-C</option>
<option value="objeck">Objeck</option>
<option value="ocaml">OCaml</option>
<option value="ocaml-brief" class="sublang">&nbsp;&nbsp;OCaml (brief)</option>
<option value="oobas">OpenOffice.org Basic</option>
<option value="oracle11">Oracle 11 SQL</option>
<option value="oracle8">Oracle 8 SQL</option>
<option value="oxygene">Oxygene (Delphi Prism)</option>
<option value="oz">OZ</option>
<option value="pascal">Pascal</option>
<option value="pcre">PCRE</option>
<option value="per">per</option>
<option value="perl">Perl</option>
<option value="perl6">Perl 6</option>
<option value="pf">OpenBSD Packet Filter</option>
<option value="php">PHP</option>
<option value="php-brief" class="sublang">&nbsp;&nbsp;PHP (brief)</option>
<option value="pic16">PIC16</option>
<option value="pike">Pike</option>
<option value="pixelbender">Pixel Bender 1.0</option>
<option value="plsql">PL/SQL</option>
<option value="postgresql">PostgreSQL</option>
<option value="povray">POVRAY</option>
<option value="powerbuilder">PowerBuilder</option>
<option value="powershell">PowerShell</option>
<option value="progress">Progress</option>
<option value="prolog">Prolog</option>
<option value="properties">PROPERTIES</option>
<option value="providex">ProvideX</option>
<option value="purebasic">PureBasic</option>
<option value="python">Python</option>
<option value="q">q/kdb+</option>
<option value="qbasic">QBasic/QuickBASIC</option>
<option value="rails">Rails</option>
<option value="rebol">REBOL</option>
<option value="reg">Microsoft Registry</option>
<option value="robots">robots.txt</option>
<option value="rpmspec">RPM Specification File</option>
<option value="rsplus">R / S+</option>
<option value="ruby">Ruby</option>
<option value="sas">SAS</option>
<option value="scala">Scala</option>
<option value="scheme">Scheme</option>
<option value="scilab">SciLab</option>
<option value="sdlbasic">sdlBasic</option>
<option value="smalltalk">Smalltalk</option>
<option value="smarty">Smarty</option>
<option value="sql">SQL</option>
<option value="systemverilog">SystemVerilog</option>
<option value="6502tasm">TASM/64TASS 1.46 Asm</option>
<option value="tcl">TCL</option>
<option value="teraterm">Tera Term Macro</option>
<option value="text">Text</option>
<option value="thinbasic">thinBasic</option>
<option value="tsql">T-SQL</option>
<option value="typoscript">TypoScript</option>
<option value="unicon">Unicon</option>
<option value="vala">Vala</option>
<option value="vb">Visual Basic</option>
<option value="vbnet">VB.NET</option>
<option value="verilog">Verilog</option>
<option value="vhdl">VHDL</option>
<option value="vim">Vim Script</option>
<option value="visualfoxpro">Visual Fox Pro</option>
<option value="visualprolog">Visual Prolog</option>
<option value="whitespace">Whitespace</option>
<option value="whois">Whois (RPSL format)</option>
<option value="winbatch">Winbatch</option>
<option value="xbasic">XBasic</option>
<option value="xml">XML</option>
<option value="xorg_conf">Xorg configuration</option>
<option value="xpp">X++</option>
<option value="z80">ZiLOG Z80 Asm</option>
<option value="zxbasic">ZXBasic</option>

View file

@ -0,0 +1,22 @@
<div class="[[data_visibility]] pagination pull-right">
[[list_pagination]]
</div>
<h1>
<img src="[[skin_path]]/images/list.png" alt="" />
{{archives}}
</h1>
<br class="[[data_visibility]]" />
<div class="[[data_visibility]]">
[[list_data]]
</div>
<div class="[[error_visibility]] hero-unit align-center">
<h1>[[error_text]]</h1>
</div>
<div class="[[data_visibility]] pagination pagination_bottom">
[[list_pagination]]
</div>

View file

@ -0,0 +1,19 @@
<div class="row">
<div class="span12">
<div class="whitebox">
<div class="pull-right">
<a href="[[paste_url]]" class="btn btn-info">{{view_paste}}</a>
</div>
<legend>{{paste}} #[[paste_id]]</legend>
<hr />
<div class="codewrap_small">
[[paste_data]]
</div>
<hr />
<div class="pull-right pasteinfo"><i>[[paste_info]]</i></div>
<div class="pasteinfo"><i>{{language}}: [[paste_lang]]</i></div>
</div>
</div>
</div>

View file

@ -0,0 +1,27 @@
<div class="[[data_visibility]]">
<div class="whitebox whitebox_nomargin">
<div class="pull-right">
<a id="wrap_toggle" href="#" class="btn btn-info">{{wrap}}</a>
<a class="btn btn-info" href="[[raw_url]]">{{view_raw}}</a>
</div>
<div class="imagefix">
<strong>Shortened URL</strong>: <a href="[[short_url]]">[[short_url]]</a>
</div>
<hr />
<div class="codewrap">
[[paste_data]]
</div>
<hr />
<div class="pull-right pasteinfo"><i>[[paste_info]]</i></div>
<div class="pasteinfo"><i>{{language}}: [[paste_lang]]</i></div>
</div>
</div>
<div class="hero-unit align-center nomargin [[error_visibility]]">
<div class="error">
<h1>[[error_text]]</h1>
</div>
</div>

View file

@ -0,0 +1,14 @@
<div class="hero-unit align-center nomargin">
<h1>{{pass_protect}}</h1>
<hr />
<br />
<div class="input-prepend">
<span class="add-on">
<i class="icon-lock"></i>
</span>
<input id="password" class="pull-right" name="password" type="password" size="20" maxlength="50" />
</div>
<br /><br />
<input class="btn btn-large btn-success" id="pass_submit" type="submit" value="{{submit}}" />
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 747 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

View file

@ -0,0 +1 @@

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1 @@

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@

View file

@ -0,0 +1,132 @@
/**
* Sticky Notes pastebin
* @ver 0.3
* @license BSD License - www.opensource.org/licenses/bsd-license.php
*
* Copyright (c) 2012 Sayak Banerjee <sayakb@kde.org>
* All rights reserved. Do not remove this copyright notice.
*/
var IsIe = (navigator.appName.indexOf("Microsoft") >= 0);
var privateChecked = false, captured = false;
// Startup function
$(document).ready(function() {
// Disable auto complete
$('#paste_form').attr('autocomplete', 'off');
// Remove dotted lines around links
$('a').click(function() {
this.blur();
});
// Remove dotted line for drop menus
$('select').change(function() {
this.blur();
});
// Check if private box is checked
if ($('#paste_private').is(':checked'))
{
privateChecked = true;
}
else
{
privateChecked = false;
}
$('#paste_private').click(function() {
if ($(this).is(':checked'))
{
privateChecked = true;
}
else
{
privateChecked = false;
}
});
// Update private checkbox if password is entered
setInterval(function() {
if ($('#paste_password').val() != '') {
$('#paste_private').attr('checked', true);
captured = true;
}
else if (captured && $('#paste_password').val() == '') {
$('#paste_private').attr('checked', privateChecked);
captured = false;
}
}, 100);
// Fetch author and language values from cookies
var author = $.cookie('stickynotes_author');
var language = $.cookie('stickynotes_language');
var index = -1;
if (author != null) {
$('#paste_user').val(author);
}
for (i = 1; i <= 10; i++) {
var $option = $('#paste_lang option:nth-child(' + i.toString() + ')');
if ($option.attr('value') == language) {
index = i - 1;
}
}
if (language != null && index < 0) {
$('#paste_lang').val(language);
} else if (language != null) {
$('#paste_lang').get(0).selectedIndex = index;
}
// Insert tab in the code box
$('#paste_data').keydown(function (e) {
if (e.keyCode == 9) {
var myValue = "\t";
var startPos = this.selectionStart;
var endPos = this.selectionEnd;
var scrollTop = this.scrollTop;
this.value = this.value.substring(0, startPos) + myValue + this.value.substring(endPos,this.value.length);
this.focus();
this.selectionStart = startPos + myValue.length;
this.selectionEnd = startPos + myValue.length;
this.scrollTop = scrollTop;
e.preventDefault();
}
});
// Alias textbox functions
var defaultUser = $('#paste_user_default').html();
$('#paste_user')
.click(function() {
if ($(this).val() == defaultUser) {
$(this).val('');
}
})
.focusout(function() {
if ($(this).val().length == 0) {
$(this).val(defaultUser);
}
});
// Toggle code wrapping
$('#wrap_toggle').click(function() {
var isWrapped = $('.codewrap div').css('white-space') != 'nowrap';
if (isWrapped) {
$('.codewrap div').css('white-space', 'nowrap');
} else {
$('.codewrap div').css('white-space', 'inherit');
}
return false;
});
// Remove php geshi inline css in code area
$(".codewrap ol li").removeAttr("style");
$(".codewrap_small ol li").removeAttr("style");
});

View file

@ -0,0 +1,55 @@
Alias / "/usr/share/sticky-notes/"
<Directory /usr/share/sticky-notes/>
# Allow from all
# AllowOverride all
# Options None
# Order allow,deny
<IfModule mod_rewrite.c>
# Tell PHP that rewrite rules are available
SetEnv HTTP_MOD_REWRITE On
# Rewrite rules
RewriteEngine on
RewriteBase /
# Setup link
RewriteRule ^install/?$ install.php [NC]
# Documentation links
RewriteRule ^doc/([a-z]+)/?$ doc.php?cat=$1 [NC]
RewriteRule ^~([a-z.]+)/doc/([a-z]+)/?$ doc.php?project=$1&cat=$2 [NC]
# Home page links
RewriteRule ^~([a-z.]+)/?$ index.php?project=$1 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z]+)/?$ index.php?project=$1&mode=$2 [NC]
# Paste list
RewriteRule ^all/?$ list.php [NC]
RewriteRule ^api/([a-z]+)/all/?$ list.php?mode=$1 [NC]
RewriteRule ^~([a-z.]+)/all/?$ list.php?project=$1 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z]+)/all/?$ list.php?project=$1&mode=$2 [NC]
RewriteRule ^rss/?$ list.php?rss=1 [NC]
RewriteRule ^~([a-z.]+)/rss/?$ list.php?project=$1&rss=1 [NC]
RewriteRule ^all/([0-9]+)/?$ list.php?page=$1 [NC]
RewriteRule ^api/([a-z]+)/all/([0-9]+)/?$ list.php?mode=$1&page=$2 [NC]
RewriteRule ^~([a-z.]+)/all/([0-9]+)/?$ list.php?project=$1&page=$2 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z]+)/all/([0-9]+)/?$ list.php?project=$1&mode=$2&page=$3 [NC]
# General links
RewriteRule ^([0-9]+)/?$ show.php?id=$1 [NC]
RewriteRule ^~([a-z.]+)/([0-9]+)/?$ show.php?project=$1&id=$2 [NC]
RewriteRule ^([0-9]+)/([a-z|A-Z]+)/?$ show.php?id=$1&mode=$2 [NC]
RewriteRule ^~([a-z.]+)/([0-9]+)/([a-z|A-Z]+)/?$ show.php?project=$1&id=$2&mode=$3 [NC]
RewriteRule ^api/([a-z|A-Z]+)/([0-9]+)/?$ show.php?mode=$1&id=$2 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z|A-Z]+)/([0-9]+)/?$ show.php?project=$1&mode=$2&id=$3 [NC]
RewriteRule ^([0-9]+)/([0-9]+)/?$ show.php?id=$1&hash=$2 [NC]
RewriteRule ^~([a-z.]+)/([0-9]+)/([0-9]+)/?$ show.php?project=$1&id=$2&hash=$3 [NC]
RewriteRule ^([0-9]+)/([0-9]+)/([a-z|A-Z]+)/?$ show.php?id=$1&hash=$2&mode=$3 [NC]
RewriteRule ^~([a-z.]+)/([0-9]+)/([0-9]+)/([a-z|A-Z]+)/?$ show.php?project=$1&id=$2&hash=$3&mode=$4 [NC]
RewriteRule ^api/([a-z|A-Z]+)/([0-9]+)/([0-9]+)/?$ show.php?mode=$1&id=$2&hash=$3 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z|A-Z]+)/([0-9]+)/([0-9]+)/?$ show.php?project=$1&mode=$2&id=$3&hash=$4 [NC]
RewriteRule ^api/([a-z|A-Z]+)/([0-9]+)/([0-9]+)/(.*)$ show.php?mode=$1&id=$2&hash=$3&password=$4 [NC]
RewriteRule ^~([a-z.]+)/api/([a-z|A-Z]+)/([0-9]+)/([0-9]+)/(.*)$ show.php?project=$1&mode=$2&id=$3&hash=$4&password=$5 [NC]
</IfModule>
</Directory>

View file

@ -0,0 +1 @@
post_max_size = 512K

View file

@ -0,0 +1,53 @@
---
#
# Setup paste
#
- name: install needed packages
yum: pkg={{ item }} state=installed
with_items:
- sticky-notes
- php-cli
- php-common
- php-mbstring
- php-mysql
- php-geshi
- php-pdo
- httpd
- httpd-tools
- rsync
tags:
- packages
- name: Fedora branding
copy: src=skins/fedora/ dest=/usr/share/sticky-notes/skins/fedora owner=root group=root mode=775
tags:
- config
- name: sticky-notes httpd config
copy: src=sticky-notes.conf dest=/etc/httpd/conf.d/sticky-notes.conf owner=root group=root mode=644
tags:
- config
notify: restart httpd
- name: sticky-notes php config
template: src=config.php dest=/etc/sticky-notes/config.php owner=root group=root mode=600
tags:
- config
notify: restart httpd
- name: php post limit config
copy: src=sticky-notes.ini dest=/etc/php.d/sticky-notes.ini owner=root group=root mode=644
notify: restart httpd
- name: timeout in case url.ca goes down
copy: src=classes/class_urlshort.php dest=/usr/share/sticky-notes/classes/class_urlshort.php owner=root group=root mode=644
notify: restart httpd
- name: set sebooleans so paste can talk to the db
seboolean: name=httpd_can_network_connect_db state=true persistent=true
- name: startup apache
service: name=httpd enabled=yes state=started
handlers:
- include: "{{ handlers }}/restart_services.yml"

View file

@ -0,0 +1,151 @@
<?php
// Sticky Notes Pastebin configuration file
// (C) 2012 Sayak Banerjee. All rights reserved
/// This is an auto generated file
/// Please DO NOT modify manually
/// Unless you are absolutely sure what you're doing ;-)
{% if environment == "staging" %}
$db_host = "db02.stg";
{% else %}
$db_host = "db-paste";
{% endif %}
$db_port = "";
$db_name = "pastebin";
$db_username = "{{ pastebin_user }}";
$db_password = "{{ pastebinDBPassword }}";
$db_prefix = "paste_";
$site_name = "Fedora Sticky Notes";
$site_title = "Fedora Project Pastebin";
$site_copyright = "Powered by &lt;a href=&quot;http://www.sayakbanerjee.com/sticky-notes/&quot; rel=&quot;nofollow&quot;&gt;Sticky Notes&lt;/a&gt;. Using &lt;a href=&quot;http://github.com/athmane/sticky-notes-fedora-skin&quot;&gt;Fedora skin&lt;/a&gt;.
&lt;br/&gt;
&quot;Sticky Notes&quot; (the web application) is released under the BSD license,
Copyright &Acirc;&copy; 2012 &lt;a href=&quot;http://sayakbanerjee.com&quot;&gt;Sayak Banerjee&lt;/a&gt;.
&lt;p&gt;&quot;Fedora&quot; and the Fedora logo are trademarks of Red Hat, Inc. The Fedora project is maintained and driven by the community. This is a community maintained site. Red Hat is not responsible for content.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://fedoraproject.org/en/sponsors&quot;&gt;Sponsors&lt;/a&gt; | &lt;a href=&quot;http://fedoraproject.org/wiki/Legal:Main&quot;&gt;Legal&lt;/a&gt; | &lt;a href=&quot;http://fedoraproject.org/wiki/Legal:Trademark_guidelines&quot;&gt;Trademark Guidelines&lt;/a&gt;&lt;/p&gt;";
$skin_name = "Fedora";
$lang_name = "en-gb";
$admin_skin_name = "Greyscale";
$admin_lang_name = "en-gb";
$sg_services = "ipban,stealth,noflood,php,censor";
$sg_php_key = "";
$sg_php_days = 90;
$sg_php_score = 50;
$sg_php_type = 2;
$sg_censor = "vipshare.me
terafile.co
lafiles.com
salefiles.com
1fichier.com
adf.ly
4shared.com
bayfiles.com
bitshare.com
box.net
ex-load.com
datafile.com
depositfiles.com
esnips.com
file4go.com
filefactory.com
filerio.in
fileom.com
fileserve.com
fileswap.com
freakshare.com
hotfile.com
how-do-i-make-my-computer
jumbofiles.com
keep2share.cc
koofile.com
kookfile.com
lumfile.com
mediafire.com
oteupload.com
putlocker.com
rapidgator.net
rapidshare.com
redload.net
www.secureupload.eu
secureupload.eu
share-online.biz
sharpfile.com
turbobit.net
uppit.com
uploaded.com
uploaded.net
uploading.com
zippyshare.com
zshare.com
3movs.com
3pic.com
4tube.com
89.com
91porn.com
adultmovies.com
adultxpix.net
amateurs-gone-wild.com
apetube.com
askjolene.com
beeg.com
bustnow.com
cliphunter.com
elephantlist.com
empflix.com
glamourbabez.com
hpornstars.com
isharemybitch.com
jerk2it.com
junocloud.me
keezmovies.com
linkhumper.com
maxporn.com
megaporn.com
mofosex.com
nastyrat.com
officesexx.com
pichunter.com
pixandvideo.com
poguide.com
pornhub.com
pornolunch.com
pornrabbit.com
pornstar-paradise.com
porntube.com
pornyeah.com
redtube.com
sexmummy.com
shufuni.com
slutload.com
tiava.com
tjoob.com
tube8.com
ultra-pornstars.com
vho.com
worldsex.com
www.kookfile.com
www.uploadable.ch
xhamster.com
xnxx.com
xvideos.com
xxxblackbook.com
youporn.com
yourporntube.com
cl-security.org";
$auth_method = "db";
$ldap_server = "";
$ldap_port = "";
$ldap_base_dn = "";
$ldap_uid = "";
$ldap_filter = "";
$ldap_user_dn = "";
$ldap_password = "";
?>

View file

@ -0,0 +1,4 @@
RewriteEngine On
ProxyPass {{ path }} {{ proxyurl }}/
ProxyPassReverse {{ path }} {{ proxyurl }}/