Skip to content

Instantly share code, notes, and snippets.

@lukepolo
lukepolo / example.html
Created July 15, 2021 01:09 — forked from steve228uk/example.html
Deeplink Youtube
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
window.onload = function() {
@lukepolo
lukepolo / VendorInjectionPlugin.js
Created December 27, 2019 20:10 — forked from MrBr/VendorInjectionPlugin.js
Webpack plugin for importing split library bundles within CRA environment.
const fs = require('fs');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
// Used to replace vendor imports with empty string
const ConstDependency = require('webpack/lib/dependencies/ConstDependency');
function hashString(str) {
var hash = 0,
i,
chr;
@lukepolo
lukepolo / valet.conf
Created March 23, 2019 17:49 — forked from poul-kg/valet.conf
CORS Rules for Laravel Valet Nginx
# To enable CORS you should add lines with CORS rules below to your valet.conf file
# Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx
# of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory
# after you edit your valet.conf do not forget to execute `valet restart`
server {
listen 80 default_server;
root /;
charset utf-8;
client_max_body_size 128M;
router.afterEach((to, from) => {
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
#!/bin/bash
#
# The MIT License (MIT)
#
# Copyright (c) 2014 Mathias Leppich <mleppich@muhqu.de>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@lukepolo
lukepolo / gist:fc8758e9255771f24610
Last active February 16, 2016 14:37 — forked from jfalotico/gist:ee2d3b49207935c6aa94
Install Mongo Homestead with PHP-7
sudo apt-get install pkg-config libssl-dev
sudo pecl install mongodb
echo set completion-ignore-case on | sudo tee -a /etc/inputrc
// BASH PROFILE
SSH_ENV=$HOME/.ssh/environment
# start the ssh-agent
@lukepolo
lukepolo / ubuntu-php7-install.bash
Last active December 25, 2015 10:44
Ubuntu 14.04 PHP7 (Install from Source)
#!/usr/bin/env bash
sudo -i;
apt-get update;
apt-get install --yes \
git \
bison \
autoconf \