Skip to content

Instantly share code, notes, and snippets.

@lazabogdan
lazabogdan / private_fork.md
Created December 4, 2023 07:06 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@lazabogdan
lazabogdan / rails_deployment.md
Created September 6, 2023 05:30 — forked from jamessom/rails_deployment.md
Rails deployment to AWS EC2

Rails Deployment to AWS EC2

Stack : (Nginx + Phusion Passenger + Postgresql)

  • Step -1

    To Launch an EC2 instance from aws console with all the credentials and configurations hooked.

  • Step-2

#!/bin/sh
remove_dangling_images() {
echo "Removing dangling images ..."
docker rmi $(docker images -f dangling=true -q)
}
remove_unused_images() {
echo "Removing unused images ..."
docker images -aq | xargs -l10 docker rmi
@lazabogdan
lazabogdan / boot2docker-nfs.rb
Last active August 29, 2015 14:19 — forked from mattes/boot2docker-nfs.rb
docker-machine / boot2docker with NFS instead of vboxsf; it shares /Users and the current directory to /apps/$current_directory_basename
#!/usr/bin/env ruby
# Usage
# $ docker-machine create my-machine123 -d virtualbox
# $ ruby <(curl -L http://git.io/vvFRw) my-machine123
# https://gist.github.com/lazabogdan/fa769cb5f80085a2b78f
require 'erb'
app_path = Dir.getwd