Skip to content

Instantly share code, notes, and snippets.

View craiglondon's full-sized avatar

Craig London craiglondon

View GitHub Profile
@craiglondon
craiglondon / tcpview.sh
Created August 31, 2017 14:10
A Windows' TCPView-like command for linux
#!/bin/bash
watch -pn 0.1 "netstat -pat"
@craiglondon
craiglondon / .jshintrc
Last active July 8, 2016 20:07 — forked from artanisdesign/.jshintrc
Titanium JSHint setup
{
"bitwise": true,
"camelcase": true,
"eqeqeq": true,
"indent": 4,
"unused": true,
"onevar": true,
"undef": true,
"trailing": true,
"latedef": true,
@craiglondon
craiglondon / .htaccess
Last active August 29, 2015 14:17 — forked from ludo237/.htaccess
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
# This is the free sample of .htaccess from 6GO s.r.l.
# @author Claudio Ludovico Panetta (@Ludo237)
###########################
# Variables Section
###########################
# iptables path --> iptables binary
IPT=$(which iptables)
# internet interface --> ifconfig
IFACE="venet0:0"
#####################################
<html>
<head>
<title>Equal Height columns on Bootstrap</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/js/bootstrap.min.js"></script>

Simply digit

cd

If you dont' have already an ssh keychan generate it

ssh-keygen -t rsa -C "your@email.com"

Lastly

#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Original Author: Michael Conigliaro
# Author: Craig London
# UBUNTU Config
WP_OWNER=changeme # &lt;-- wordpress owner
@craiglondon
craiglondon / .htaccess
Last active August 29, 2015 14:17 — forked from ludo237/.htaccess
# Apache configuration file
# httpd.apache.org/docs/2.2/mod/quickreference.html
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html
# Techniques in here adapted from all over, including:
# Kroc Camen: camendesign.com/.htaccess
# perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
# Sample .htaccess file of CMS MODx: modxcms.com
# This is the free sample of .htaccess from 6GO s.r.l.
# @author Claudio Ludovico Panetta (@Ludo237)