Skip to content

Instantly share code, notes, and snippets.

View wojukasz's full-sized avatar
🕶️
They live...

Lukas W wojukasz

🕶️
They live...
  • Earth
View GitHub Profile
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@yifanzz
yifanzz / .cursorrules
Last active April 20, 2025 00:05
EP7 Notes
You are an expert in TypeScript, Node.js, Next.js App Router, React, Shadcn UI, Radix UI and Tailwind.
Project Context: This is a dev tool built for evaluating open source projects allowing people to better understand the maintainability, activity and longevity of a given project to allow devs to better decide whether they should include or use the given open source repositories after the analysis
Code Style and Structure
- Write concise, technical TypeScript code with accurate examples.
- Use functional and declarative programming patterns; avoid classes.
- Prefer iteration and modularization over code duplication.
- Use descriptive variable names with auxiliary verbs (e.g., isLoading, hasError).
- Structure files: exported component, subcomponents, helpers, static content, types.
@wojukasz
wojukasz / CHANGELOG.md
Last active April 6, 2025 15:44
VsCode + Vim keybindings and settings - best of both worlds

Changelog

All notable changes to this configuration will be documented in this file.

[1.0.0] - 2025-01-22

Added

  • Enhanced Git integration
    • Pull command: <leader>g p
  • Push command: g P

Everforest - Alacritty

In ~/.config/alacritty/alacritty.yml:

# Define
schemes:
  everforest_dark_hard: &everforest_dark_hard
    primary:
      background: '#272e33'
@quiver
quiver / iam-policy.json
Last active July 19, 2024 19:37
How to connect to Amazon RDS PostgreSQL with IAM credentials
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"rds-db:connect"
],
"Resource": [
"arn:aws:rds-db:region:account-id:dbuser:dbi-resource-id/database-user-name"
@altaurog
altaurog / docker_descendants.py
Last active August 11, 2024 09:08
Python3 script to find descendants of one or more docker images
#!/usr/bin/python3
#
# usage: python3 docker_descendants.py <image_id> ...
import sys
from subprocess import check_output
def main(images):
image_ids = set(images)
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active November 14, 2024 21:20
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

Coverting tomcat class into a parameterised class

class tomcat inherits tomcat::params{

class tomcat(
 $xms, 
@initcron
initcron / puppet_lab_chap6_templates.md
Last active February 10, 2022 16:41
Puppet Labs Chapter 6 - Templates

Converting tomcat.conf into a template

We always start with the original file (e.g. https://gist.github.com/initcron/01f8554fba3305a1bceee9df5ff0aa24)

Create file structure to store the templates

  • Create a director modules/manifests/templates
  • Create a ERB file for tomcat.conf at modules/manifests/templates/tomcat.conf.erb
  • Copy over the contents of the original tomcat.conf. You could use the link above as a sample content
@initcron
initcron / puppet_lab_chap5_params_facts.md
Last active February 10, 2022 16:29
Lab Chapter 5 : Data Driven Modules - Params and Facts

Parameters and Facts

Playing with Scopes

app.pp