Skip to content

Instantly share code, notes, and snippets.

View lmmendes's full-sized avatar
🏠

Luís Mendes lmmendes

🏠
View GitHub Profile
@sadiesaurus
sadiesaurus / related-products.liquid
Created August 2, 2017 00:27
related products for Jumpstart with lazyload
@sadiesaurus
sadiesaurus / related-products.liquid
Created May 9, 2017 12:39
related-products.liquid for Debut
@RoyalIcing
RoyalIcing / Dockerfile
Last active April 2, 2020 17:06
Rails 5.1 Dockerfile
FROM ruby:2.4-alpine
ENV PATH /root/.yarn/bin:$PATH
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh build-base nodejs tzdata
RUN apk update \
&& apk add curl bash binutils tar gnupg \
&& rm -rf /var/cache/apk/* \
@MarkMurphy
MarkMurphy / README.md
Last active February 5, 2024 19:59
Cursor based pagination for Rails models.

Example Usage

Users

id name
1 Jane
2 Max
3 John
4 Scott
@leonardofed
leonardofed / README.md
Last active June 17, 2024 14:54
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.


@adieu
adieu / 1-etcd.sh
Last active January 13, 2017 15:06
Install Kubernetes
wget https://github.com/coreos/etcd/releases/download/v2.3.7/etcd-v2.3.7-linux-amd64.tar.gz
tar zxf etcd-v2.3.7-linux-amd64.tar.gz
mv etcd-v2.3.7-linux-amd64/* /usr/local/bin/
sudo sh -c 'echo "[Unit]
Description=etcd
Documentation=https://github.com/coreos
[Service]
ExecStart=/usr/local/bin/etcd \
--data-dir=/var/lib/etcd \
@thomasdarimont
thomasdarimont / readme.MD
Last active February 5, 2024 02:05
Example for using jemalloc to analyze memory allocation profile of a Java Application

Install Graphviz

sudo apt-get install graphviz

#Clone jemalloc git clone https://github.com/jemalloc/jemalloc

Configurie jemalloc with profiling enabled

./configure --enable-prof --enable-stats --enable-debug --enable-fill make make install

var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')

ECMAScript6th Quiz

Q.1

let func = function() {};
func.name
  1. ""
  2. "func"
@include
include / plbk_vault.yml
Created October 27, 2014 09:36
Ansible Vault
---
# file: playbooks/plbk_test_vault.yml
- hosts: localhost
user: include
vars_files:
- ../files/vault/ec2/prd/svc_master_key.yml
tasks: