Skip to content

Instantly share code, notes, and snippets.

View bogdanstoica35's full-sized avatar

Bogdan Stoica bogdanstoica35

View GitHub Profile
@bogdanstoica35
bogdanstoica35 / wordpress.vcl
Created December 19, 2018 12:49 — forked from matthewjackowski/wordpress.vcl
Varnish 4 VCL configuration for WordPress. Also allows purging
# A heavily customized VCL to support WordPress
# Some items of note:
# Supports https
# Supports admin cookies for wp-admin
# Caches everything
# Support for custom error html page
vcl 4.0;
import directors;
import std;
@bogdanstoica35
bogdanstoica35 / wordpress.vcl
Created December 19, 2018 12:49 — forked from Greg-Boggs/wordpress.vcl
Varnish 4 VCL configuration for WordPress. Also allows purging
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
@bogdanstoica35
bogdanstoica35 / my.cnf
Created November 22, 2018 10:51 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on cPanel/WHM servers)
# Optimized my.cnf configuration for MySQL/MariaSQL on cPanel/WHM servers
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# === Updated July 2018 ===
#
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores.
# If you have less or more resources available you should adjust accordingly to save CPU,
# RAM and disk I/O usage.
# The settings marked with a specific comment or the word "UPD" after the value
{
"coin": "Sumokoin",
"symbol": "SUMO",
"coinUnits": 1000000000,
"coinDifficultyTarget": 240,
"logging": {
"files": {
"level": "info",
"directory": "logs",
@bogdanstoica35
bogdanstoica35 / cf-ddns.sh
Created October 18, 2017 07:34 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Automatically update your CloudFlare DNS record to the IP, Dynamic DNS
# Can retrieve cloudflare Domain id and list zone's, because, lazy
# Place at:
# /usr/local/bin/cf-ddns.sh
@bogdanstoica35
bogdanstoica35 / 0_reuse_code.js
Created July 7, 2017 08:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console