Skip to content

Instantly share code, notes, and snippets.

View include's full-sized avatar
👽
Free Jaffa

Francisco Cabrita include

👽
Free Jaffa
View GitHub Profile
@taylorwood
taylorwood / README.md
Last active May 6, 2020 00:19
clj.native-image CLI JSON-to-EDN example

GraalVM native image + deps.edn example

A CLI tool that reads JSON from stdin then writes it to stdout in EDN format.

Build

➜ clojure -A:native-image
@endofcake
endofcake / get_image_tags.py
Created May 22, 2018 21:22
An external data source for Terraform that returns the versions of all images in an ECS task definition
''' Return image tags specified in ECS task definition '''
import json
import sys
import boto3
ECR_CLIENT = boto3.client('ecr')
ECS_CLIENT = boto3.client('ecs')
def main(cluster_name, service_name):
@vascoferreira25
vascoferreira25 / clojure-portuguese-nif-validator
Created April 7, 2018 03:51
Portuguese NIF Validator made with Clojure
(defn in?
"Evaluate true if collection contains element."
[coll elem]
(some #(= elem %) coll))
(defn str->int
"Transform string with number into vector of ints."
[nif-vector]
(mapv #(Integer/parseInt %) (map str nif-vector)))
@pjcdawkins
pjcdawkins / .gitlab-ci.yml
Last active June 12, 2020 15:45
GitLab - Platform.sh CI scripts
stages:
- review
- cleanup
variables:
# The Platform.sh project ID.
PF_PROJECT_ID: abcdefg123456
push-platformsh:
# This Docker image installs the Platform.sh CLI (and PHP, Git and SSH).

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@leonardofed
leonardofed / 0-README.md
Created September 7, 2016 16:52 — forked from alexcasalboni/0-README.md
AWS Lambda: Advanced Coding Session - clda.co/aws-lambda-webinar

AWS Lambda: Advanced Coding Session (slides)

Live demos:

  1. Amazon API Gateway Access Control
  2. Amazon Kinesis Streams processing
  3. Amazon Cognito Sync trigger
  4. AWS CloudFormation Custom Resources
@leonardofed
leonardofed / README.md
Last active May 3, 2024 01:24
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


(use 'prc)
;;; ----- Bar chart -----
(defn roll-die [num-sides]
(inc (rand-int num-sides)))
(defn roll-dice [num-sides num-dice]
(->> (repeatedly num-dice #(roll-die num-sides))
(reduce +)))
@yefim
yefim / Dockerrun.aws.json
Last active April 7, 2023 16:11
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
{
"AWSEBDockerrunVersion": "1",
"Image": {
"Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>",
"Update": "true"
},
"Ports": [
{
"ContainerPort": "443"
}
@jasongilman
jasongilman / atom_clojure_setup.md
Last active January 11, 2024 09:13
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.