Skip to content

Instantly share code, notes, and snippets.

@rbresjer
rbresjer / ViewController.swift
Created March 1, 2018 11:01
Example of EventKit/Calendar permission crash
/*
How to reproduce crash:
1. Toggle switch on, Calendar authorization is requested, grant authorization
2. Switch to the Settings app, disable Calendar authorization
3. The app crashes
Or:
1. Toggle switch on, Calendar authorization is requested, reject authorization
2. Toggle the switch on again, an alert is shown that you should authorize in the Settings app
3. Go to the Settings app, enable Calendar authorization
//instructions are taken from: https://github.com/intel/linux-sgx
//Installing SGX driver:
//-----------------------
git clone https://github.com/intel/linux-sgx-driver.git
//Check if matching Kernel headers are installed:
dpkg-query -s linux-headers-$(uname -r)
//If not run:
sudo apt-get install linux-headers-$(uname -r)
//In order to build:
@rbresjer
rbresjer / config.php
Created May 18, 2020 15:06 — forked from jarektkaczyk/config.php
Laravel - tinker like a boss (with PsySH)
<?php // ~/.config/psysh/config.php
// Anything not Laravel - let's try to autoload something likely to exist
if (!defined('LARAVEL_START')) {
return [
'defaultIncludes' => [
getcwd().'/vendor/autoload.php',
getcwd().'/bootstrap/autoload.php',
],
];