Skip to content

Instantly share code, notes, and snippets.

View kuya-joe's full-sized avatar

Joe kuya-joe

View GitHub Profile
details, summary {display: block;}
details:not([open]) > :not(summary) {display: none;}
@xameeramir
xameeramir / default nginx configuration file
Last active July 12, 2024 07:24
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@VesperDev
VesperDev / RouterApp.js
Last active July 14, 2024 11:50
Sider menu + ant-design + react-router-dom
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from "react-router-dom";
import { Layout, Menu, Icon } from 'antd';
import Dashboard from './containers/Dashboard/Dashboard';
import Meseros from './containers/Meseros/Meseros';
const { Header, Content, Footer, Sider } = Layout;
const SubMenu = Menu.SubMenu;
@cloudmustafa
cloudmustafa / gist:f6b07d4cc926424439da4784d397f519
Created May 2, 2020 20:15
Macbook aliases for Docker, Github, and Kubernetes
#Docker aliases
alias di='docker images'
alias dcu='docker-compose up -d'
alias dcd='docker-compose down'
alias dcb='docker-compose build'
alias dps='docker ps'
alias db='docker build -t'
alias dr='docker run -p '
alias de='docker exec -it '
import React, { useState } from "react";
import {
format,
startOfWeek,
addDays,
startOfMonth,
endOfMonth,
endOfWeek,
isSameMonth,
isSameDay,