Skip to content

Instantly share code, notes, and snippets.

View jendiamond's full-sized avatar
🏠
Working from home

JenDiamond jendiamond

🏠
Working from home
View GitHub Profile

http://www.hypexr.org/linux_scp_help.php

Example syntax for Secure Copy (scp)

What is Secure Copy?

scp allows files to be copied to, from, or between different hosts. It uses ssh for data transfer and provides the same authentication and same level of security as ssh.

Examples

Re-generating Forgot Password Emails With Devise

https://www.codeschool.com/blog/2012/10/02/re-generating-forgot-password-emails-with-devise/

Solution:

  1. Build a custom admin feature using the devise recoverable module.
  2. Documentation for this can be found at:
    http://rubydoc.info/github/plataformatec/devise/master/Devise/Models/Recoverable/ClassMethods
    Ruby (Object) send_reset_password_instructions(attributes = {})
  3. The method attempts to find a user by its email.
    If a record is found, it sends new password instructions.
var functionName;
if( someCondition ) {
functionName = function () {
...
};
}
How to get access to a Linux server if you don't already.
What a Linux distribution is and which one to choose.
What software is needed to connect to Linux from Mac and Windows computers.
What SSH is and how to use it.
The file system layout of Linux systems and where to find programs, configurations, and documentation.
The basic Linux commands you'll use most often.
Creating, renaming, moving, and deleting directories.
Listing, reading, creating, editing, copying, and deleting files.
Exactly how permissions work and how to decipher the most cryptic Linux permissions with ease.
How to use the nano, vi, and emacs editors.

Picnic Bingo

  • Only one answer per person
  • Try to get the answer from someone you don't know
  • You cannot have the same person twice. Name: ________________
    How many times have you attended this picnic? ________________
    What was your favorite picnic food today? ________________
    When is your birthday? ________________
    ________________ has riden a horse on a beach
    ________________ has won an award for painting