Skip to content

Instantly share code, notes, and snippets.

View endelwar's full-sized avatar
🌋
So much time and so little to do. Wait a minute. Strike that. Reverse it.

Manuel Dalla Lana endelwar

🌋
So much time and so little to do. Wait a minute. Strike that. Reverse it.
View GitHub Profile
@endelwar
endelwar / webpack.config.js
Created December 14, 2023 15:11 — forked from versedi/webpack.config.js
Webpack Encore + Sass + MiniCSSExtractPlugin + PurgeCSS + OptimizeCss + Babel + Typescript
/* eslint-disable no-useless-escape */
const Encore = require('@symfony/webpack-encore');
const TerserPlugin = require('terser-webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin');
const HtmlCriticalWebpackPlugin = require('html-critical-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const PurgeCssPlugin = require('purgecss-webpack-plugin');
const WebpackBar = require('webpackbar');
const path = require('path');
@endelwar
endelwar / git-backup-to-Backblaze-B2.sh
Created June 27, 2018 08:33 — forked from nilayp/git-backup-to-Backblaze-B2.sh
Complete git repository backup script to Backblaze B2
#!/bin/bash
# Script to backup git repo to Backblaze B2
# Set bucket, dir, password and account to use for the backup. I keep mine in local env vars
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc
# Ensure you have authorized the B2 command line tool with the correct account AND added your SSH
# public key to your github account, if you need to backup private repositories.
# To restore this repo in the future, download it from B2, extract it and then use this command:
# cd old-repository.git
#!/usr/bin/env bash
echo ">>> Installing Mailhog"
# Download binary from github
wget --quiet -O ~/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64
# Make it executable
chmod +x ~/mailhog
@endelwar
endelwar / gist:b8a1af0eec11251d4cc31d86ac9e7cce
Created March 22, 2017 00:41
Good output for MailWatch 1.2.0 upgrade.php
# php upgrade.php mailscanner/functions.php
MailWatch for MailScanner Database Upgrade to 1.2.0
Have you done a full backup of your database? Type 'yes' to continue: yes
Testing connectivity to the database ................................. OK
Updating database schema:

Keybase proof

I hereby claim:

  • I am endelwar on github.
  • I am endelwar (https://keybase.io/endelwar) on keybase.
  • I have a public key ASCtSub_n1z46FjC5yEysn47utKMhNnuDbrbKhIDEhpFCgo

To claim this, I am signing this object:

@endelwar
endelwar / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Created May 27, 2016 08:11 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2016/02/29 17:26
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.