Skip to content

Instantly share code, notes, and snippets.

View zutigrm's full-sized avatar

Aleksej Vukomanovic zutigrm

View GitHub Profile
@zutigrm
zutigrm / nextcloud-deployment.yaml
Created April 20, 2021 21:39
Nextcloud service and deployment yaml file
apiVersion: v1
kind: Service
metadata:
name: nextcloud
spec:
ports:
- port: 80
targetPort: 80
selector:
@zutigrm
zutigrm / nextcloud-pv.yaml
Created April 20, 2021 21:30
Nextcloud pv and pvc declaration
apiVersion: v1
kind: PersistentVolume
metadata:
name: nextcloud-shared-storage
labels:
type: local
spec:
storageClassName: ncloud
capacity:
storage: 5Gi
@zutigrm
zutigrm / mysql-secret.yaml
Created April 11, 2021 18:40
Mysql server secret used in deployment
apiVersion: v1
kind: Secret
metadata:
name: mysql-pass
type: Opaque
data:
password: [your-strong-password]
@zutigrm
zutigrm / mysql-deployment.yaml
Created April 11, 2021 15:25
Mysql deployment yaml
apiVersion: v1
kind: Service
metadata:
name: mysql
spec:
ports:
- port: 80
targetPort: 3306
selector:
app: mysql
@zutigrm
zutigrm / mysql-volume.yaml
Created April 11, 2021 14:55
Mysql persistent volume and volume claim
apiVersion: v1
kind: PersistentVolume
metadata:
name: mysql-pv-volume
labels:
type: local
spec:
storageClassName: manual
capacity:
storage: 5Gi
<?php
/*
Plugin Name: User Info Box
Plugin URI: https://messyarray.com
Description: Very cool plugin for displaying user information using Gutemberg block.
Version: 1.0.0
Author: Aleksej Vukomanovic
Author URI: https://messyarray.com
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@zutigrm
zutigrm / cra-sitemap1.js
Last active April 16, 2023 02:00
Sitemap With Create React App
import { sitemapBuilder as buildSitemap } from 'react-router-sitemap';
import routes from '../routes';
import path from 'path'; // add path which will be needed for file write
import fs from 'fs'; // import file system object
// use your website root address here. Optimally you can
// include dev and production enviorenments with variable
const hostname = 'http://localhost:3000';
// define our destination folder and sitemap file name
<?php
/*=========================================
Custom Submit Box
==========================================*/
/**
* Loop throught custom post types and
* replace default submit box
*
* @since 1.0
*
@zutigrm
zutigrm / font-awesome-array.js
Created July 25, 2015 21:17
javascript array of font awesome icons, holding the classes and unicode values
<script type="text/javascript">
var fontAwesome = {};
fontAwesome["fa-adjust"] = ["f042"];
fontAwesome["fa-adn"] = ["f170"];
fontAwesome["fa-align-center"] = ["f037"];
fontAwesome["fa-align-justify"] = ["f039"];
fontAwesome["fa-align-left"] = ["f036"];
fontAwesome["fa-align-right"] = ["f038"];
fontAwesome["fa-ambulance"] = ["f0f9"];
fontAwesome["fa-anchor"] = ["f13d"];