Skip to content

Instantly share code, notes, and snippets.

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

Andrii Soldatenko andriisoldatenko

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

{
"kind": "youtube#videoListResponse",
"etag": "\"8jEFfXBrqiSrcF6Ee7MQuz8XuAM/CCMKJ4Yog67Jfq11ExS2XxNDDQ0\"",
"pageInfo": {
"totalResults": 28,
"resultsPerPage": 28
},
"items": [
{
"kind": "youtube#video",
FROM golang AS builder
WORKDIR /src
RUN go get -u github.com/go-delve/delve/cmd/dlv
ADD . /src
RUN cd /src && go build -o goapp
FROM alpine
WORKDIR /app
COPY --from=builder /src/goapp /app/
ENTRYPOINT ./goapp
@andriisoldatenko
andriisoldatenko / windows.md
Last active April 17, 2019 14:51
Run Astronomer CLI on Windows

Run Astronomer CLI on Windows

Make sure you have Windows 10 and Docker installed

  1. Download latest release of astro-cli using this link
  2. Extract astro_0.8.2_windows_386.zip and move astro.exe somewhere in your %PATH%
  3. Open cmd or PowerShell console and run:
C:\Windows\system32>astro version
Astro CLI Version: 0.8.2
Git Commit: f5cdab8f832da3c6184a7ac167b491e3bac3c022
@andriisoldatenko
andriisoldatenko / interesting_twitter_golang.md
Last active September 24, 2023 20:24
Interesting twitter accounts to follow about go (goalng)

Interesting twitter accounts to follow about Go programming language

Made with ❤️and golang tools 🛠 by @a_soldatenko

People

Interesting bloggers in twitter

  • @rob_pike - Rob Pike author of Go programming language.
  • @francesc - Francesc Campoy is Gopher, Developer Advocate, Good Guy.
@andriisoldatenko
andriisoldatenko / fopen.py
Last active November 20, 2018 05:42
This function helps you do not see errors during upload solutions, because you forget to switch back to sys.stdin and also you can easily debug your code with ipdb or another python debuggers
def fopen(filename, default=sys.stdin):
"""
This function helps you do not see errors during upload solutions
because you forget to switch back to sys.stdin and also you can easily
debug your code with ipdb or another python debuggers
"""
try:
f = open(filename)
except FileNotFoundError:
f = default
@andriisoldatenko
andriisoldatenko / commit-msg
Created June 27, 2018 08:04
Pre commit hook to check git branch prefix to include Jira ticket
#!/usr/bin/env ruby
# consumeraffairs/.git/hooks/commit-msg
# Finds the story number from the branch name and injects it
# into the commit message. For instance, if we're on branch
#
# BRAND-1234-Some-Feature
#
# And we had committed with
#
# git commit -m "I did some feature"
import importlib
import sys
# Import your lambda python module
mod = importlib.import_module(sys.argv[1])
function_handler = sys.argv[2]
lambda_function = getattr(mod, function_handler )
event = {'name': 'Andrii'}

Keybase proof

I hereby claim:

  • I am andriisoldatenko on github.
  • I am andriisoldatenko (https://keybase.io/andriisoldatenko) on keybase.
  • I have a public key whose fingerprint is A0D6 256A D866 BB57 9B69 FCAD 1B11 C0C2 8C75 CD5A

To claim this, I am signing this object:

from django.core.files.storage import get_storage_class
from storages.backends.s3boto3 import S3Boto3Storage
class StaticS3Boto3Storage(S3Boto3Storage):
file_overwrite = True
class CachedS3BotoStorage(S3Boto3Storage):
"""