Skip to content

Instantly share code, notes, and snippets.

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

Harsha MV harshamv

🏠
Working from home
View GitHub Profile
@Neilblaze
Neilblaze / SD.md
Last active April 15, 2024 19:01
Standard System Design Interview Approach Template
@Chintan7027
Chintan7027 / currency-symbols.csv
Last active May 20, 2021 08:09 — forked from bzerangue/currency-symbols.xml
World currencies with their symbols in csv,JSON,sql and, xml
_code _unicode-decimal _unicode-hex __text
ALL 76, 101, 107 4c, 65, 6b Albania Lek
AFN 1547 60b Afghanistan Afghani
ARS 36 24 Argentina Peso
AWG 402 192 Aruba Guilder
AUD 36 24 Australia Dollar
AZN 1084, 1072, 1085 43c, 430, 43d Azerbaijan New Manat
BSD 36 24 Bahamas Dollar
BBD 36 24 Barbados Dollar
BYR 112, 46 70, 2e Belarus Ruble
@kenshero
kenshero / gist:dfa15941977a4ca24f24
Last active August 9, 2016 18:16
Script Rails server
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev -y
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
@sunnyluthra
sunnyluthra / deletePendingPosts.js
Last active March 1, 2016 04:36
It will delete all the pending posts
var deleteSpam = {
count: 0,
list: null,
timeout: 500,
//Selector of cross(x) link
crossSelector: '.userContentWrapper [aria-label="Delete"]',
//Selector for buttons wrapper in overlay box which appears when we click on cross icon
overlayPresenseSelector: '.uiOverlayFooter',
//Delete button selector on overlay box
confirmDeleteButtonSelector: 'button.layerConfirm',
@knownasilya
knownasilya / index.html
Last active November 6, 2023 18:45 — forked from Hagith/drawing-tools.html
Google Maps Advanced Drawing
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>Drawing Tools</title>
<script type="text/javascript"
src="http://maps.google.com/maps/api/js?sensor=false&libraries=drawing"></script>
<style type="text/css">
#map, html, body {
@ChuckJHardy
ChuckJHardy / digital_ocean_setup.md
Last active October 27, 2023 17:51
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@seanbehan
seanbehan / email-regex-match.js
Last active October 3, 2022 07:49
extract email addresses from string with javascript
// http://rubular.com/r/twBPG8HQgP
regex = /\S+[a-z0-9]@[a-z0-9\.]+/img
"hello sean@example.com how are you? do you know bob@example.com?".match(regex)
// ["sean@example.com", "bob@example.com"]
@harshamv
harshamv / Commands
Last active August 29, 2015 14:10
Setting up a New Rails App
# Create a new Rails Project
rails new <project-name> -d mysql
# Run Bundler
bundle install
# Database Initiation
rake db:create
# Dump SQL file into MySQL
@chales
chales / db-connect-test.php
Last active June 3, 2023 01:01
Script for a quick PHP MySQL DB connection test.
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$connect = mysql_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
@JamesDullaghan
JamesDullaghan / digitalocean.md
Created July 6, 2013 20:54
Deploy rails app to digitalocean with nginx, unicorn, capistrano & postgres

Deploy Rails app to digitalocean with nginx, unicorn, capistrano & postgres

Create droplet of your liking (ubuntu 12.10 x32)

ssh to root in terminal with your server ip

ssh root@123.123.123.123

Add ssh fingerprint and enter password provided in email