Skip to content

Instantly share code, notes, and snippets.

//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',
],
];
@rbresjer
rbresjer / DateManager.swift
Created December 30, 2016 12:57
Example of Swift date manager which can convert dates to strings and vice versa, with auto detection of date formats
//
// DateManager.swift
//
// Created by Rutger Bresjer on 30/12/2016.
// Copyright © 2016 Woost. All rights reserved.
//
import Foundation
class DateManager {
@rbresjer
rbresjer / IOSWifiManager.h
Last active August 31, 2021 11:23
Programatically join Wi-Fi network on iOS with React Native wrapper for NEHotspotConfiguration
// Created by Rutger Bresjer on 10/10/2017
// Notes:
// - Be sure to enable "Hotspot Configuration" capability for the iOS target
// - Make sure the NetworkExtension framework is linked to the target
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
@interface IOSWifiManager : NSObject <RCTBridgeModule>