Skip to content

Instantly share code, notes, and snippets.

Paweł Sroka Srokap

Block or report user

Report or block Srokap

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
@Srokap
Srokap / composer.json
Created Apr 14, 2014
Simplest example of installing Elgg plugins with composer. Just put it into your project root and run `php composer.phar install`
View composer.json
{
"type": "project",
"repositories": [
{
"type": "composer",
"url": "http://composer.i.srokap.pl"
}
],
"minimum-stability": "dev",
"require": {
@Srokap
Srokap / changes.md
Created May 24, 2014
git log output without merges and commits matching our new forma standard
View changes.md

commit b83c69759c2b9100b40d6ed344dc0a1c6b6ba628 Author: Brett Profitt brett.profitt@gmail.com Date: Thu Apr 24 10:09:40 2014 -0400

Revert "Fixes #5090: Possible to register js as shimmed AMD module"

This reverts commit 4dcaf3889c1800ea879db1606f7883a21edf3a6f.

Conflicts:
	engine/classes/Elgg/AmdConfig.php
@Srokap
Srokap / problems.txt
Created Jul 22, 2014
List of private function calls in bundled plugins for Elgg 1.9
View problems.txt
Subpath selected mod/
Max version: 1.9
In file: D:/GIT/Srokap/Elgg/mod\aalborg_theme\views\default\page\default.php
Line 21: Function call: _elgg_admin_add_plugin_settings_menu (use of function marked private is unsafe)
In file: D:/GIT/Srokap/Elgg/mod\blog\activate.php
Line 6: Function call: get_subtype_id (use of function marked private is unsafe)
In file: D:/GIT/Srokap/Elgg/mod\blog\views\default\forms\blog\save.php
@Srokap
Srokap / templates.md
Created Oct 23, 2012
Community responses templates ;-)
View templates.md

In case of:

  • Unclear questions
Hi NNN,

Thanks for posting!

My name is NNN and I understand your issue to be:
@Srokap
Srokap / pr.md
Created Nov 5, 2012 — forked from piscisaureus/pr.md
Checkout github pull requests locally
View pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@Srokap
Srokap / aliases.php
Created Feb 23, 2013
Wydłubane z `ep_Object::$_aliases`
View aliases.php
<?php
$aliases = array (
0 => 'nik_raporty',
1 => 'bdl_wskazniki_podgrupy',
2 => 'bdl_wskazniki_kategorie',
3 => 'bdl_wskazniki_grupy',
4 => 'bdl_wskazniki_wariacje',
6 => 'bip_instytucje',
7 => 'sejm_glosowania_glosy_wyniki',
8 => 'gminy',
@Srokap
Srokap / aliases.php
Last active Dec 14, 2015
Nazwy dataset'ów wydługane z dataset'u _datasets.
View aliases.php
<?php
$aliases = array (
0 => 'wybory_samorzadowe_rady_gmin_kandydaci',
1 => 'pisma_adresaci',
2 => 'poslowie_aktywnosci',
3 => '_datasets',
4 => 'sn_orzeczenia_ludzie',
5 => 'bdl_wskazniki_podgrupy',
6 => 'bdl_wskazniki_grupy',
7 => 'bdl_wskazniki_kategorie',
View aliases_diff.php
<?php
/**
* @var array Nazwy datalist'ów wystpujacych tylko w kodzie API
*/
$aliasesL = array (
7 => 'sejm_glosowania_glosy_wyniki',
22 => 'sp_ludzie_stanowiska',
27 => 'poslowie_glosy',
32 => 'poslowie_wspolpracownicy',
46 => 'sa_sedziowie_orzeczenia',
@Srokap
Srokap / travis_notices.txt
Created Mar 1, 2013
Notices thrown in Travis worker by ElggInstaller
View travis_notices.txt
1Using worker: bluebox-linux-2.worker.travis-ci.org:travis-linux-12
2
3$ git clone --depth=100 --quiet --branch=ticket_5167 git://github.com/Srokap/Elgg.git Srokap/Elgg
4$ cd Srokap/Elgg
5$ git checkout -qf 72beba9995f587a1ea277364c49ceb9a1a7ef0f8
6$ sudo service mysql start
7start: Job is already running: mysql
8$ sleep 3
9$ phpenv global 5.3
@Srokap
Srokap / amd_bug
Created Mar 24, 2013
Problem with AMD in Elgg 1.9 and 1.8 standard of JS assets loading.
View amd_bug
Error: Mismatched anonymous define() module: function (punycode, IPv6, SLD) {
"use strict";
function URI(url, base) {
// Allow instantiation without the 'new' keyword
if (!(this instanceof URI)) {
return new URI(url, base);
}
if (url === undefined) {
You can’t perform that action at this time.