Skip to content

Instantly share code, notes, and snippets.

View imxmacoyx's full-sized avatar
🎯
Angular

Marco Valle imxmacoyx

🎯
Angular
  • Monterrey, México
  • 06:28 (UTC -06:00)
View GitHub Profile
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
static_files: dist/[project-name]/index.html
upload: dist/[project-name]/index.html
- url: /
static_dir: dist/[project-name]
skip_files:
@imxmacoyx
imxmacoyx / Star xampp | Comandos Xampp
Created April 26, 2021 18:41
Comandos Linux para Xampp
XAMPP debió haberse instalado por defecto en la ruta: /opt/lampp/
sudo /opt/lampp/lampp start //para iniciar el servicio
sudo /opt/lampp/lampp stop //para detenerlo
sudo /opt/lampp/lampp restart //para reiniciar
sudo /opt/lampp/manager-linux-x64.run //para acceder al panel de control
@imxmacoyx
imxmacoyx / mysql-docker.sh
Created April 14, 2021 15:44 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@imxmacoyx
imxmacoyx / .txt
Created August 22, 2020 19:09
Install Ruby and Rails
Ruby 2.5.3
Rails 5.2.4
$ brew reinstall libyaml
$ rvm use 2.5.3
$ vm install 2.5.3 --with-openssl-dir=$HOME/.rvm/opt/openssl
$ rvm reinstall 2.5.3
$ rvm use 2.5.3@railstutorial_4_0 --create --default
$ gem update
$ vim ~/.gemrc
@imxmacoyx
imxmacoyx / .rb
Created August 18, 2020 19:52
Routes
Rails.application.routes.draw do
root 'static_pages#home'
get 'ayuda', to: 'static_pages#help', as: "help"
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
@imxmacoyx
imxmacoyx / .html.erb
Created August 18, 2020 19:23
Example provide Ruby on Rails
<% provide(:title, "Help") %>
<!DOCTYPE html>
<html>
<head>
<title><%= yield(:title) %> | Ruby on Rails Tutorial Sample App</title>
</head>
<body>
<h1>Help</h1>
<p>
Get help on the Ruby on Rails Tutorial at the
@imxmacoyx
imxmacoyx / .txt
Created August 18, 2020 19:13
StaticPage RubyOnRails
$rails generate controller StaticPages home help
##### Shortcuts #####
$ rails server -> $ rails s
$ rails console -> $ rails c
$ rails generate -> $ rails g
$ bundle install -> $ bundle
$ rake test -> $ rake
###################
@imxmacoyx
imxmacoyx / .txt
Created August 18, 2020 16:21
Ruby On Rails
$ cd ~/folder_projects
$ rails new name_project #create project On Rails
$ cd name_project
$ vim Gemfile #view conf
$ bundle install #Install requeriments
# Modeling demo microposts
# example
@imxmacoyx
imxmacoyx / Modal.html
Created March 27, 2020 21:20
Bootstrap: Modal
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estructura básica</title>
<!--CND de CSS-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
@imxmacoyx
imxmacoyx / Bootstrap.html
Created March 27, 2020 21:03
Bootstrap: Estructura básica
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Estructura básica</title>
<!--CND de CSS-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>