emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
| #!/usr/bin/env bash | |
| # Modified from https://gist.github.com/Stono/7e6fed13cfd79598eb15 | |
| # | |
| # MIT License applies to this script. I don't accept any responsibility for | |
| # damage you may cause using it. | |
| set -ex | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "* This script needs to be run as root" |
| version: '3.4' | |
| services: | |
| lb: | |
| image: traefik:1.4.5 | |
| logging: | |
| driver: json-file | |
| options: | |
| max-size: "10m" | |
| max-file: "3" |
| #Source: https://github.com/kubernetes/kubernetes/issues/35712 | |
| FROM ubuntu | |
| ENV container docker | |
| RUN apt-get -y update | |
| RUN apt-get update -qq && apt-get install -qqy \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| lxc \ |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/02export_host_env_vars.sh": | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| #!/usr/bin/env bash | |
| echo Defaults:root \!requiretty >> /etc/sudoers | |
| for envvar in `jq '.optionsettings | {"aws:elasticbeanstalk:application:environment"}[] | .[]' /opt/elasticbeanstalk/deploy/configuration/containerconfiguration` | |
| do |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/01-get-env-name.py": | |
| mode: "000755" | |
| owner: root | |
| group: root | |
| content: | | |
| #!/usr/bin/env python | |
| # https://steelpangolin.wordpress.com/2015/01/30/how-to-find-the-name-of-an-elastic-beanstalk-environment-from-inside-one-of-its-instances/ | |
| import boto.utils |
| # Sets the Docker image that will be used as a base. | |
| FROM trenpixster/elixir:1.3.0 | |
| # Compiles app | |
| RUN mkdir /app | |
| WORKDIR /app | |
| ENV MIX_ENV prod | |
| # Injects AWS env variables explained below |
| { | |
| "AWSEBDockerrunVersion": 2, | |
| "volumes": [ | |
| { | |
| "name": "liftit-app", | |
| "host": { | |
| "sourcePath": "/app" | |
| } | |
| }, | |
| { |
| # This is an appspec.yml template file for use with AWS CodeDeploy. | |
| # The lines in this template starting with the hashtag symbol are | |
| # instructional comments and can be safely left in the file or | |
| # ignored. | |
| # For help completing this file, see the "AppSpec File Reference" in the | |
| # "AWS CodeDeploy User Guide" at | |
| # http://docs.aws.amazon.com/codedeploy/latest/userguide/app-spec-ref.html | |
| # Don't touch version, that's Amazons stuff. | |
| version: 0.0 | |
| # Specify "os: linux" if this revision targets Amazon Linux, |
| <?xml version="1.0"?> | |
| <root> | |
| <devicevendordef> | |
| <vendorname>Microsoft</vendorname> | |
| <vendorid>0x045e</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> | |
| <productname>Sculpt</productname> |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l