A quick shell script function to create a directory following react-style-guide
# React component
rc () {
mkdir $1;
touch "$1/index.js";
echo "import React, { Component } from 'react';
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
A quick shell script function to create a directory following react-style-guide
# React component
rc () {
mkdir $1;
touch "$1/index.js";
echo "import React, { Component } from 'react';
Generate a script to delete all images using the following. Copy paste into chrome console on the registry page of a project.
NOTE you must update the textToSave template string before running.
// Options(fill these out with your info)
// GITLAB_INSTANCE is the url to your custom instance or `gitlab.com`
const GITLAB_INSTANCE = 'gitlab.yourwebsite.com'
const GROUP = 'yourGroup'