Skip to content

Instantly share code, notes, and snippets.

View skynet's full-sized avatar
🤖
I'm Skynet

Ionel Roiban skynet

🤖
I'm Skynet
View GitHub Profile

Finishing this guide you'll get:

  • A running Ghost installation
  • Amazon SES mail configuration
  • Simple ssh hardenings
  • Nginx proxy
  • Node.js configured with forever

Specification of latest running installation:

# Install dependencies
#
# * checkinstall: package the .deb
# * libpcre3, libpcre3-dev: required for HTTP rewrite module
# * zlib1g zlib1g-dbg zlib1g-dev: required for HTTP gzip module
apt-get install checkinstall libpcre3 libpcre3-dev zlib1g zlib1g-dbg zlib1g-dev && \
mkdir -p ~/sources/ && \
# Compile against OpenSSL to enable NPN
@skynet
skynet / gist:b95e84892d788036c924
Created June 5, 2014 22:27
Draw a diamond using only CSS
div {
border-style: solid;
border-color: transparent transparent #00FEFD transparent;
border-width: 0 25px 30px 25px;
height: 0;
position: relative;
width: 90px;
}
div:before {
yum install figlet
for font in `ls -1 /usr/share/figlet | grep .flf | cut -d . -f 1`; do echo "$font:"; figlet -f $font SkyNet; done
#!/bin/bash
#
# chkconfig: 345 29 73
# description: mount/unmount my custom bind mounts onto a gfs2 subdirectory
#
#
### BEGIN INIT INFO
# Provides:
### END INIT INFO
@skynet
skynet / gist.md
Created April 28, 2014 06:08 — forked from benbalter/gist.md

Here's an example of how to embed a Gist on GitHub Pages:

{% gist 5555251 %}

All you need to do is copy and paste the Gist's ID from the URL (here 5555251), and add it to a gist tag surrounded by {% and %}.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^widgets - [L]
RewriteRule ^index\.php$ - [L]
@skynet
skynet / gist:9401272
Created March 6, 2014 22:36
How to Set Default CSS Background Properties in WordPress Themes
/**
* http://wptavern.com/how-to-set-default-css-background-properties-in-wordpress-themes
*/
function yourtheme_setup() {
add_theme_support(
'custom-background',
array(
'default-color' => '2d2d2d',
'default-image' => get_template_directory_uri() . '/images/background.jpg',

Date: [date]

Between us [company name] and you [customer name].

Summary:

In short; neither of us will share any confidential information about each-other, by any means, with anyone else.

What’s confidential information?

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post