Skip to content

Instantly share code, notes, and snippets.

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

Vladimir Savenkov vladimirsavenkov

🏠
Working from home
  • Home24 GmbH
  • Berlin
View GitHub Profile
@adomaskizogian
adomaskizogian / Dockerfile
Created July 10, 2024 11:34
minmaxed multiplatform img build
FROM --platform=$BUILDPLATFORM golang:1.22.5-alpine AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* .
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download
FROM base AS builder-linux-amd64
RUN --mount=target=. \
--mount=type=cache,target=/go/pkg/mod \
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active September 29, 2025 14:20
Byte formatting for Google Sheets
@avafloww
avafloww / PhpJava.java
Last active August 12, 2025 13:33
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@maxim
maxim / gh-dl-release
Last active December 5, 2025 21:14
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@sheikhwaqas
sheikhwaqas / setup-mysql.sh
Last active April 1, 2025 18:16
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist