Skip to content

Instantly share code, notes, and snippets.

View kirikintha's full-sized avatar

Paul T Huntsberger kirikintha

View GitHub Profile
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = (neutrino, options) => {
// Supports neutrino-preset-web and any other preset following this pattern.
const styleRule = neutrino.config.module.rule('style');
const styleTest = styleRule.get('test');
const styleFallback = {
loader: styleRule.use('style').get('loader'),
options: styleRule.use('style').get('options') };
const styleLoaders = Array.from(styleRule.uses.store.keys())
@martin-cotta
martin-cotta / OpenSSL.sh
Created January 30, 2017 16:56
Goddady SSL/TSL Certificate (P7B + CRT) to Azure PFX Certificate
# Required files:
# domain.crt and godaddy.p7b: provided by Godaddy when exporting
# private.key: self-generated file that was needed to create CSR (Certificate signing request)
$ openssl pkcs12 -export -in domain.crt -inkey private.key -certfile godaddy.p7b -out domain.pfx
# or if you need intermediate .cer instead of .p7b
$ openssl pkcs7 -print_certs -in godaddy.p7b -out godaddy.crt
$ openssl pkcs12 -export -in domain.crt -inkey private.key -certfile godaddy.cer -out domain.pfx
@sumardi
sumardi / nginx.default.conf
Last active November 2, 2024 14:29
Install PHP-FPM, Nginx & MySQL on EC2 with Amazon Linux AMI
# Install linux update, followed by GCC and Make
sudo yum -y update
sudo yum install -y gcc make
# Install Nginx and PHP-FPM
sudo yum install -y nginx php-fpm
# Install PHP extensions
sudo yum install -y php-devel php-mysql php-pdo \
php-pear php-mbstring php-cli php-odbc \
@mbinna
mbinna / podforceupdate.sh
Created December 4, 2012 09:43
Clear CocoaPods cache, re-download and re-install all pods
#!/usr/bin/env bash
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
pod update
@thehunmonkgroup
thehunmonkgroup / node-app
Last active June 1, 2022 20:27
Redhat init script for managing a NodeJS app via forever
#!/bin/sh
##
## Redhat / Linux / LSB
##
# chkconfig: 345 85 15
# description: Startup script for Express / Node.js application with the \
## forever module.
##
## A modification of https://gist.github.com/1339289
##