Skip to content

Instantly share code, notes, and snippets.

View miguelangelramirez's full-sized avatar

Miguel Ramirez miguelangelramirez

  • Adobe/Magento
  • Los Ageles,CA
View GitHub Profile
@miguelangelramirez
miguelangelramirez / collecting metadata with python.md
Created January 13, 2022 17:41
Collecting file metadata with python

‎‎​

@miguelangelramirez
miguelangelramirez / gist:55be9ae007a0273db9e6e6f50621c0b3
Last active January 6, 2022 23:24
Remove line with particual expression regex.md
We couldn’t find that file to show.
@miguelangelramirez
miguelangelramirez / Dockerfile
Created August 4, 2021 01:28 — forked from AntonFriberg/Dockerfile
Simple docker cron sidecar container based on alpine image
FROM alpine:3.8
# Alpine comes with built in cron schedules
# min hour day month weekday command
# */15 * * * * run-parts /etc/periodic/15min
# 0 * * * * run-parts /etc/periodic/hourly
# 0 2 * * * run-parts /etc/periodic/daily
# 0 3 * * 6 run-parts /etc/periodic/weekly
# 0 5 1 * * run-parts /etc/periodic/monthly
@miguelangelramirez
miguelangelramirez / amazon linux lamp requirements.md
Last active April 22, 2021 22:27
[amazon linux lamp requirements]amazon linux lamp requirements, #amazonlinux #linux #lamp #php

amazon linux install php

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@miguelangelramirez
miguelangelramirez / Fetch.md
Last active January 28, 2021 19:28
[Fetch] Fetch, #fetch #es6 #javascript
	fetch('api/Sessions', {
        method: 'POST',
        headers: {
            'X-API-KEY': 'apikey',
            'Accept': 'application/json',
            'Content-Type': 'application/json'
        },
        body: JSON.stringify(callData)
 })
@miguelangelramirez
miguelangelramirez / ReactJS fetching data from API.md
Created January 20, 2021 04:38
[ReactJS fetching data from API], ReactJS fetching data from API, #reactjs #fetch #async #API
@miguelangelramirez
miguelangelramirez / React App with ExpressJS and Concurrently.md
Last active January 20, 2021 04:37
[React App with ExpressJS and Concurrently]React App with ExpressJS and Concurrently, #reactjs #expressjs #cocurrently #api

Integrating a ReactJS application with a ExpressJS backend

Technologies user

  1. Create your project folder from terminal mkdir react-express-app, then go inside cd react-express-app
  2. Open the directory on VS Code, from the integrated terminal initiate your package.json file running npm init and follow the prompts, define the entry point as server.js
  3. Install ExpressJS and Concurrently from the terminal using npm i express concurrently
@miguelangelramirez
miguelangelramirez / Mac OSX installing MongoDB.md
Last active January 13, 2021 03:30
[Mac OSX installing MongoDB]Mac OSX installing MongoDB.md, #mongodb #installation, #alias
1. brew update
2. brew tap mongodb/brew
3. brew install [email protected]
4. community edition brew install [email protected]

To access MongoDb you will need to run it as a service

To run MongoDB (i.e. the mongod process) as a macOS service, issue the following:
@miguelangelramirez
miguelangelramirez / CSS transitions.md
Last active December 24, 2020 03:00
[css transitions] css transitions, #CSS #transitions
.class { 
    -moz-transition: all .2s ease-in;
    -o-transition: all .2s ease-in;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
    background: #f5f5f5; 
    padding: 20px;
}