Skip to content

Instantly share code, notes, and snippets.

View remluben's full-sized avatar
🎯
Laravel + Cockpit

Benjamin Ulmer remluben

🎯
Laravel + Cockpit
View GitHub Profile
@remluben
remluben / laravel-setup.bat
Last active November 12, 2022 07:04
Laravel setup for windows - a simple bat file (with a php file) setting up a laravel project with sqlite database and useful packages preinstalled ready to run using `php artisan serve`
:: Name: laravel-setup.bat
:: Purpose: Set up a new laravel project and install useful default packages
:: Requires: PHP available from cli on current system
:: composer available from cli on current system
:: Author: ulmer.benjamin@gmail.com
:: Revision: November 2019 - inital script
:: December 2019 - ...
@echo off
@remluben
remluben / js-polyfill-custom-event.js
Created September 18, 2020 05:05
A polifill for JavaScript's Custom Event support in IE11 and others
/**
* CustomEvent support for IE11
* https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent#Polyfill
*/
(function () {
if (typeof window.CustomEvent === 'function') {
return false;
}
# A file full of usefull aliases
# Composer aliases
alias co="composer"
# GIT aliases
alias ga="git add"
alias gaa="git add ."
alias gc='git commit -m'
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@remluben
remluben / myplugin.js
Created September 14, 2017 19:20 — forked from leolux/myplugin.js
Object-Oriented jQuery Plugin skeleton
//Source: http://www.virgentech.com/blog/2009/10/building-object-oriented-jquery-plugin.html
//Author: Hector Virgen
//Date: August 23, 2010
(function($) {
var MyPlugin = function(element, options) {
var elem = $(element);
var obj = this;
@remluben
remluben / gallery.bxslider.html
Last active March 22, 2017 09:00 — forked from craigmdennis/gallery.bxslider.html
A BX Slider configuration that uses 2 separate sliders. One for the gallery and one for the thumbs.
@remluben
remluben / check-mountpoint.sh
Last active November 10, 2016 06:23
Ubuntu shellscript for checking mountpoints and sending emails on error
#!/bin/sh
#
# Checks if a directory was successfully mounted. If not, the script
#
# - sends an email warning
# - echoes error informations
# - exits the script
#
# @author ulmer.benjamin@gmail.com
#
@remluben
remluben / composer.json
Last active December 28, 2015 17:38
Composer: Laravel 4.x composer.json
{
"name": "remluben/project",
"description": "The project description.",
"license": "WTFPL",
"authors": [
{
"name": "remluben",
"email": "ulmer.benjamin@gmail.com"
}
],
@remluben
remluben / getsetgen.php
Created November 8, 2013 21:43
Shellscript: PHP Getter & Setter Generator
#!/usr/bin/php
<?php
/*
* Quelle: http://blog.dennis.io/php-gettersetter-generator/
*/
if (!is_file($argv[2]))
die('Use this way: '.$argv[0].' <class_name> <path_to_your_class`s_php_file>'."\n");
require_once($argv[2]);
@remluben
remluben / license-mit
Last active December 26, 2015 15:39
License: MIT
The MIT License (MIT)
Copyright (c) 2015 Benjamin Ulmer
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
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@remluben
remluben / license-wtfpl
Created October 26, 2013 21:05
License: WTFPL
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE