Skip to content

Instantly share code, notes, and snippets.

View MaximeMichaud's full-sized avatar
🏠
Working from home

Maxime Michaud MaximeMichaud

🏠
Working from home
  • Québec, Canada
  • 22:04 (UTC -04:00)
View GitHub Profile
@mocanuga
mocanuga / optimize_dir
Last active August 26, 2020 04:53
Simple bash script to optimize images with guetzli
#!/bin/bash
################################################
# #
# Don't forget to make this file executable #
# (chmod +x optimize_dir) #
# #
# Improvements are always welcomed and #
# encouraged #
# Added a "sizes" parameter to only get image #
@fevangelou
fevangelou / my.cnf
Last active May 23, 2024 15:15
Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated December 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>