Skip to content

Instantly share code, notes, and snippets.

View Anveio's full-sized avatar

Shovon Hasan Anveio

View GitHub Profile
@Anveio
Anveio / tsconfig.json
Created July 29, 2017 16:49
tsconfig for typescript-lambda-example
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"lib": [ "es6", "dom" ],
"moduleResolution": "node",
"rootDir": "./",
"sourceMap": true,
"allowJs": true,
"noImplicitAny": true,
This file has been truncated, but you can view the full file.
// ==UserScript==
// @name Mturk Engine
// @namespace https://github.com/Anveio/mturk-engine/
// @version 1.2.3
// @description Earn money more efficiently on Amazon's Mechanical Turk work platform.
// @author Anveio (Shovon Hasan)
// @match https://www.mturk.com/mturk/findhits?mturkengine
// @grant none
// @updateURL https://raw.githubusercontent.com/Anveio/mturk-engine/master/build/mturk-engine.latest.user.js
// ==/UserScript==
// ==UserScript==
// @name Mturk Engine (Lite)
// @namespace https://github.com/Anveio/mturk-engine/
// @version 1.2.3
// @description Earn money more efficiently on Amazon's Mechanical Turk work platform.
// @author Anveio (Shovon Hasan)
// @match https://www.mturk.com/mturk/findhits?mturkengine
// @grant none
// ==/UserScript==
@Anveio
Anveio / machine.js
Last active November 9, 2020 15:40
Generated by XState Viz: https://xstate.js.org/viz
const confidentialMachine = Machine({
id: 'confidential',
initial: 'OFF',
context: {
dndEnabled: false,
retries: 0
},
on: {
ENABLE_DND: 'LOADING',
ACCESSORY_DISCONNECTED: 'DISABLED',
import { NextRequest, NextResponse } from 'next/server';
import { kv } from '@vercel/kv';
import { WorkOS } from '@workos-inc/node';
const workos = new WorkOS(process.env.WORKOS_API_KEY);
export async function POST(request: NextRequest) {
const { email, password } = await request.json();
const ip = request.ip;