Skip to content

Instantly share code, notes, and snippets.

Avatar

Bogdan Stoica bogdanstoica35

View GitHub Profile
@bogdanstoica35
bogdanstoica35 / wordpress.vcl
Created Dec 19, 2018 — forked from matthewjackowski/wordpress.vcl
Varnish 4 VCL configuration for WordPress. Also allows purging
View wordpress.vcl
# 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 Dec 19, 2018 — forked from Greg-Boggs/wordpress.vcl
Varnish 4 VCL configuration for WordPress. Also allows purging
View wordpress.vcl
#
# 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 Nov 22, 2018 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MySQL/MariaSQL (on cPanel/WHM servers)
View my.cnf
# 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
View gist:2056f915d015165b584a05fb2def9b8e
{
"coin": "Sumokoin",
"symbol": "SUMO",
"coinUnits": 1000000000,
"coinDifficultyTarget": 240,
"logging": {
"files": {
"level": "info",
"directory": "logs",
@bogdanstoica35
bogdanstoica35 / cf-ddns.sh
Created Oct 18, 2017 — forked from larrybolt/cf-ddns.sh
Automatically update your CloudFlare DNS record to the IP, Dynamic DNS for Cloudflare
View cf-ddns.sh
#!/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 Jul 7, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.