Skip to content

Instantly share code, notes, and snippets.

View imiroslavov's full-sized avatar

Iliya Miroslavov Iliev imiroslavov

  • Varna, Bulgaria
View GitHub Profile
@imiroslavov
imiroslavov / tvheadend-fetch.js
Created November 10, 2020 15:51 — forked from tryvin/tvheadend-fetch.js
TVHeadend JS functions to help handling some copy
function getAllMuxes() {
return fetch('/api/mpegts/mux/grid',
{
body: 'start=0&limit=999999999&sort=name&dir=ASC', method: 'POST',
credentials: 'include',
headers: {
'Accept': 'application/json, application/xml, text/plain, text/html, *.*',
'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
}
}
There are a lot of complaints going around about Laravel these days, but a lot
of the important ones seem to be missing from the spotlight.
Bugfixes, issues and pull requests being left open for months with no
clarification of intent:
- https://github.com/laravel/framework/pull/1799
- https://github.com/laravel/framework/issues/1963
- https://github.com/laravel/framework/issues/2089
- https://github.com/laravel/framework/issues/2234
@imiroslavov
imiroslavov / Configuration.php
Created November 13, 2019 13:56 — forked from xphere/Configuration.php
Recursive symfony/configuration
<?php
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* Helper function to create recursive nodes
*/
function recursiveNode(string $name, callable $callback)
@imiroslavov
imiroslavov / git.md
Created September 19, 2019 09:49 — forked from umarcor/git.md
git cheatsheet

Amend (reset) the author of multiple commits at once

git rebase -i <COMMIT_SHA> -x "git commit --amend --reset-author -CHEAD"

For example:

git rebase -i HEAD~3 -x "git commit --amend --reset-author -CHEAD"
@imiroslavov
imiroslavov / rabbitmq.txt
Created April 24, 2019 13:12 — forked from sdieunidou/rabbitmq.txt
create admin user on rabbitmq
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"