Skip to content

Instantly share code, notes, and snippets.

View liladas's full-sized avatar
💭
falalalala

Adam Buga liladas

💭
falalalala
  • Lilrobo, Karaokio
  • Solana Beach, CA
View GitHub Profile
@liladas
liladas / 148-dapr.sh
Created November 30, 2022 17:47 — forked from vfarcic/148-dapr.sh
# Source: https://gist.github.com/8d941690a087b0de0e2731a52cfb1f51
###############################################################
# Building Event-Driven Microservices In Kubernetes With Dapr #
# https://youtu.be/-4sHUvfk2Eg #
###############################################################
# Additional Info:
# - https://dapr.io
# - What is microservices architecture?: https://youtu.be/F-37_gV2tMs
@liladas
liladas / index.html
Created November 29, 2021 23:45
SVG animation with sliders
<main>
<small style="position: absolute; padding: .5rem;">For better experience please use Chrome</small>
<section id="artboard">
<svg class="figure" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg">
<g class="figure-container">
<g class="figure-landscape"><!-- Background landscape -->
<g class="ground">
<path class="ground__shadow" shadow="1" d="M240 140 l-4000 0 l0 350 Z" />
</g>
<g class="tree" tree="1">
@liladas
liladas / index.haml
Created June 1, 2020 00:51
LILROBO - Solar System landing page (Pure CSS)
.left-column
%h1
.title
%a LILROBO🤖
%I RESEARCH & DEVELOPMENT
%hr/
%p
At
%B Lilrobo
, we're looking
@liladas
liladas / purchase_order.py
Last active March 21, 2020 04:26
Python Property Verbose
class PurchaseOrder():
""" PurchaseOrder - Models a Purchase made from market """
def __init__(self, order_id: string):
super().__init__()
self._order_id = order_id
# defining a property
def order_id():
@liladas
liladas / albums.md
Last active December 12, 2019 05:49
Core Albums
@liladas
liladas / install_sam_python3.7.sh
Created November 18, 2019 16:04
Installing SAM w/ Python 3.7
# there is some trickyness installing AWS SAM CLI on Ubuntu 16.04
# Official documentation recommends using Linux Homebrew... uhm nope.
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-linux.html
# SAM needs Python3.6+ and a blanket install sort fucks up the system and other apps.
# Install requirements
sudo apt-get install -y build-essential \
checkinstall \
libreadline-gplv2-dev \
libncursesw5-dev \
@liladas
liladas / keybase.md
Created September 16, 2019 02:32
Keybase Verification

Keybase proof

I hereby claim:

  • I am liladas on github.
  • I am liladas (https://keybase.io/liladas) on keybase.
  • I have a public key ASDUZ2aVUlDMMYjsCHwQYZ4OeoFCIYFu0sDZCUL1BmUQgAo

To claim this, I am signing this object:

@liladas
liladas / swagger-yaml-to-html.py
Created June 27, 2019 22:07 — forked from oseiskar/swagger-yaml-to-html.py
Converts Swagger YAML to a static HTML document (needs: pip install PyYAML)
#!/usr/bin/python
#
# Copyright 2017 Otto Seiskari
# Licensed under the Apache License, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for the full text.
#
# This file is based on
# https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html
# (Copyright 2017 SmartBear Software, Licensed under Apache 2.0)
#
@liladas
liladas / dst.sh
Created March 27, 2019 03:47
Check Daylight Savings
#!/bin/bash
PST_TIME=$(env TZ=America/Los_Angeles date +"%-H")
UTC_TIME=$(env TZ=UTC date +"%-H")
DST_CHECK=$(($PST_TIME + 8 - $UTC_TIME))
echo "PST Hour:" $PST_TIME
echo "UTC Hour:" $UTC_TIME
@liladas
liladas / gource.sh
Created June 8, 2018 05:21 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install