Skip to content

Instantly share code, notes, and snippets.

View lokcito's full-sized avatar

ray lokcito

View GitHub Profile
@lokcito
lokcito / bootstrap.sh
Last active July 30, 2021 04:08
Vagrant Setup for RoR
#!/usr/bin/env bash
# actualizar el sistema completamente
echo mejorar y actualizar el sistema
sudo apt-get update
sudo apt-get -y upgrade
# instalar node.js para ejecutar comandos js al utilizar Rails
echo instalando node.js para ejecutar JS y Git
sudo apt-get install -y nodejs
sudo apt-get install -y git
@lokcito
lokcito / class.cs
Created September 15, 2021 20:00
C# Upload imagen FromForm , Multipart
public class FIleUploadAPI
{
public IFormFile oneimage { get; set; }
public String cellNumber { get; set; }
public String otroCampo { get; set; }
public String otroCampo2 { get; set; }
}
[Route("/api/v1/student/CAU/Ticket/new")]
[HttpPost]
@lokcito
lokcito / Gemfile-heroku
Last active October 2, 2021 16:49
Gemfile + Gemfile.lock for replit deploy on Heroku, Ruby 2.5.8. Do you want deploy Rails from replit to Heroku? , you should replace the Gemfile just for deploy and restore if you want continue working with Replit
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '2.5.8'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.4', '>= 6.1.4.1'
# Use sqlite3 as the database for Active Record
# gem 'sqlite3', '~> 1.4'
# Use Puma as the app server