start new:
tmux
start new with session name:
tmux new -s myname
| # Call scopes directly from your URL params: | |
| # | |
| # @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
| module Filterable | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| # Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
| # with their associated values. For example, "{ status: 'delayed' }" would call |
| echo "This is our provisioning script" | |
| apt-get update | |
| apt-get install -y python-software-properties python g++ make | |
| add-apt-repository ppa:chris-lea/node.js | |
| apt-get update | |
| apt-get install -y nodejs | |
| npm install -g grunt-cli |
| /* | |
| Infix to postfix conversion in C++ | |
| Input Postfix expression must be in a desired format. | |
| Operands and operator, both must be single character. | |
| Only '+' , '-' , '*', '/' and '$' (for exponentiation) operators are expected. | |
| */ | |
| #include<iostream> | |
| #include<stack> | |
| #include<string> |
| /*Queue - Linked List implementation*/ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct Node { | |
| int data; | |
| struct Node* next; | |
| }; | |
| // Two glboal variables to store address of front and rear nodes. | |
| struct Node* front = NULL; | |
| struct Node* rear = NULL; |
| /* Doubly Linked List implementation */ | |
| #include<stdio.h> | |
| #include<stdlib.h> | |
| struct Node { | |
| int data; | |
| struct Node* next; | |
| struct Node* prev; | |
| }; |
| /* Queue - Circular Array implementation in C++*/ | |
| #include<iostream> | |
| using namespace std; | |
| #define MAX_SIZE 101 //maximum size of the array that will store Queue. | |
| // Creating a class named Queue. | |
| class Queue | |
| { | |
| private: | |
| int A[MAX_SIZE]; |
| // Stack - Object oriented implementation using arrays | |
| #include <iostream> | |
| using namespace std; | |
| #define MAX_SIZE 101 | |
| class Stack | |
| { | |
| private: | |
| int A[MAX_SIZE]; // array to store the stack | |
| int top; // variable to mark the top index of stack. |
| $ brew uninstall postgresql | |
| $ gem uninstall pg # ALL OF THEM | |
| $ rm -fr /usr/local/var/postgres | |
| $ launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
| $ pg_ctl -D /usr/local/var/postgres stop -s -m fast # WE SHOULD HAVE ALL postgres SERVERS & PROCESSES STOPPED BY NOW | |
| $ brew install postgres | |
| $ env ARCHFLAGS="-arch x86_64" gem install pg | |
| $ echo "DONE." >> /dev/null | |
Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.
First install motion:
~> sudo apt-get install motion
Then create a config file:
~> mkdir ~/.motion
~> nano ~/.motion/motion.conf