Skip to content

Instantly share code, notes, and snippets.

View Silverbullet069's full-sized avatar

VH Silverbullet069

View GitHub Profile
@abstractvector
abstractvector / Dockerfile
Last active April 20, 2025 16:49
Lightweight node.js Dockerfile
ARG ALPINE_VERSION=3.11
ARG NODE_VERSION=15.5.1
##########################
# Cache-preserving image #
##########################
FROM alpine:${ALPINE_VERSION} AS deps
RUN apk --no-cache add jq
@bmaupin
bmaupin / free-database-hosting.md
Last active May 13, 2025 10:49
Free database hosting
@s-leroux
s-leroux / file
Last active April 22, 2024 05:10
AWK one-liners support file
CREDITS,EXPDATE,USER,GROUPS
99,01 jun 2018,sylvain,team:::admin
52,01 dec 2018,sonia,team
52,01 dec 2018,sonia,team
25,01 jan 2019,sonia,team
10,01 jan 2019,sylvain,team:::admin
8,12 jun 2018,öle,team:support
@bmaupin
bmaupin / free-backend-hosting.md
Last active May 14, 2025 18:15
Free backend hosting
@wojteklu
wojteklu / clean_code.md
Last active May 15, 2025 14:30
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@egel
egel / auto-remove-sublime-license-popup
Last active April 14, 2025 09:58
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@aviris
aviris / Tab out of Autocomplete Pairs
Created November 12, 2013 23:24
Tab out of paired characters in Sublime Text (e.g. "",{},[],(),**,__, etc.).
[
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)\"\\]*_}]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]
}
]