Skip to content

Instantly share code, notes, and snippets.

Paris ptheofan

  • Berlin
Block or report user

Report or block ptheofan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ptheofan / cloudflare_https_prefix.php
Created Mar 21, 2017
Cloudflare flexible SSL - trick PHP scripts to identify HTTPS when cloudflare reports it was HTTPS request
View cloudflare_https_prefix.php
Go to your php.ini for the web scripts (pointless for cli scripts)
Make the following adjustment
auto_prepend_file = full/path/to/clousflare_https_prefix.php
reload/restart php service (or apache if running via apache)
How this works
ptheofan /
Last active Mar 31, 2016 — forked from stephanetimmermans/ubuntu-compass-ruby
Install Compass+Ruby on Ubuntu 14.04
# for ZSH users
sudo apt-get update
sudo apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install -y libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
# switch to BASH
exec bash
curl -L | bash -s stable
# (if you get error follow the on screen instructions to add the signatures)
View macbook-gpu-panic.txt
Anonymous UUID: A8819B0C-A1C6-D57A-ABF6-040681A29564
Sun Mar 27 18:32:26 2016
*** Panic Report ***
panic(cpu 4 caller 0xffffff7f839e650e): "AGC GPU REGISTER RESTORE FAILED : rdar://7254528, VendorID invalid"@/Library/Caches/
Backtrace (CPU 4), Frame : Return Address
0xffffff81ec303db0 : 0xffffff80008dab12
0xffffff81ec303e30 : 0xffffff7f839e650e
0xffffff81ec303e70 : 0xffffff7f839e9324
ptheofan / gruntfile.js
Created Aug 9, 2015
Yeoman Angular Generator Gruntfile
View gruntfile.js
// Generated on 2015-08-05 using generator-angular 0.12.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
ptheofan / NestedSetToArrayExample.php
Last active Jun 13, 2018
Yii2 NestedSets class trait as a nice helper to use with any class that uses the NestedSets behavior
View NestedSetToArrayExample.php
* NestedSets in SQL - How to export a nested set subtree or tree into Yii2 Menu widget and as
* JsTree valid DataSet (nested format).
class Category extends \yii\db\ActiveRecord
* @return array
You can’t perform that action at this time.