Skip to content

Instantly share code, notes, and snippets.

1. Create a new directory;
mkdir Apple\ Enterprise
cd Apple\ Enterprise
2. Generate a certificate signing request
openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
3. With the information like so (ensure you give it a password):
Country Name (2 letter code) [AU]:GB
State or Province Name (full name) [Some-State]:London
@levacic
levacic / app-Http-Requests-Request.php
Created December 21, 2020 23:30
Form request for failed validation redirect with hash
<?php
declare(strict_types=1);
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
abstract class Request extends FormRequest
{
@levacic
levacic / web-servers.md
Created November 5, 2020 22:43 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000

Keybase proof

I hereby claim:

  • I am levacic on github.
  • I am levacic (https://keybase.io/levacic) on keybase.
  • I have a public key ASAWIqgyGjC8iiAr4Ut-OnCC9BkekQdm2PhE3jtwo10X_go

To claim this, I am signing this object:

/**
* These modify the height and layout of the popup menus for editing the labels
* of emails - basically, they increase the height a lot, which is useful for
* people that have many labels. They also reduce the font-size to make those
* lists fit more items, and look better.
*/
.J-M {
max-height: 800px !important;
font-size: 10px !important;
}
@levacic
levacic / Creitive_Monolog_Processor_ExtraDataProcessor.php
Created December 12, 2014 13:33
ExtraDataProcessor for Monolog
<?php
namespace Creitive\Monolog\Processor;
/**
* Injects arbitrary extra data in all records.
*
* @author Miloš Levačić <milos@levacic.net>
*/
class ExtraDataProcessor
@levacic
levacic / .environment.template.php
Last active August 29, 2015 14:06
Laravel environment loading
<?php
/**
* Copy this file to `.environment.php`, and set all variables to the
* environment-specific configuration.
*/
return [
/**

prepend-timestamp

Shell snippet that prepends a nice to a command's output.

For example, here's the (snipped) output of vagrant provision:

Successfully installed bundler-1.3.5  
1 gem installed  
Using rmagick (2.13.2)  
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby