Skip to content

Instantly share code, notes, and snippets.

@nicolasdao
nicolasdao / UserInStrategy.js
Last active May 2, 2024 02:14
UserIn strategy template. Keywords: userin
/**
* Copyright (c) 2020, Cloudless Consulting Pty Ltd.
* All rights reserved.
*
* To use this template, follow the next steps:
*
* 1. Install 'userin-core': npm i userin-core
* 2. Set the constant variable 'STRATEGY' to your liking.
* 3. Rename the class 'YourStrategy' to your liking.
* 4. Implement all the following functions:
@nicolasdao
nicolasdao / functional_programming_guide.md
Last active May 2, 2024 02:13
Functional programming guide. Keywords: function functional program curry currying monad monadic immutable immutability
@nicolasdao
nicolasdao / postman_guide.md
Last active May 2, 2024 02:13
Postman guide. Keywords: postman web api rest
@NigelEarle
NigelEarle / Knex-Setup.md
Last active May 2, 2024 02:13
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@nicolasdao
nicolasdao / aws_managed_policies.json
Created August 2, 2021 13:16
AWS managed policies
[
{ "name": "AWSAccountActivityAccess", "arn": "arn:aws:iam::aws:policy/AWSAccountActivityAccess" },
{ "name": "AWSAccountUsageReportAccess", "arn": "arn:aws:iam::aws:policy/AWSAccountUsageReportAccess" },
{ "name": "AWSAgentlessDiscoveryService", "arn": "arn:aws:iam::aws:policy/AWSAgentlessDiscoveryService" },
{ "name": "AWSApplicationDiscoveryAgentAccess", "arn": "arn:aws:iam::aws:policy/AWSApplicationDiscoveryAgentAccess" },
{ "name": "AWSApplicationDiscoveryServiceFullAccess", "arn": "arn:aws:iam::aws:policy/AWSApplicationDiscoveryServiceFullAccess" },
{ "name": "AWSBatchFullAccess", "arn": "arn:aws:iam::aws:policy/AWSBatchFullAccess" },
{ "name": "AWSBatchServiceRole", "arn": "arn:aws:iam::aws:policy/service-role/AWSBatchServiceRole" },
{ "name": "AWSCertificateManagerFullAccess", "arn": "arn:aws:iam::aws:policy/AWSCertificateManagerFullAccess" },
{ "name": "AWSCertificateManagerReadOnly", "arn": "arn:aws:iam::aws:policy/AWSCertificateManagerReadOnly" },
@nicolasdao
nicolasdao / actions.js
Created February 4, 2022 00:21
AWS actions list. Keywords: aws actions action
app.PolicyEditorConfig={"conditionOperators":["ArnEquals","ArnEqualsIfExists","ArnLike","ArnLikeIfExists","ArnNotEquals","ArnNotEqualsIfExists","ArnNotLike","ArnNotLikeIfExists","BinaryEquals","BinaryEqualsIfExists","BinaryNotEquals","BinaryNotEqualsIfExists","Bool","BoolIfExists","DateEquals","DateEqualsIfExists","DateGreaterThan","DateGreaterThanEquals","DateGreaterThanEqualsIfExists","DateGreaterThanIfExists","DateLessThan","DateLessThanEquals","DateLessThanEqualsIfExists","DateLessThanIfExists","DateNotEquals","DateNotEqualsIfExists","IpAddress","IpAddressIfExists","NotIpAddress","NotIpAddressIfExists","Null","NumericEquals","NumericEqualsIfExists","NumericGreaterThan","NumericGreaterThanEquals","NumericGreaterThanEqualsIfExists","NumericGreaterThanIfExists","NumericLessThan","NumericLessThanEquals","NumericLessThanEqualsIfExists","NumericLessThanIfExists","NumericNotEquals","NumericNotEqualsIfExists","StringEquals","StringEqualsIfExists","StringEqualsIgnoreCase","StringEqualsIgnoreCaseIfExists","StringLi
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active May 2, 2024 02:12
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@minhanhhere
minhanhhere / Instruction.md
Last active May 2, 2024 02:09
Customise Your Terminal Using Zsh & powerlevel10k

What we will setup

1. ZSH

ZSH, also called the Z shell, is an extended version of the Bourne Shell (sh), with plenty of new features, and support for plugins and themes.

2. oh-my-zsh

This is a framework for zsh

3. Powerlevel 10k

Powerlevel10k is a theme for Zsh. It emphasizes speed, flexibility and out-of-the-box experience.

@t18n
t18n / tsconfig.json
Last active May 2, 2024 02:07 — forked from vemarav/tsconfig.json
[Example tsconfig.json] Tsconfig.json with description #typescript
{
"compilerOptions": {
/* Basic Options */
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
"esnext",
"dom"
] /* Specify library files to be included in the compilation. */,
// "allowJs": true, /* Allow javascript files to be compiled. */
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active May 2, 2024 02:07
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window