Skip to content

Instantly share code, notes, and snippets.

View rocktimsaikia's full-sized avatar
🚀
Shipping fast

Rocktim rocktimsaikia

🚀
Shipping fast
View GitHub Profile
@johntday
johntday / Understanding the Role of a Day Trader.md
Last active August 28, 2026 08:33
Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day.

Understanding the Role of a Day Trader

Date: January 27, 2025

Introduction

Day trading represents a high-stakes, fast-paced approach to trading financial instruments, where traders buy and sell assets within the same trading day. This method is characterized by its focus on short-term price movements and the avoidance of overnight risks. The allure of day trading lies in its potential for high returns and financial independence, offering traders the flexibility to work from virtually anywhere with an internet connection. However, this potential is counterbalanced by significant risks, including financial losses and the psychological demands of maintaining emotional control under pressure (Forbes).

The mechanics of day trading involve a variety of strategies such as scalping, momentum trading, and news-based trading, each designed to exploit market inefficiencies. These strategies require a deep understanding of market dynamics and th

@rocktimsaikia
rocktimsaikia / razorpay-supported-currencies.json
Created July 31, 2024 14:42
Razorpay supported currencies
[
{
"Currency Name": "United Arab Emirates Dirham",
"ISO Code": "AED"
},
{
"Currency Name": "Albanian lek",
"ISO Code": "ALL"
},
{
@rocktimsaikia
rocktimsaikia / README.md
Last active November 29, 2023 09:20 — forked from aidos-dev/README.md
Connect Apple AirPods to Linux (Ubuntu)

Connect Apple AirPods to Linux (Ubuntu)

# 1. Open the below file with vim
sudo vim /etc/bluetooth/main.conf

# 2. Change the value of this field to bredr
ControllerMode = bredr

# 3. Save and Exit from Vim.
@aidos-dev
aidos-dev / README.md
Last active September 23, 2026 19:49
How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

How to connect Apple AirPods to Linux (Debian/Ubuntu/Mint)

Step 1.

Open your terminal.

In the root directory run the command:

sudo nano /etc/bluetooth/main.conf
local feline = require('feline')
local vi_mode = require('feline.providers.vi_mode')
--
-- 1. define some constants
--
-- left and right constants (first and second items of the components array)
local LEFT = 1
local RIGHT = 2
@nosmall
nosmall / Setup Git and Github in Ubuntu 20.04.md
Last active September 10, 2026 16:51
Setup Git and Github in Ubuntu 20.04

Setup Git and Github in Ubuntu 20.04

Install git for sure

sudo apt install git -y

Setup Git username & email

git config --global user.name 'nosmall'
@raviagheda
raviagheda / github-action-ssh.md
Last active December 3, 2025 22:10
Github Action with EC2 using SSH
@danieltorscho
danieltorscho / on-merge-deploy-to-do.md
Last active April 28, 2026 11:59
GitHub Actions deploy nodejs to DigitalOcean Droplet

Github deployment

Requirements:

  • DigitalOcean Droplet (Ubuntu 20.04+) should be created
  • Github repository

Prepare DO Droplet Server:

  • ssh root@DROPLET_IP
  • sudo vi /etc/ssh/sshd_config
  • change PasswordAuthentication from no to yes
@Jaid
Jaid / migratingRules.md
Last active October 30, 2025 07:22
ESLint rules for migrating projects from CommonJS to ESM

ESLint rules

The ESM standard is considered stable in NodeJS and well supported by a lot of modern JavaScript tools.

ESLint does a good job validating and fixing ESM code (as long as you don't use top-level await, coming in ESLint v8). Make sure to enable the latest ECMA features in the ESLint config.

  • .eslint.json
{
@rocktimsaikia
rocktimsaikia / invert.js
Last active March 11, 2021 06:27
Invert an array of integers
// Inverts the integers of an array
const invert = arr => arr.map(n => -n);
invert([2,-5]); //=> [-2,5]