When you start a clean Linode, it isn't secured in the following aspects:
- Allows root SSH login
- Uses password authentication on SSH
- Doesn't have a firewall
| # Copyright (C) 2013 Wesley Baugh | |
| """Tools for text classification. | |
| Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
| """ | |
| from __future__ import division | |
| import math | |
| from collections import defaultdict, namedtuple, Counter | |
| from fractions import Fraction |
| var Multipart = { | |
| parse: (function() { | |
| function Parser(arraybuf, boundary) { | |
| this.array = arraybuf; | |
| this.token = null; | |
| this.current = null; | |
| this.i = 0; | |
| this.boundary = boundary; | |
| } |
| // Documentation: https://github.com/beautify-web/js-beautify | |
| // Example URL: https://github.com/victorporof/Sublime-HTMLPrettify/blob/master/.jsbeautifyrc | |
| // Based on Airbnb's JavaScript Style Guide, URL: https://github.com/airbnb/javascript | |
| { | |
| // Collapse curly brackets | |
| "brace_style": "collapse", | |
| // Break chained method calls across subsequent lines | |
| "break_chained_methods": true, |
| var path = require('path'); | |
| var _invalidateRequireCacheForFile = function(filePath){ | |
| delete require.cache[path.resolve(filePath)]; | |
| }; | |
| var requireNoCache = function(filePath){ | |
| _invalidateRequireCacheForFile(filePath); | |
| return require(filePath); | |
| }; |
These rules are adopted from the AngularJS commit conventions.
| <title>Ganttttttttttttt</title> | |
| <script src="http://d3js.org/d3.v3.min.js"></script> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script> | |
| <style> | |
| .axis path, | |
| .axis line { | |
| fill: none; | |
| stroke: none; | |
| shape-rendering: crispEdges; |
| <?php | |
| //Automatically login a single WordPress user upon arrival to a specific page. | |
| //Redirect to home page once logged in and prevent viewing of the login page. | |
| //Tested with WP 3.9.1. Used in functions.php | |
| //Updated 2014-07-18 to resolve WP_DEBUG notice: "get_userdatabylogin is deprecated since version 3.3! Use get_user_by('login') instead." | |
| //From http://tourkick.com/2014/wordpress-demo-multisite-db-reset/ | |
| function auto_login() { | |
| //change these 2 items | |
| $loginpageid = '1234'; //Page ID of your login page |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| #! /usr/bin/env php | |
| <?php | |
| # Stuff we have to do | |
| if(!defined('sugarEntry'))define('sugarEntry', true); | |
| function usage() { | |
| global $argv; | |
| return "\n" . $argv[0] . " <path to sugar>\n"; | |
| } |