Skip to content

Instantly share code, notes, and snippets.

@nadar
nadar / screen.sh
Last active May 19, 2016 08:40
Screen Short Guide
## https://www.howtoforge.com/linux_screen
## create new screen
screen
## list screens
screen -ls
## connect to a screen
screen -r 123....
@nadar
nadar / luyacheck.php
Last active January 14, 2017 08:58
Retrieve debugging informations of a LUYA Webserver.
<?php
/**
* Return debugging information of a Webserver.
*
* Store the file `luyacheck.php` on your webserver and open it via Browser Url or run in console with `php luyacheck.php`.
*
* @see https://luya.io
* @see https://github.com/luyadev/luya
*/
@nadar
nadar / callMethodSanitizeArguments.php
Last active November 12, 2015 11:36
Call class/object method and sanitize massive assigned arguments in PHP
<?php
/**
* Call a class method with arguments and verify the arguments if they are in the list of
* method arguments or not.
*
* ```
* $response = ObjectHelper::callMethodSanitizeArguments((new MyClass()), 'methodToGet', ['paramName' => 'paramValue']);
* ```
*
@nadar
nadar / PostMessageToSlackChannel.php
Last active June 5, 2024 17:05
Post a message to a slack channel with PHP
<?php
/**
* Send a Message to a Slack Channel.
*
* In order to get the API Token visit:
*
* 1.) Create an APP -> https://api.slack.com/apps/
* 2.) See menu entry "Install App"
* 3.) Use the "Bot User OAuth Token"
WLAN:
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 170 MBytes 142 Mbits/sec
WLAN via AC:
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 681 MBytes 571 Mbits/sec
Gbit Ethernet:
[ ID] Interval Transfer Bandwidth