Skip to content

Instantly share code, notes, and snippets.

View xrimpy's full-sized avatar

Manmeet xrimpy

  • Saeloun
  • Delhi, India
View GitHub Profile
@TheDruidsKeeper
TheDruidsKeeper / azure-pipelines-build-docker-with-cache.yml
Last active June 18, 2024 02:27
Azure DevOps pipeline with multi-stage docker image layer caching support
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
imageRepository: 'multi-stage-build-caching'
containerRegistry: 'ACR-Service-Connection-Name'
registryName: '[redacted].azurecr.io'
@pietromoro
pietromoro / sluggable.rb
Last active May 10, 2023 10:05
Sluggable rails concern: use slugs instead of ids in the url!
module Sluggable
extend ActiveSupport::Concern
cattr_reader :slugging
included do
before_save :generate_slug
def self.sluggable
all.extending(Sluggable::Finder)
end
@ssaunier
ssaunier / cache.yml
Last active December 14, 2020 05:23
Speed up the AWS Elastic Beanstalk of your Rails deployment with bundle/assets caching
# .ebextensions/cache.config
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/02a_set_cache.sh":
mode: "000755"
owner: root
group: root
content: |
#!/bin/bash
set -xe
@Integralist
Integralist / Install Redis CLI on AWS Instance.md
Last active May 30, 2023 02:58
Install Redis CLI on AWS Instance
  • ssh 10.6.11.62,eu-west-1
  • sudo yum install gcc
  • sudo yum install wget
  • wget http://download.redis.io/redis-stable.tar.gz
  • tar xvzf redis-stable.tar.gz
  • cd redis-stable
  • make
  • src/redis-cli -h mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com -p 6379

Now run redis commands:

@gcarrion-gfrmedia
gcarrion-gfrmedia / 0000_packages.config
Created April 29, 2014 10:49
AWS Elastic Beanstalk Ruby 2.0/Puma Environment - .ebextensions tweaks and Sidekiq configuration. This is known to work fine with AWS Elastic Beanstalk 's 64bit Amazon Linux 2014.03 v1.0.1 running Ruby 2.0 (Puma) stack. Later stack versions might not work, but for that specific version works fine.
# Install Git needed for Git based gems
packages:
yum:
git: []