Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@msiddhiq
msiddhiq / upstox_market_feeder_dynamic_subscription.py
Created September 19, 2024 21:10 — forked from Rahulzz/upstox_market_feeder_dynamic_subscription.py
Upstox API - Market Feeder - Sample for Dynamic Subscription
import asyncio
import json
import ssl
import websockets
from google.protobuf.json_format import MessageToDict
import MarketDataFeed_pb2 as pb
import upstox_client
async def establish_connection(configuration):
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember App'
});

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev

#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#define likely(expr) __builtin_expect(!!(expr), 1)
#define unlikely(expr) __builtin_expect(!!(expr), 0)
#define __EXTEND_MEM (256<<10)