Skip to content

Instantly share code, notes, and snippets.

View shakogegia's full-sized avatar

Shalva Gegia shakogegia

View GitHub Profile
@shakogegia
shakogegia / cmd.sh
Created May 30, 2017 22:38 — forked from tanaydin/cmd.sh
Example of using Apache Bench (ab) to POST JSON to an API
# post_loc.txt contains the json you want to post
# -p means to POST it
# -H adds an Auth header (could be Basic or Token)
# -T sets the Content-Type
# -c is concurrent clients
# -n is the number of requests to run in the test
ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/
@shakogegia
shakogegia / Storage.js
Created July 10, 2018 12:20 — forked from yairopro/Storage.js
Modules to store in DB or as key-value for react-native.
import SQLite from 'react-native-sqlite-2'
import {Platform} from "react-native";
const openedDb = {};
/**
* Wrapper for react-native-sqlite-2.
* Methods:
* <ul>
* <li>Promise<Array<Object>> {@link execute}(statement, ...variables) : Execute a statement. Variables will be binded into the statement. It returns the list of items matching the statement.</li>
@shakogegia
shakogegia / README.md
Created March 3, 2022 10:41 — forked from xpepermint/README.md
RushJS cheatsheet

Commands

Install dependencies:

npm install -g @microsoft/rush

Initialize the project: