Skip to content

Instantly share code, notes, and snippets.

View kaysiz's full-sized avatar
🏠
Working from home

kudakwashe siziva kaysiz

🏠
Working from home
View GitHub Profile
@kaysiz
kaysiz / .gitlab-ci.yml
Created October 29, 2019 13:36 — forked from superjose/.gitlab-ci.yml
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@kaysiz
kaysiz / gist:7ae77a2b53ca26815eded078d3f25089
Created August 23, 2020 12:21 — forked from arjunvenkat/gist:1115bc41bf395a162084
Seeding a Rails database with a CSV file

How to seed a Rails database with a CSV file

1. Setup

First, Create a folder inside of lib called seeds

Put your CSV file example.csv into the lib/seeds folder. In the example below, the file is called real_estate_transactions.csv

Make sure you've created a resource with the appropriate columns to match your seed data. The names don't have to match up.

@kaysiz
kaysiz / Dockerfile
Created April 12, 2021 07:39 — forked from DoZator/Dockerfile
Run old Rails 3.2 (Ruby 1.9.3) app for Development with Docker
FROM ruby:1.9.3
MAINTAINER DoZator <oabogatenko@gmail.com>
# Create app directory
RUN mkdir -p /app
WORKDIR /app
COPY Gemfile /app/