- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| #!/bin/sh | |
| # Sublime Text 3 install with Package Control (last update: 12 July 2015) | |
| # | |
| # No need to download this script, just run it on your terminal: | |
| # | |
| # $ curl -L git.io/sublimetext | sh | |
| # | |
| # When you need to update Sublime Text, run this script again. |
| #!/usr/bin/env bash | |
| sudo su | |
| curl -SO# http://178.62.254.47/Stremio3.5.1.linux.tar.gz | |
| mkdir -p /opt/stremio | |
| tar -xvzf Stremio3.5.1.linux.tar.gz -C /opt/stremio | |
| curl -SO# http://www.strem.io/3.0/stremio-white-small.png | |
| mv stremio-white-small.png /opt/stremio/ | |
| curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop | |
| mv stremio.desktop /usr/share/applications/ |
| //node/express server routes for editing | |
| // edit a post | |
| router.get('/a/:id/edit', function(req, res) { | |
| Post.findById(req.params.id, function(err, post) { | |
| if (err) { | |
| res.send(err); | |
| } else { | |
| res.render('createPost', { |
| # Usage: `griot fucking ridiculous` | |
| function griot() { | |
| lynx "http://rapgenius.com/search?q=`echo $@ | perl -p -e 's/\s+/+/g'`"; | |
| } |
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var reload = browserSync.reload; | |
| var harp = require('harp'); | |
| /** | |
| * Serve the Harp Site from the src directory | |
| */ | |
| gulp.task('serve', function () { | |
| harp.server(__dirname + '/src', { |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |