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
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'}
@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"
@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 / interesting_twitter_golang.md
Last active July 19, 2025 10:43
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 / 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
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
{
"kind": "youtube#videoListResponse",
"etag": "\"8jEFfXBrqiSrcF6Ee7MQuz8XuAM/CCMKJ4Yog67Jfq11ExS2XxNDDQ0\"",
"pageInfo": {
"totalResults": 28,
"resultsPerPage": 28
},
"items": [
{
"kind": "youtube#video",

Keybase proof

I hereby claim:

To claim this, I am signing this object: