Here is the list of talks that I found most useful to me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "php-cs-fixer pre commit hook start" | |
PHP_CS_FIXER="bin/php-cs-fixer" | |
PHP_CS_CONFIG=".php_cs" | |
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php') | |
if [ -n "$CHANGED_FILES" ]; then | |
$PHP_CS_FIXER fix --config "$PHP_CS_CONFIG" $CHANGED_FILES; | |
git add $CHANGED_FILES; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -f -n 450 storage/logs/laravel*.log \ | |
| grep -i -E \ | |
"^\[\d{4}\-\d{2}\-\d{2} \d{2}:\d{2}:\d{2}\]|Next [\w\W]+?\:" \ | |
--color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
class ExamplePassportTest extends \PassportTestCase | |
{ | |
use DatabaseTransactions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
/** @var \Telegram\Bot\Objects\User $userUpdate */ | |
$userUpdate = $update->getFrom(); | |
/** @var \Telegram\Bot\Objects\Chat $chatUpdate */ | |
$chatUpdate = $update->getChat(); | |
$userExist = User::where('user_id', '=', $userUpdate->getId())->first(); | |
$chatExist = Chat::where('chat_id', '=', $chatUpdate->getId())->first(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Simple Linear Probabilistic Counters | |
Credit for idea goes to: | |
http://highscalability.com/blog/2012/4/5/big-data-counting-how-to-count-a-billion-distinct-objects-us.html | |
http://highlyscalable.wordpress.com/2012/05/01/probabilistic-structures-web-analytics-data-mining/ | |
Installation: | |
pip install smhasher | |
pip install bitarray |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias weather='curl -s wttr.in | sed -n "1,7p"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Почему вы выбрали именно нашу компанию? | |
Вы идиот (ка), да? Я, как и все кандидаты до меня и после меня, направил резюме в десяток мест. | |
Где устроюсь быстрее и выгоднее — там и хорошо. | |
2. Как вы считаете, почему мы должны выбрать именно вас? | |
Вам работники вообще нужны? Ну вот он я. Работник. | |
Именно меня стоит выбрать хотя бы потому, что я явно умнее всех тех, кто заливал на эти вопросы стандартную чушь. | |
И умнее вас, между прочим, потому что я никогда таких дурацких вопросов бы не задал. |
I hereby claim:
- I am kefzce on github.
- I am systemfailure (https://keybase.io/systemfailure) on keybase.
- I have a public key whose fingerprint is 1C3E CE0A A891 3941 6C3D 47E1 A209 7373 E5A1 0DA5
To claim this, I am signing this object:
Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.