Skip to content

Instantly share code, notes, and snippets.

<div class="Search"><?php
$Form = Gdn::Factory('Form');
$Form->InputPrefix = '';
echo
$Form->Open(array('action' => Url('/search'), 'method' => 'get')),
$Form->TextBox('Search'),
$Form->Button('Go', array('Name' => '')),
$Form->Close();
?></div>
ssh [email protected] "cat ~/.ssh/id_rsa.pub | ssh $2 'mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys; exit;' exit;"
#!/bin/bash
DATE=$(date +%Y-%m-%d-%Hh%M);
if [ -e $1 ]; then
rm -f $1
EVENT="removed"
else
touch $1
EVENT="placed"
fi
<?php get_header(); ?>
<div class="interior">
<a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/logo.png" id="intlogo"></a>
<div class="submenu">
<?php wp_nav_menu( array('menu' => 'Interior Sub Menu' )); ?>
</div>
<div class="sidebar">
@nfreader
nfreader / sshput-function.sh
Created October 31, 2011 18:55 — forked from jfro/sshput-function.sh
modified someone's sshput command for uploading ssh public keys
sshput () {
RSAKEY="${HOME}/.ssh/id_rsa.pub"
DSAKEY="${HOME}/.ssh/id_dsa.pub"
if [ $# -eq 2 ]; then
KEY=$1
if [ ! -r $KEY ]
then
echo "'$KEY' does not exist or is not readable"
return 1
<ul id="menu-header" class="nav menu">
<li id="menu-item-4" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4">
<a href="http://minecraft.nfreader.net/wordpress/">Index</a>
</li>
<li id="menu-item-49" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-49">
<a href="http://minecraft.nfreader.net/wordpress/?page_id=36">Rules and other Info</a>
</li>
<li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8">
<a href="http://minecraft.nfreader.net/wordpress/?page_id=6">Status</a>
</li>
@nfreader
nfreader / functions.php
Created February 6, 2012 18:14 — forked from johnmegahan/functions.php
Extended Walker class for use with the Twitter Bootstrap toolkit Dropdown menus in Wordpress
<?php
add_action( 'after_setup_theme', 'bootstrap_setup' );
if ( ! function_exists( 'bootstrap_setup' ) ):
function bootstrap_setup(){
add_action( 'init', 'register_menu' );
TODO:
General:
- Favicon! (http://allinthehead.com/retro/359/a-favicon-broke-my-app)
Shipyard.php
- Add stock outfit listing
- Add description space
- Remove thumbnails?
14/2/2012
"Bootstrap's Lonely Hearts Club Edition"
----
• New label styles to differentiate between commodity and mission cargo
• New missions page (http://nfreader.net/bootstrap-ru-2/missions2.php)
• The design now scales down to a single column layout on iOS devices (phone/touch)
• Messages > Compose now pops open a modal
• Dummy modal is up for the first message on messages.php and the new message notice in the newsfeed.
• Table on missions2.php is now sortable
• Fancy animations are in (but disabled) for 404.php (attempting to simulate a kernel panic)
<?php if ( current_user_can('manage_options')) { ?>
<div style="position: absolute; top: 10px; left: 10px;">
<a href="#" class="btn btn-danger" data-toggle="modal" data-target="#debug" style="">Show Loop</a> <a href="#" class="btn btn-danger" data-toggle="modal" data-target="#conditions" style="">Show Conditionals</a>
</div>
<div class="modal hide fade" id="debug">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Debug Info</h3>
</div>