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" |
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| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* STYLES GO HERE */ | |
| } | |
| /* Smartphones (landscape) ----------- */ | |
| @media only screen |
| /*------------------------------------------ | |
| Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
| 1280-1024 - desktop (default grid) | |
| 1024-768 - tablet landscape | |
| 768-480 - tablet | |
| 480-less - phone landscape & smaller | |
| --------------------------------------------*/ | |
| @media all and (min-width: 1024px) and (max-width: 1280px) { } | |
| @media all and (min-width: 768px) and (max-width: 1024px) { } |
| # Sidekiq interaction and startup script | |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/post/50_restart_sidekiq.sh": | |
| mode: "000755" | |
| content: | | |
| #!/bin/bash | |
| . /opt/elasticbeanstalk/hooks/common.sh | |
| . /opt/elasticbeanstalk/support/envvars |
| # Install Git needed for Git based gems | |
| packages: | |
| yum: | |
| git: [] | |
| ## From Lynda.com course 'RSpec Testing Framework with Ruby' | |
| describe 'Expectation Matchers' do | |
| describe 'equivalence matchers' do | |
| it 'will match loose equality with #eq' do | |
| a = "2 cats" | |
| b = "2 cats" | |
| expect(a).to eq(b) |
| # 1) Use VCR.use_cassette in your let block. This will use | |
| # the cassette just for requests made by creating bar, not | |
| # for anything else in your test. | |
| let(:foo) { VCR.use_cassette("foo") { create(:bar) } } | |
| it "uses foo" do | |
| foo | |
| end | |
| # 2) Wrap the it block that uses #foo in VCR.use_cassette. |
###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing