Skip to content

Instantly share code, notes, and snippets.

'circle' => [
'author' => 'Maxence Lange',
'app' => 'circles',
'since' => '12.0.0',
'parameters' => [
'id' => [
'since' => '12.0.0',
'required' => true,
'description' => 'The id used to identify the circle on the instance',
'example' => '42',

HowTo set it up

  1. Install the admin_notifications app
  2. Create system-notifications.sh with the content from below on your system
  3. Add the script to the cronjob crontab -u www-data -e:
0 10 * * * /path/to/file/system-notifications.sh
--- /etc/phpmyadmin/apache.conf 2016-12-01 11:24:41.325360620 +0100
+++ /etc/phpmyadmin/apache.conf.dpkg-new 2016-12-01 08:42:43.000000000 +0100
@@ -16,7 +16,7 @@
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
- php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-php-gettext/:/usr/share/php/php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
+ php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/:/usr/share/php/php-gettext/:/usr/share/php/php-php-gettext/:/usr/share/javascript/:/usr/share/php/tcpdf/:/usr/share/doc/phpmyadmin/:/usr/share/php/phpseclib/
php_admin_value mbstring.func_overload 0
</IfModule>
<?php
/**
* The MIT License (MIT)
*
* Copyright (c) 2016 Joas Schilling
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@nickvergessen
nickvergessen / repair-appconfig.php
Last active May 22, 2017 08:40
Repair problems with shipped apps on update
<?php
/**
* @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
An error occurred during the signature verification. The repository is not updated and the previous index files will be used.
GPG error: http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04
Release: Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 4ABE1AC7557BEFF9
Failed to fetch http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_16.04/Release.gpg
Die folgenden Signaturen konnten nicht überprüft werden, weil ihr öffentlicher Schlüssel nicht verfügbar ist: NO_PUBKEY 4ABE1AC7557BEFF9
Einige Indexdateien konnten nicht heruntergeladen werden. Sie wurden ignoriert oder alte an ihrer Stelle benutzt.
Signed-off-by: Full Name <your@email>
<?php
require_once 'lib/base.php';
\OC_Util::setupFS('admin');
\OC::$server->getUserSession()->login('admin', 'admin');
$view = new \OC\Files\View('/admin/files');
var_dump($view->rename('test/sub2/welcome2.txt', 'test/sub/welcome.txt'));

a/b/c moved to a/d/c

Cases:

  • a/b/c shared: no visible change
  • a/b/ shared: delete
  • a/d/ shared: add
  • a/ shared: move/rename
/**
* Returns a test double for the specified class.
*
* @param string $originalClassName
*
* @return PHPUnit_Framework_MockObject_MockObject
*
* @throws PHPUnit_Framework_Exception
*
* @since Method available since Release 5.4.0