Skip to content

Instantly share code, notes, and snippets.

View leni1's full-sized avatar
💭
☺️ Happy 🤓

Leni Kadali leni1

💭
☺️ Happy 🤓
View GitHub Profile
@bradtraversy
bradtraversy / rethinkdb_cheat_sheet.MD
Last active June 8, 2024 17:46
RethinkDB Query Cheat Sheet

RethinkDB Cheat Sheet

Create database

r.dbCreate('mydb')

List databases

@LayZeeDK
LayZeeDK / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Last active July 13, 2024 14:28
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Officially part of the Angular documentation as of 2023-04-19 https://angular.io/guide/versions
Angular CLI version Angular version Node.js version TypeScript version RxJS version
~16.0.0 ~16.0.0 ^16.13.0 || ^18.10.0 >=4.9.5 <5.1.0 ^6.5.5 || ^7.4.0
~15.2.0 ~15.2.0 ^14.20.0 || ^16.13.0 || ^18.10.0 >=4.8.4 <5.0.0 ^6.5.5 || ^7.4.0
~15.1.0 ~15.1.0 ^14.20.0 || ^16.13.0 || ^18.10.0 >=4.8.4 <5.0.0 ^6.5.5 || ^7.4.0
~15.0.5 ~15.0.4 ^14.20.0 || ^16.13.0 || ^18.10.0 ~4.8.4 ^6.5.5 || ^7.4.0
~14.3.0 ~14.3.0 ^14.15.0 || ^16.10.0 >=4.6.4 <4.9.0 ^6.5.5 || ^7.4.0
~14.2.0 ~14.2.0 ^14.15.0 || ^16.10.0 >=4.6.4 <4.9.0 ^6.5.5 || ^7.4.0
~14.1.3 ~14.1.3 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~14.0.7 ~14.0.7 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~13.3.0 ~13.3.0 ^12.20.2 || ^14.15.0 || ^16.10.0 >=4.4.4 <4.7.0 ^6.5.5 || ^7.4.0
@iMerica
iMerica / docker-compose.yml
Last active May 28, 2021 18:36
Gitlab Docker Runners
version: '2'
services:
dind:
restart: always
privileged: true
volumes:
- /var/lib/docker
image: docker:18.06.0-ce-dind
command:
- --storage-driver=overlay2
@MauricioMoraes
MauricioMoraes / access_postgresql_with_docker.md
Last active June 28, 2024 16:17
Allow Docker Container Access to Host's Postgres Database on linux (ubuntu)

You have to do 2 things in order to allow your container to access your host's postgresql database

  1. Make your postgresql listen to an external ip address
  2. Let this client ip (your docker container) access your postgresql database with a given user

Obs: By "Host" here I mean "the server where docker is running on".

Make your postgresql listen to an external ip address

Find your postgresql.conf (in case you don't know where it is)

$ sudo find / -type f -name postgresql.conf

In the cp-readiness repo created in git and version control, create a branch called NODE. Use this branch for the exercise below.
Create a simple Node/Express web app as described in the article below https://stormpath.com/blog/build-nodejs-express-stormpath-app
@ann-mukundi
ann-mukundi / Intro to react
Last active May 28, 2021 18:36
CP-readiness: React
In the cp-readiness repo created in git and version control practice, create a branch called REACT. Use this branch for the exercise below.
Create a simple to-do list application as described in the following article https://medium.com/@aghh1504/1-simple-react-todo-list-52186b62976b
@jsheridanwells
jsheridanwells / notes_part1.md
Last active June 26, 2024 13:13
Rails ToDo API w/ RSpec TDD

Build a RESTful JSON API w/ Rails and RSpec PART ONE

From this tutorial.

Dependency Setup

Gemfile.rb:

  1. Rspec-rails to development and test groups
group :development, :test do
  gem 'rspec-rails', '~> 3.5'
@shubheksha
shubheksha / brackets-pair-colorizer.md
Last active June 14, 2024 09:15
A list of extensions/plugins that highlight matching parens/braces for various editors/IDEs.
@m1yag1
m1yag1 / one_flask_auth.py
Last active May 28, 2021 18:32
A one file example Flask application based on one_flask.py showcasing flask-security for authentication.
# THIS PROJECT IS AN EXAMPLE APP. SOME CODE MAY NOT BE ACTUALLY USEFUL
# FOR DEMONSTRATION PURPOSES ONLY
# YOUR MILEAGE MAY VARY
# Requirements are Flask, Flask-WTF, Flask-SQLAlchemy, bcrypt
import os
from flask import (Flask,
Blueprint,
redirect,
@romainl
romainl / vanilla-linter.md
Last active July 22, 2024 17:18
Linting your code, the vanilla way

Linting your code, the vanilla way

You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.

Defining makeprg

autocmd FileType <filetype> setlocal makeprg=<external command>

This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.