Skip to content

Instantly share code, notes, and snippets.

{
"Monday": [
[
"00:00",
"07:00"
],
[
"17:00",
"24:00"
]
#!/bin/bash
echo "*******************************************"
ps -aef | wc -l
echo "*******************************************"
sudo nmap -sS 127.0.0.1
echo "*******************************************"
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@ernest-ns
ernest-ns / How to - S3 sync
Created May 15, 2015 05:22
How to sync/upload local folder to s3
How to sync Local Folder with S3
s3cmd --configure
give the aws key and the secret key
options required
* --skip-existing
* --progress
So
@ernest-ns
ernest-ns / psqlCommands
Created June 10, 2015 05:50
PSQL COMMANDS
\l - to list all the databases
\connect <dbname> - connect to the db
\dt - list all the tables in the current DB
@ernest-ns
ernest-ns / vagrant_ssh_issue_solution.link
Created August 6, 2015 19:15
Solution to solve the vagrant ssh issue
@ernest-ns
ernest-ns / guest_additions.link
Created August 7, 2015 04:14
Vagrant: How to keep your guest additions updated
@ernest-ns
ernest-ns / smokers.rb
Created May 31, 2012 12:28
Go for a smoke?
class Smokers < ActiveRecord:: Base
belongs_to :heart_failure_statistics
has_many :cigarettes
attr_accessor :mins_since_last_puff
before_validation :check_cigarettes
def smoke?
if mins_since_last_puff >= 60
print("Smoke?")

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"