Skip to content

Instantly share code, notes, and snippets.

View kreitje's full-sized avatar

Jeff Kreitner kreitje

View GitHub Profile
@turgayozgur
turgayozgur / aspnetcore-linux-deployment.sh
Last active March 6, 2023 13:38
ASPNET Core Zero Downtime Deployment to Linux with Nginx
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# How to use?
# https://medium.com/@ozgurtrgy/aspnet-core-zero-downtime-deployment-to-linux-with-nginx-b8b230bf1577
# the variables depend on you.
PACKAGE_TAR_NAME="artifacts.tar.gz"
VERSION="1005"
@kevin-smets
kevin-smets / 1_kubernetes_on_macOS.md
Last active May 5, 2024 10:12
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@jlem
jlem / ApplicationsServiceProvider.php
Created August 21, 2015 14:35
Laravel 5 App Skeleton
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Request;
use View;
use App;
abstract class ApplicationsServiceProvider extends ServiceProvider
{
public function register()
@eddywashere
eddywashere / README.md
Last active May 19, 2023 02:17
Load third party javascript asynchronously, initialize queue for method calls, replace queue function, profit?

live demo

Files:

  • index.html: example of queue (the part that is always shown)
  • third-party.js: example of third party javascript (the part no one ever talks about)

Inspiration:

  • google analytics
@Jakobud
Jakobud / laravel_4_foundation_5_form_macros.php
Last active August 29, 2015 14:01
Laravel 4 Foundation 5 Form Macros
<?php
// Foundation 5 form label element wrapper
Form::macro('foundationLabelWrapper', function($name, $label = null, $element)
{
$label = is_null($label) ? ucwords(str_replace(array('-', '_'), ' ', $name)) : $label;
$errors = View::shared('errors');
$out = '';
@Jakobud
Jakobud / laravel_4_bootstrap_3_form_macros
Last active August 29, 2015 14:01
Laravel 4 Bootstrap 3 Form Macros
<?php
// Bootstrap 3 text field input
Form::macro('bootstrapText', function($name, $label=null, $value=null, $attr=array(), $help=null)
{
$attr['id'] = isset($attr['id']) ? $attr['id'] : $name;
if ( !isset($attr['class']) )
$attr['class'] = "form-control";
else {
@barryvdh
barryvdh / _ide_helper.php
Last active May 6, 2024 07:45
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");