Skip to content

Instantly share code, notes, and snippets.

@auipga
auipga / Netflix Marathon.user.js
Last active Aug 19, 2021
netflix-marathon user script ||| updates for unmaintained https://greasyfork.org/en/scripts/30029-netflix-marathon
View Netflix Marathon.user.js
// ==UserScript==
// @name Netflix Marathon
// @namespace https://greasyfork.org/en/scripts/30029-netflix-marathon
// @version 2.7.2
// @description Automatically skip recaps, intros and click nexts on Netflix, DisneyPlus and Amazon video for you.
// @author ran, me
// @include https://www.netflix.com/*
// @include https://www.amazon.com/gp/video/*
// @include https://www.amazon.de/gp/video/*
// @include https://www.amazon.*/gp/video/*
@auipga
auipga / ublock-static-filters-immobilienscout24.de.txt
Last active May 3, 2021
[AdBlock|uBlock] remove all visible annoyances from immobilienscout24.de
View ublock-static-filters-immobilienscout24.de.txt
# to be pasted in uBlock -> Settings -> My Filters
www.immobilienscout24.de##.border.background.padding.removalcost-calculator-in-content
www.immobilienscout24.de##.border.grid-align-center.grid-flex.grid
www.immobilienscout24.de###propertybook_and_hub
www.immobilienscout24.de##.lap-one-whole.desk-one-third.grid-item
www.immobilienscout24.de##.one-whole.border-top.padding-top-l.margin-top-l.criteriagroup
www.immobilienscout24.de##.palm-margin-top-xl.palm-one-whole.one-half.grid-item > div > .section.sourcecode
www.immobilienscout24.de###stripe
www.immobilienscout24.de##.relocation-costs-comparison.print-hide span.with-icon:nth-of-type(4)
www.immobilienscout24.de##.premiumStatsFixedHeight
@auipga
auipga / gist:8142803018129856375c9e26eb3715b9
Last active Jul 30, 2019 — forked from beregond/gist:4373142
Allows to abandon necessity to define all setters and getters in Doctrine's entities (works perfectly with Symfony + Doctrine + Twig).
View gist:8142803018129856375c9e26eb3715b9
<?php
namespace Vendor\TestBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* General class for all entities.
*/
View gist:a2a8159a69efcda10e1fe9823db51a17
javascript:(function()%7Bvar%20IN,F;IN=document.getElementsByTagName('input');for(var%20i=0;i<IN.length;i++)%7BF=IN%5Bi%5D;if(F.type.toLowerCase()=='password')%7Btry%7BF.type='text'%7Dcatch(r)%7B%7D%7D%7D%7D)()
@auipga
auipga / composer.php.ini
Last active Oct 25, 2018 — forked from fprochazka/composer.php.ini
Composer with different ini or with different PHP
View composer.php.ini
[php]
memory_limit = -1
max_execution_time = 0
date.timezone = "Europe/Prague"
realpath_cache_size = "4096K"
extension=iconv.so
[opcache]
opcache.enable = 1
opcache.enable_cli = 1
@auipga
auipga / sfperm.sh
Created Aug 21, 2018
Setting up or Fixing File Permissions (Symfony)
View sfperm.sh
#!/usr/bin/env bash
# see http://symfony.com/doc/3.4/setup/file_permissions.html
function show_help
{
# General help text
cat << EOF
Script for Setting up or Fixing File Permissions for Symfony applications
Usage: sfperm <option>
@auipga
auipga / db filter
Created Nov 3, 2017
datasource settings, options, object filter
View db filter
table:^cayu_.*
table:^accessory_.*
table:^extension_carconfig.*
table:^extension_leasing_rates
table:^extension_price_matrix
table:^extension_sylius_.*
table:^lexik_.*
table:^1sylius_channel.*
table:^1sylius_country
table:^1sylius_currency
View idea.properties
# custom PhpStorm properties
idea.config.path=~/.PhpStorm/config
idea.system.path=~/.PhpStorm/system
idea.plugins.path=~/.PhpStorm/plugins
idea.log.path=~/.PhpStorm/log
apple.laf.useScreenMenuBar = true
@auipga
auipga / register-btsync-proto-gnome-firefox.sh
Last active May 15, 2017
register btsync protocol for firefox on gnome (does also work with rslsync)
View register-btsync-proto-gnome-firefox.sh
#!/bin/bash
# see http://kb.mozillazine.org/Register_protocol#Linux
gconftool-2 -s /desktop/gnome/url-handlers/btsync/command "`which rslsync` %s" --type String
gconftool-2 -s /desktop/gnome/url-handlers/btsync/enabled --type Boolean true
# get default profile path
ff_profile=$(cat ~/.mozilla/firefox/profiles.ini | grep Path | sed s/^Path=//)
ff_profile_dir="~/.mozilla/firefox/$ff_profile"
@auipga
auipga / rslsync-ufw.sh
Created May 13, 2017
Help configuring ufw for Resilio Sync (rslsync)
View rslsync-ufw.sh
#!/bin/bash
# Author: https://gist.github.com/auipga/
# Based on:
# Sync (outdated?): https://kb-archive.getsync.com/kbs/1.3.5/kb/hc/en-us/articles/210153106-Ports-and-protocols-used-by-Resilio-Connect.html
# Resilio Connect: https://help.getsync.com/hc/en-us/articles/204754759-What-ports-and-protocols-are-used-by-Sync-
# todo: read sync.conf from resilio server, parse json, fill IPs dynamically
# todo: delete duplicate rules as 'host' returns multiple IPs for resilios domains