Skip to content

Instantly share code, notes, and snippets.

View balintsera's full-sized avatar

Bálint Séra balintsera

  • LastPass
  • Szeged, Hungary
View GitHub Profile
@balintsera
balintsera / DEVORD template
Last active July 21, 2026 18:21
Devord formatter skill
## 1. SITUATION (max 4 lines)
- Friendly forces: what already exists (code, tools, docs, team)
- Enemy forces: blockers, risks, unknowns
- Attachments/detachments: dependencies, external systems, other teams
- Evaluation: one-line read on where things stand
- Anything not confirmed: mark UNKNOWN — ASK
## 2. MISSION (max 60 words, one paragraph, no bullets)
Task + purpose only. Nothing else.
@balintsera
balintsera / SKILL.md
Last active July 19, 2026 19:03
Claude Skill for Practicing Programming
name practice-programming
description Runs a daily coding-practice session for a staff-level engineer who already knows PHP, JavaScript/TypeScript, and C# and wants to stay hands-on despite heavy AI-assisted coding at work. Generates a small realistic web-development or cybersecurity task (10-30 lines to solve), waits for the user's submission, validates it against generated unit tests, reviews it like a principal engineer, and tracks XP/streaks/badges in a persistent progress file. Trigger this whenever the user says "practice", "give me a coding challenge/exercise/kata", "daily practice", invokes /practice, or asks to check their streak/badges/progress. Do NOT use this for algorithmic interview-style puzzles (LeetCode-style array/graph tricks) unless the user explicitly asks for that — this skill is scoped to realistic web-dev and security work.

Practice Coach

A daily-practice coach for a staff engineer (PHP / JavaScript-TypeScript / C#, AWS-certified, security-certified) who wants short, real

@balintsera
balintsera / lambda-proxy-integration.yml
Last active December 4, 2024 17:51
Lambda Proxy Integration with Cloudformation tamplate
apiGateway:
Type: "AWS::ApiGateway::RestApi"
Properties:
Name: "example-api-gw"
Description: "Example API"
ProxyResource:
Type: "AWS::ApiGateway::Resource"
Properties:
ParentId: !GetAtt apiGateway.RootResourceId
@balintsera
balintsera / mock-single-method.test.js
Created December 4, 2018 12:40
Mock a single method of a class with Rewire
const rewired = rewire('../index.js')
const orig = require('../service/SESMail')
orig.prototype.send = () => { return Promise.resolve() }
rewired.__set__({
'SESMail': orig
})
expect(rewired.handler.bind(null, testEvent, null)).to.not.throw()
@balintsera
balintsera / result.json
Last active November 11, 2018 18:05
Example dynamoDB description
{
"Table": {
"AttributeDefinitions": [
{
"AttributeName": "label",
"AttributeType": "S"
},
{
"AttributeName": "listID",
"AttributeType": "S"
@balintsera
balintsera / Dockerfile
Created June 25, 2018 06:43
Gitlab docker-in-docker builder image
FROM debian:jessie
MAINTAINER balint.sera@gmail.com
# image: customrepo/docker-builder
RUN apt-get update -y
RUN apt-get install -y curl ssh-client
# docker
ENV DOCKER_BUCKET get.docker.com
@balintsera
balintsera / .gitlab-ci.yml
Last active November 3, 2020 08:49
Gitlab config for docker based CICD pipeline (node.js)
image: customregistry/docker-builder:latest
variables:
dockerTag: '$CI_BUILD_REF'
DOCKER_REPO: customregistry
IMAGE_BASE_NAME: redis-faas
IMAGE: $EVISTA_DOCKER_REPO/$IMAGE_BASE_NAME:$CI_BUILD_REF
CONTAINER_NAME: 'fotok-redis-pipeline'
TARGET_DIR_STAGE: /srv/docker/staging/redis-faas
TARGET_DIR_PROD: /srv/docker/prod/redis-faas
@balintsera
balintsera / datastore-internal-attribs.md
Last active May 2, 2018 08:45
Datastore Internal Attributes (Table 11-2 from Database Reliability Engineering, Designing and Operating Resilient Database Systems – Laine Campbell, Charity Majors)
Attribute MySQL Cassandra MongoDB Neo4J
Storage engines Plugins, B-tree primarily LSM only Plugins, B-tree, or LSM Native graph storage
Distributed consistency Focused on consistency Eventual, secondary to availability Focused on consistency Focused on consistency
Distributed availability Secondary to consistency Focused on availability Secondary to consistency Secondary to consistency
Latency Tunable based on durability Optimized for writes Tunable for consistency Optimized
@balintsera
balintsera / Dockerfile
Created October 1, 2017 08:40
Static React docker image build file with nginx enviroment variable replacing
FROM nginx:alpine
ENV APP_CONF="config={}"
WORKDIR /usr/share/nginx/html
COPY --from=vhostfront_build /opt/app/build/ .
COPY nginx-default.conf.template /etc/nginx/conf.d/deafault.conf.template
@balintsera
balintsera / default.conf
Last active October 1, 2017 08:33
Nginx config before substitution
location / {
root /usr/share/nginx/html;
index index.html index.htm;
add_header "Set-Cookie" '${APP_CONF}';
}