Skip to content

Instantly share code, notes, and snippets.

@vidyuthd
vidyuthd / dockerrun.aws.json
Created June 8, 2019 16:39
Multicontainer docker run for ebs deployment
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": <appname>,
"host": {
"sourcePath": "/var/app/current"
}
}
],
@vidyuthd
vidyuthd / Gemfile
Last active February 13, 2019 08:21
source 'https://rubygems.org'
gem 'sass-rails'
gem 'sqlite3', platforms: [:ruby, :mingw, :mswin, :x64_mingw]
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
platforms :jruby do
gem 'jruby-openssl'
gem 'activerecord-jdbcsqlite3-adapter'
end
@vidyuthd
vidyuthd / Capybara.md
Created February 20, 2018 11:26 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
@vidyuthd
vidyuthd / The Technical Interview Cheat Sheet.md
Created January 22, 2018 11:41 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@vidyuthd
vidyuthd / gitlab.yml
Created July 21, 2017 07:25
Gitlab ci yml for chrome
image: "ruby:2.3"
services:
- postgres:latest
variables:
POSTGRES_DB: test_db
POSTGRES_USER: runner
POSTGRES_PASSWORD: ""
before_script:
- apt-get update -qq && apt-get install -y -qq postgresql postgresql-contrib libpq-dev cmake
- apt-get install -y wget git unzip xvfb
@vidyuthd
vidyuthd / install_chrome_driver.sh
Created July 20, 2017 10:33
Gist for installing chrome driver
#!/bin/bash
#
# Bash script to setup headless Selenium (uses Xvfb and Chrome)
# (Tested on Ubuntu 12.04) trying on ubuntu server 14.04
# Add Google Chrome's repo to sources.list
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" | tee -a /etc/apt/sources.list
# Install Google's public key used for signing packages (e.g. Chrome)
# (Source: http://www.google.com/linuxrepositories/)
@vidyuthd
vidyuthd / Grunt StopWatch
Created February 20, 2013 18:52
Grunt StopWatch
Need a handle to find out time taken by individual or group or all tasks done by grunt. Currenlty there is no way to find out the time taken by individual task since each individual task is invoked by grunt and we don't have any callback or handle on it to invoke custom methods, unless we write a custom taks ourself and insert after every task and then printing the time taken by using process.hrtime , though some of the tasks do print time taken. For this proper way should be Grunt should emit events after completing tasks, the level at which it should be generated could be brainstormed.