tar -zcvf tar-archive-name.tar.gz source-folder-name
tar -zxvf tar-archive-name.tar.gz
class MyColor | |
attr_accessor :red, :blue, :green, :alpha | |
def initialize(args) | |
@red = args[:red] | |
@blue = args[:blue] | |
@green = args[:green] | |
@alpha = args[:alpha] || 1 | |
end | |
def distance(color) | |
red_diff = self.red - color.red |
User.select(:first,:email).group(:first,:email).having("count(*) > 1").count | |
#{[nil, nil]=>512, | |
# ["Joe", "[email protected]"]=>23, | |
# ["Jim", "[email protected]"]=>36, | |
# ["John", "[email protected]"]=>21} |
http://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualbox-guest-additions-in-sync/ |
http://stackoverflow.com/questions/22922891/vagrant-ssh-authentication-failure/23554973#23554973 |
du -chs * |
\l - to list all the databases | |
\connect <dbname> - connect to the db | |
\dt - list all the tables in the current DB |
How to sync Local Folder with S3 | |
s3cmd --configure | |
give the aws key and the secret key | |
options required | |
* --skip-existing | |
* --progress | |
So |
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
#!/bin/bash | |
echo "*******************************************" | |
ps -aef | wc -l | |
echo "*******************************************" | |
sudo nmap -sS 127.0.0.1 | |
echo "*******************************************" |