Skip to content

Instantly share code, notes, and snippets.

View messutied's full-sized avatar

Eduardo Messuti messutied

View GitHub Profile
messutied /
Last active August 11, 2022 13:12
Statuspal status page email templates

Statuspal Status Page Email Template Customization HTML

Use this HTML files to customize your Statuspal status page email template in order to include a company logo, add your business address or otherwise to modify the looks to suit your branding.

Screenshot 2022-07-19 at 12 37 13

Configure your logo

In order to configure your company logo just replace the image under the .header class.

messutied / share_to_whatsapp.js
Last active February 19, 2022 22:54
Share to whatsapp bookmarklet
// Following this guide:
const YOUR_PHONE='';`${YOUR_PHONE}&text=${encodeURIComponent(location.href)}`);
window.statuspalWidget = {
subdomain: 'meta',
selector: '.sp-status', // Optional
position: 'top', // Optional [top | bottom | left | right] - defaults to top.
// Customise copy below
copy: {
status: {
ok: 'All systems operational 1',
scheduled: 'Ongoing scheduled maintenance',
.metrics .metric .metric--chart-container, .metrics .metric .metric--chart-container svg {
background: transparent !important;
.metrics .metric .metric--chart-container svg .bg {
fill: transparent !important;
svg text {
fill: #9cb3c9 !important;
svg .gridlayer, svg .zerolinelayer {
messutied / statuspal_subscription_modal_mod.js
Last active September 29, 2020 13:12
This JS snipped makes the subscription modal in a Statuspal status page to open with the "Select services" option checked by default.
document.addEventListener("DOMContentLoaded", function() {
var $ = document.querySelector.bind(document);
var subButton = $('.subscribe');
var input = $('[name="subscription[filter]"][value="services"]');
subButton.addEventListener('click', function () {
setTimeout(function () {
input.checked = true;
input.dispatchEvent(new Event('change'));
}, 0);
messutied / en.yaml
Created June 4, 2020 10:49
Statuspal english localization file
subscribe_to_updates_1: Subscribe
subscribe_to_updates_2: to Updates
subscribe_to_updates_confirmation: You have been subscribed!
operational: All Systems Operational
issue_singular: There is an ongoing Incident
issue_plural: There are ongoing Incidents
maintenance_singular: There is an ongoing Maintenance
maintenance_plural: There are ongoing Maintenances
about: This is {{name}}'s status page, here you'll find the current status and incident history of {{name}}
messutied / custom_footer.html
Last active February 13, 2020 12:08
Statuspal Custom Header & Footer Example
"name": "react-hot-loader-test",
"version": "1.0.0",
"scripts": {
"dev:frontend": "webpack-dev-server --hot",
"server": "node server/server.js",
"dev": "concurrently --kill-others \"npm run dev:frontend\" \"npm run server\"",
"dependencies": {
"express": "^4.15.2"
messutied / server.js
Last active April 1, 2017 08:42
react-hot-reloader with custom server proxying to webpack-dev-server
const express = require('express');
const url = require('url');
const path = require('path');
const app = express();
if (process.env.NODE_ENV !== 'production') {
app.use('/assets', require('proxy-middleware')(url.parse('http://localhost:8080/assets')));
} else {
app.use('/assets', express.static(path.resolve(__dirname, '../www/assets')));

Fix problems with pg gem on mac os and the postgres App

The problem

I was getting the following error on rails server:

 Library not loaded: /usr/lib/libpq.5.dylib (LoadError)
  Referenced from: /Users/messutiEdd/.rvm/gems/ruby-1.9.3-p362/gems/pg-0.14.1/lib/pg_ext.bundle
  Reason: image not found - /Users/messutiEdd/.rvm/gems/ruby-1.9.3-p362/gems/pg-0.14.1/lib/pg_ext.bundle