Skip to content

Instantly share code, notes, and snippets.

View Ileriayo's full-sized avatar
🥑
Solving developer problems so that they can solve more problems

Ileriayo Adebiyi Ileriayo

🥑
Solving developer problems so that they can solve more problems
View GitHub Profile
@Ileriayo
Ileriayo / web-servers.md
Created November 10, 2021 10:09 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Ileriayo
Ileriayo / postgres-brew.md
Created July 19, 2021 20:22 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
docker rm -f $(docker ps -qa)
docker rmi -f $(docker images -q)
docker volume rm $(docker volume ls -q)
for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done
rm -rf /etc/ceph \
/etc/cni \
/etc/kubernetes \
@Ileriayo
Ileriayo / App.js
Created November 5, 2019 12:56
App.js using classfull, stateful, container components - Original file: https://github.com/victor-nach/react-record-management/blob/fetch-add-new-record-%237/src/App.js
import React, { Component } from 'react';
import axios from 'axios';
import Table from './components/tables';
import AddForm from './components/addForm';
import EditForm from './components/editForm';
import './App.css';
class App extends Component {
constructor(props){
super(props);