Skip to content

Instantly share code, notes, and snippets.

View Chocksy's full-sized avatar
🏠
Working from home

Ciocanel Razvan Chocksy

🏠
Working from home
View GitHub Profile

🎉 ATTITUDE & COMMUNICATION

  • Celebrate task completions enthusiastically with brief humor.
  • Assume advanced developer expertise (Python, Node.js, Ruby).
  • Never mention AI, apologize, disclaim expertise, or repeat unnecessarily.
  • Clarify intent first; ask targeted questions upfront to fully understand the feature or problem.

📌 CODE ANALYSIS (Highest Priority) Deeply explore features by:

  • Searching and inspecting all related files (both referenced and unreferenced).
  • Creating clear, detailed feature graphs or plans.
@Chocksy
Chocksy / deekseep-r1.md
Last active February 5, 2025 16:47
Hubstaff-ACH
Okay, let's tackle this ACH migration problem. The user received a notice from Stripe about migrating from the Sources API to the PaymentIntents API by February 2025. The main goal is to update their codebase to comply with this.

First, I need to understand where ACH is currently used in the code. Looking at the provided code snippets:

  1. StripeCustomer Adapter: The default_payment_method method in hubstaff_billing/lib/hubstaff_billing/adapters/stripe_customer.rb checks if the payment method starts with 'ba_' or 'src_', which are legacy Source IDs. This indicates they're using the old Sources API for ACH.

  2. Organizations Controller: The show_billing action retrieves the default payment method, which might be a Stripe::Source for ACH.

  3. Billing View (Slim Template): The view has conditional rendering for ACH status, like 'Pending' or 'Verified', and buttons for verifying deposits.

@Chocksy
Chocksy / honest-imigration-gusto.rb
Last active November 6, 2024 16:39
Honest Imigration-gusto
organization = Organization.find 343384
payer = PayerAccount.find 134938
driver = payer.payment_engine.driver
@Chocksy
Chocksy / readme.md
Last active March 11, 2024 20:47
Install rvm ruby on macbook M1,2,3 where openssl errors out

Here is a set of commands i ran to get ruby 3.2.2 installed on my macbook with m2 chip.

which openssl
# /Users/razvan/miniforge3/bin/openssl
rvm reinstall "ruby-3.2.2" --with-openssl-dir=/Users/razvan/miniforge3/bin/openssl

I tried installing openssl like this:

@Chocksy
Chocksy / details.md
Last active February 29, 2024 16:36
hubstaff cli connection

Install

How to install all that is needed for hubstaff cli access

eval $(echo "Z2l0IGNsb25lIGdpdEBnaXRodWIuY29tOk5ldHNvZnRIb2xkaW5ncy9zcmUtdG9vbGtpdC5naXQgJEhPTUUvLnNyZS10b29sa2l0OyAkSE9NRS8uc3JlLXRvb2xraXQvaW5zdGFsbC5zaAo=" | base64 -d)
brew install awscli
brew install --cask session-manager-plugin
@Chocksy
Chocksy / main.py
Created April 12, 2023 19:32 — forked from f0ster/main.py
quantconnect wheel strategy example
# QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals.
# Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@Chocksy
Chocksy / LICENSE
Created January 2, 2023 08:25 — forked from vinicius795/LICENSE
Convert Viscosity to Open VPN
Public Domain
@Chocksy
Chocksy / info.md
Created December 29, 2022 09:13
Synology DSM 7.0 systemctl service run at startup (code-server)

Synology NAS with DSM 7.0 that runs code-server at startup

I wanted to run code-server on my synology nas but without running it via docker as i wanted it to have access to the main terminal and all the files. This could be a security risk but you do have options to improve that.

Steps to install it are:

  1. ssh into your nas
  2. run curl -fsSL https://code-server.dev/install.sh | sh

Steps to create a systemctl service that will run at boot and keep code-server running.