Skip to content

Instantly share code, notes, and snippets.

View christyjacob4's full-sized avatar
🎯
Focusing

Christy Jacob christyjacob4

🎯
Focusing
View GitHub Profile
import { Server } from "./config";
let realtime = {
/** @type {WebSocket} */
socket: null,
timeout: null,
endpointRealtime: Server.webSocketEndpoint,
project : Server.project,
channels: {},
lastMessage: {},
@christyjacob4
christyjacob4 / config
Last active February 26, 2020 21:08
Sample SSH Config for VSCode Remote SSH
Host aws-ec2
HostName ec2-44-229-243-8.us-west-2.compute.amazonaws.com
User ubuntu
IdentityFile ~/aws-key/test-key-pair.pem
@christyjacob4
christyjacob4 / get-big-gdrive-file.sh
Last active February 24, 2020 22:49
bash script to download a large gdrive file (>100MB) using wget.
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id='$1 -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id="$1 -O $2 && rm -rf /tmp/cookies.txt
@christyjacob4
christyjacob4 / get-small-gdrive-file.sh
Created February 24, 2020 22:45
bash script to download a small gdrive file (<100MB) using wget.
wget --no-check-certificate "https://docs.google.com/uc?export=download&id="$1 -O $2
@christyjacob4
christyjacob4 / gist:978eb66f807d7e05dd5084a1d4a5e590
Created October 2, 2019 14:52
Getting started with appwrite
  1. Start your containers
docker-compose up -d
  1. Watch the logs of appwrite_maria_db to ensure that it has started and is ready for requests. The appwrite_maria_db service is usually the last one to start up. So if you make requests before the DB is fully initialised , it leads to a lot of errors. You can access the logs using
docker logs -f appwrite_mariadb_1 

The first time you run docker-compose up, the DBs are initialised from scratch and the first run of the DB service takes around 4 minutes for completion. You don't have to wait this long for subsequent startups.

@christyjacob4
christyjacob4 / The Technical Interview Cheat Sheet.md
Created March 9, 2019 18:26 — 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.