Skip to content

Instantly share code, notes, and snippets.

View LogicSatinn's full-sized avatar

Calvin Jackson LogicSatinn

View GitHub Profile

Spring Boot Projects:

  • When working with Spring Boot projects, use the Context7 MCP to get updated language and framework information
  • Do not run any Maven scripts or execute any tests unless explicitly instructed to do so

Code Standards:

  • When creating DTO classes, prefer record classes over traditional classes when possible
  • Use type inference whenever available to reduce verbosity
  • Use declarative programming by using functional code to provide cleaner and readable code wherever possible
@LogicSatinn
LogicSatinn / hls.sh
Created February 3, 2025 13:51 — forked from stenuto/hls.sh
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then
@LogicSatinn
LogicSatinn / gist:b0bf466d4fbc068d5937fb7cc8e0b8b4
Created December 10, 2024 15:56
Guzzle transfer stats unofficial docs
<?php
array (
'url' =>
array (
'name' => 'url',
'option' => 'CURLINFO_EFFECTIVE_URL',
'optionValue' => 1048577,
'desciption' => 'Get the last used URL',
),
@LogicSatinn
LogicSatinn / NumberToSwahiliConverter.java
Created September 9, 2024 14:51
Convert Monetary Amount to Swahili Converter
import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.DecimalFormat;
class NumberToSwahiliConverter {
private static final String[] scalesInSwahili = {"", "laki", "milioni", "bilioni"};
private static final String[] units = {
@LogicSatinn
LogicSatinn / starship.toml
Created July 11, 2023 11:59
Starship config
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = false
# Replace the '❯' symbol in the prompt with '➜'
[character] # The name of the module we are configuring is 'character'
success_symbol = '[➜](bold green)' # The 'success_symbol' segment is being set to '➜' with the color 'bold green'
<scheme name="deligoez-light" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2022-02-10T18:38:05</property>
<property name="ide">PhpStorm</property>
<property name="ideVersion">2021.3.2.0.0</property>
<property name="modified">2022-02-10T18:38:12</property>
<property name="originalScheme">deligoez-light</property>
</metaInfo>
<option name="CONSOLE_FONT_NAME" value="MonoLisa" />
@LogicSatinn
LogicSatinn / pint.json
Last active November 10, 2024 20:03 — forked from JustSteveKing/pint.json
Laravel Pint configuration
{
"preset": "laravel",
"rules": {
"single_quote": true,
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
<scheme name="PlanetScale" version="142" parent_scheme="Default">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="created">2023-05-26T18:21:09</property>
<property name="ide">WebStorm</property>
<property name="ideVersion">2023.1.1.0.0</property>
<property name="modified">2023-05-26T18:21:23</property>
<property name="originalScheme">PlanetScale</property>
</metaInfo>
<option name="LINE_SPACING" value="2.8" />