Skip to content

Instantly share code, notes, and snippets.

@BonBonSlick
BonBonSlick / fav_movies
Created Jan 21, 2020
Use google translator for russian titles. This is my personal list of favorite movies. Which everyone should watch at least once.
View fav_movies
1+1,
12 Monkeys,
12 Years a Slave,
127часов,
21,
1408,
2012,
300Спартанцев 1-2,
A Bronx Tale,
A Clockwork Orange,
@BonBonSlick
BonBonSlick / fav_movies
Created Jan 21, 2020
Use google translator for russian titles. This is my personal list of favorite movies. Which everyone should watch at least once.
View fav_movies
1+1,
12 Monkeys,
12 Years a Slave,
127часов,
21,
1408,
2012,
300Спартанцев 1-2,
A Bronx Tale,
A Clockwork Orange,
@BonBonSlick
BonBonSlick / fav_movies
Created Jan 21, 2020
Use google translator for russian titles. This is my personal list of favorite movies. Which everyone should watch at least once.
View fav_movies
1+1,
12 Monkeys,
12 Years a Slave,
127часов,
21,
1408,
2012,
300Спартанцев 1-2,
A Bronx Tale,
A Clockwork Orange,
@BonBonSlick
BonBonSlick / fav_movies
Created Jan 21, 2020
Use google translator for russian titles.
View fav_movies
1+1,
12 Monkeys,
12 Years a Slave,
127часов,
21,
1408,
2012,
300Спартанцев 1-2,
A Bronx Tale,
A Clockwork Orange,
View CORSSubscriber.php
/**
* Class self
*/
final class CORSSubscriber implements EventSubscriberInterface{
/**
* @return array
*/
public static function getSubscribedEvents() : array {
return [
View debian_initial_web_setup.txt
### Files
sudo gedit /etc/apt/sources.list
### Bsic Security setup
su -
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install sudo
@BonBonSlick
BonBonSlick / episode.xml
Last active Jul 21, 2019
Duplicate ManyToMany - Duplicate key Error
View episode.xml
<!-- Many To Many -->
<many-to-many target-entity="App\Entity\AnimeTag" field="tags" inversed-by="episodes">
<cascade>
<cascade-persist />
</cascade>
<join-table name="episodes_tags">
<join-columns>
<join-column name="episode_uuid" referenced-column-name="uuid" />
</join-columns>
@BonBonSlick
BonBonSlick / gist:e2b66a762fa9d4694db704cf34a52b50
Created Jul 16, 2019
Very old multiple records removing JQuery script, I do not need it anymore
View gist:e2b66a762fa9d4694db704cf34a52b50
// import Routing from '../../vendor/friendsofsymfony/jsrouting-bundle/Resources/public/js/router.min.js';
// Routing.setRoutingData(routes);
//event triggers
$(document).on('change', '.check_all', checkAllRows);
$(document).on('click', '#delete_all', deleteSelected);
// checks all checkboxes to delete items
@BonBonSlick
BonBonSlick / interceptXHR.js
Created Jul 16, 2019
Intercepting XHR script. This is JS part which seds request to api endpoint if any XHR intercepted
View interceptXHR.js
'use strict';
var MyApp = MyApp || {};
(function (window) {
var
proxied = {},
headersLog = false,
apiUrl = 'https://api.test.loc/api/v1/xhr/intercepted',
intercepted = false,
View Cron
https://gnugat.github.io/2014/04/09/sf2-console-component-by-example.html
https://symfony.com/doc/current/components/console.html