Skip to content

Instantly share code, notes, and snippets.

@codeami
codeami / ReuseRequest.js
Created July 19, 2022 12:22 — forked from prashantagarwal/ReuseRequest.js
Script to fetch and reuse a request from a different collection
function executeReferencedRequest({ collectionUUID, requestName }, callback) {
var _ = require('lodash');
//Please refer Postman docs on how to generate an API KEY https://go.pstmn.io/docs-pro-api-intro
const API_KEY = "<API-KEY>";
/*
Here we are making an API call to Postman (Refer: https://api.getpostman.com) using pm.sendRequest from the script,
to fetch the collection from which we need to reuse the request.
*/

Crisp-DM on AWS

Six phase of DM

Phase 1: Business Understanding

@codeami
codeami / amazon-ec2-ftp.md
Created August 18, 2020 19:33 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup
@codeami
codeami / rails5.md
Last active February 16, 2018 12:04

Pry Cheat Sheet

Command Line

  • pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)
  • pry -r ./config/environment.rb - load your rails into a pry session

Debugger

@codeami
codeami / The Technical Interview Cheat Sheet.md
Created February 2, 2017 19:30 — 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.
@codeami
codeami / web-servers.md
Created February 2, 2017 19:23 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@codeami
codeami / testAndApi.js
Created November 30, 2016 10:14
Jasmine Test needs to know when all API requests are done. (APIs are using request-promise and tj/co generators)
//Jasmine test // AUT = app under test // HCS = some resouce to be created multiple times to test pagination
// defaultData has 11 defaultHCSID in array
describe ("Test: Create 11 HCSes to test pagination", function () {
beforeAll(function (done) {
AUT.api.defaultHCS.create(defaultData).then(()=> {
done();
//setTimeout(function () {done();}, AUT.API_TIMEOUT);
});
});
@codeami
codeami / Async.md
Last active October 17, 2016 07:34
JavaScript Asynchronous Execution Concepts: Callbacks vs Promises - Concepts and History