Skip to content

Instantly share code, notes, and snippets.

View petermeester's full-sized avatar
💻

Peter Meester petermeester

💻
View GitHub Profile
@thomasjsn
thomasjsn / laravel-queue.service
Last active April 19, 2025 12:34
Laravel queue worker using systemd.
# Laravel queue worker using systemd
# ----------------------------------
#
# /lib/systemd/system/queue.service
#
# run this command to enable service:
# systemctl enable queue.service
[Unit]
Description=Laravel queue worker
@gabouh
gabouh / AndroidManifest.xml
Created March 25, 2016 10:50
NativeScript Splash Screen for Android
File from app/App_Resources/Android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
@idleberg
idleberg / Install-Mcrypt.md
Last active September 2, 2024 06:59
Install Mcrypt on macOS

Setup php-mcrypt on macOS (and versions of Mac OS X)

These steps should have been mentioned in the prerequisites of the Laravel Installation Guide, since I'm surely not the only person trying to get Laravel running on macOS.

Install

Install Mcrypt using Homebrew and PECL (comes with PHP)

# PHP 7.3
@oomathias
oomathias / Mandrill_inbound_to_outbound.php
Created June 25, 2013 21:50
Get your email with your own domain thanks to Mandrill. You need to host the script somewhere, and point Mandrill Inbound webhook to it. Don't forget to include the Mandrill PHP library. If you user composer, you just have to do composer install.
<?php
require 'vendor/mandrill/mandrill/src/Mandrill.php';
define('API_KEY', '123456789QWERTY');
define('TO_EMAIL', '[email protected]');
define('TO_NAME', 'Foo Bar');
if(!isset($_POST['mandrill_events'])) {
echo 'A mandrill error occurred: Invalid mandrill_events';
@braddown
braddown / mobile-browser-detect
Created August 3, 2012 04:47
Link for App Download - Mobile OS Detection and Redirect Download Link to Appropriate App Store
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Redirect</title>
<script type="text/javascript"> // <![CDATA[
//iPhone Version:
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
window.location = "http://goo.gl/IWd7J";
}