Skip to content

Instantly share code, notes, and snippets.

View thenets's full-sized avatar
🍫
Nothing is true; Everything is permitted

Luiz Felipe F M Costa thenets

🍫
Nothing is true; Everything is permitted
View GitHub Profile
@amercader
amercader / ckanext-example_ckanext_example_templates_package_snippets_resource_form.html
Last active May 11, 2017 16:06
Example of how to add a custom preview on CKAN 2.2 that embeds a URL based on a resource field
<form id="resource-edit" class="dataset-form dataset-resource-form form-horizontal" method="post" action="{{ action }}" data-module="basic-form resource-form" enctype="multipart/form-data">
...
{{ form.input('url_viz', id='field-url_viz', label=_('URL Viz'), value=data.url_viz, error=errors.url_viz, classes=[]) }}
...
@DavideMontersino
DavideMontersino / private-fork.md
Last active February 27, 2024 12:56
How to fork to a private gitlab instance

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab

@npearce
npearce / install-docker.md
Last active November 11, 2024 13:09
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start