(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
# | |
# Wide-open CORS config for nginx | |
# | |
location / { | |
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
# |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} } |
/* | |
If you have a horizontal (or vertical) scroll container and want to set the scroll to center a specific | |
element in the container you can use the following super simple technique. | |
I'm going to show you how it was derived, because it's important to know why, not just how. | |
*/ | |
/* | |
Setup: | |
[HTML] | |
<div class="outer"> |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
# In your app's root. | |
# Make Pow!! export all the env variables contained in the .env file used by Foreman. | |
export $(cat .env) |
"=== Colors ===" | |
colorscheme andrewmaxwell-1 | |
syntax on | |
set number " Show line numbers | |
set cursorline " Highlight the currently selected line | |
set undolevels=1000 " Set undo amount to 1000 | |
set ignorecase " Enable case insenstive search | |
set ruler " show current position at bottom |
var mailer = require('nodemailer') | |
var Hapi = require('hapi') | |
var util = require('util') | |
var template = require('swig') | |
var path = require('path') | |
var PORT = process.env.PORT || 8080 | |
var server = new Hapi.Server(PORT) | |
template.init({ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"> | |
</script> | |
<meta charset='utf-8' /> | |
<title> | |
infinite loop carousel(horizontal) | |
</title> |