Skip to content

Instantly share code, notes, and snippets.

View rflaperuta's full-sized avatar

Rodrigo Falcetta Laperuta rflaperuta

View GitHub Profile
@rflaperuta
rflaperuta / twittermute.txt
Created January 24, 2020 22:41 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@rflaperuta
rflaperuta / deriv_parse.rs
Created February 2, 2019 22:02
deriv_parse
use deriv_parse::*;
#[derive(DeriveParse)]
struct Record {
name: String
}
struct Data {
name: String
}
@rflaperuta
rflaperuta / Dockerfile
Last active January 31, 2019 01:16
Elixir/Phoenix Dockerfile Alpine Multi-stage (w/ distillery)
FROM elixir:1.7.4-alpine AS builder
ARG MIX_ENV=prod
ENV MIX_ENV=${BUILD_ENV:-prod}
WORKDIR /opt/app
RUN apk add --update --upgrade --no-cache nodejs npm yarn git build-base \
&& mix local.hex --force && mix local.rebar --force
@rflaperuta
rflaperuta / Dockerfile
Created May 2, 2018 23:16 — forked from renzok/Dockerfile
docker: mapping host uid and gid to user inisde container
FROM debian:jessie
ENV USER=boatswain USER_ID=1000 USER_GID=1000
# now creating user
RUN groupadd --gid "${USER_GID}" "${USER}" && \
useradd \
--uid ${USER_ID} \
--gid ${USER_GID} \
--create-home \

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link below in the summary jumps at the answer on this page.
  • The link on the question itself points back at the original post.

Summary

@rflaperuta
rflaperuta / asm.s
Created January 4, 2018 02:07 — forked from dougallj/asm.s
x86-64 Speculative Execution Harness
global _time_load
global _cache_flush
global _run_attempt
extern _bools
extern _values
extern _pointers
section .text
@rflaperuta
rflaperuta / password.ovr
Created May 15, 2017 21:30
Centrify Shell Override
# EDIT /etc/centrifydc/password.ovr
# ADD TO THE END
+<username>:::::::/usr/bin/zsh
+:::::::
@rflaperuta
rflaperuta / Dockerfile
Created May 5, 2017 11:34 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@rflaperuta
rflaperuta / better-nodejs-require-paths.md
Created March 22, 2017 13:58 — forked from branneman/better-nodejs-require-paths.md
Better local require() paths for Node.js

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

var Article = require('../../../models/article');

Those suck for maintenance and they're ugly.

Possible solutions

@rflaperuta
rflaperuta / 01_setupssh.config
Created February 22, 2017 17:37 — forked from rohang07/01_setupssh.config
eb extension for pulling ssh config from s3
---
Resources:
AWSEBAutoScalingGroup:
Metadata:
? "AWS::CloudFormation::Authentication"
:
S3Auth:
buckets:
- bucket-name
roleName: