Skip to content

Instantly share code, notes, and snippets.

@BonBonSlick
BonBonSlick / jetbrains-key-activation.txt
Created Sep 3, 2020 — forked from imgVOID/jetbrains-key-activation.txt
JetBrains key activation 2020-2021 IntelliJ WebStorm PyCharm PhpStorm
View jetbrains-key-activation.txt
2020 JetBrains activation working method: license servers' addresses & keys!
Big thanks to JBFamily China community for this activation method. Was successfully tested on 04/10/2020 for PyCharm version 19.3
PLZ star & fork my repo, it can be deleted by DMCA!
https://github.com/imgVOID/jetbrains-license-2020
FIRST YOU NEED TO NECESSARILY BLOCK ALL JETBRAINS SERVERS' ADDRESSES
ADRESSES LIST: https://pastebin.com/W7jA0v8a
(Linux + MacOS) /etc/hosts Change this file ownership into your name. so that you can edit. command: sudo chown username /etc/hosts
@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,
You can’t perform that action at this time.