Skip to content

Instantly share code, notes, and snippets.

View DocX's full-sized avatar
⏲️
Zendesk

Lukáš Doležal DocX

⏲️
Zendesk
View GitHub Profile
@DocX
DocX / README.md
Last active September 5, 2023 12:58
Connect to bash inside running ECS container by cluster and service name
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DocX
DocX / area.json
Last active November 13, 2015 16:06
goejson
{
"type": "Polygon",
"coordinates": [
[
[
-0.033860206604003906,
51.521107651627744
],
[
-0.0328516960144043,
@DocX
DocX / order_by_params_helper.rb
Last active August 29, 2015 14:11
Rails powered API - resources ordering by URL params (ie /resources?order=created_at.desc)
# (c) 2014 Lukas Dolezal ([email protected])
# MIT licence
# include in your base controller (ApplicationController):
# include OrderByParamsHelper
module OrderByParamsHelper
# use in controller:
# @resources = order_by_params(@resources, params[:order], :created_at)
#
@DocX
DocX / filter_by_params_helper.rb
Created December 14, 2014 16:43
Rails powered API - resource filters by URL params (ie /resources?user_id=12&state=active,finished)
# (c) 2014 Lukas Dolezal ([email protected])
# MIT licence
# include in your base controller (ApplicationController)
# include FilterByParamsHelper
module FilterByParamsHelper
# use in controller:
# @resources = filter_by_params(@resources, params.slice(:user_id, :state))
#

Keybase proof

I hereby claim:

  • I am docx on github.
  • I am lud (https://keybase.io/lud) on keybase.
  • I have a public key whose fingerprint is 15F8 2BCE 8E84 97D8 7091 4D89 CE01 8A55 8ADA 4D8C

To claim this, I am signing this object: