Skip to content

Instantly share code, notes, and snippets.

View micron's full-sized avatar

Miron micron

  • kreativrudel
  • Siegburg
View GitHub Profile
@dennisnissle
dennisnissle / functions.php
Last active February 5, 2021 15:15
Remove invoice summary from emails
<?php
add_action( 'init', 'my_child_after_sab_init', 40 );
function my_child_after_sab_init() {
remove_action( 'storeabill_email_document_details', array( 'Vendidero\StoreaBill\Emails\Mailer', 'summary' ), 20 );
}
@artibella
artibella / app.js
Created January 19, 2017 20:06
Use Fractal as a custom Express view engine
// example Express server using the custom Fractal view engine
const express = require('express');
const path = require('path');
const appRoot = path.normalize(path.join(__dirname, '..'));
const app = express();
const fractalEngine = require(path.join(appRoot, 'lib/fractal-engine'));
const loadComponents = require(path.join(appRoot, 'middleware/load-components'));
// register custom Fractal rendering engine
app.engine('fractal', fractalEngine);
@mietek
mietek / set-up-l2tp-ipsec-vpn-on-debian.md
Last active October 22, 2023 12:25
Set up L2TP/IPsec VPN on Debian

Set up L2TP/IPsec VPN on Debian

Set up IPsec

Set up networking

@magnetikonline
magnetikonline / README.md
Last active June 6, 2024 06:16
Setting Nginx FastCGI response buffer sizes.
var stream = require('stream');
function streamify(text) {
var s = new stream.Readable();
s.push(text);
s.push(null);
return s;
}
streamify('foo\n').pipe(process.stdout);
@hagenburger
hagenburger / javascript_loader.js
Created July 30, 2010 15:28
Dynamically load JavaScript files with callback when finished
// Example:
JavaScript.load("/javascripts/something.js");
// With callback (that’s the good thing):
JavaScript.load("http://www.someawesomedomain.com/api.js", function() {
API.use(); // or whatever api.js provides ...
});