Skip to content

Instantly share code, notes, and snippets.

@auipga
auipga / install.sh
Last active September 14, 2023 19:54
simon the sorcerer with scummvm on steamdeck
#!/bin/bash
echo "do not run this file directly!";
echo "Check for updates here: https://gist.github.com/auipga/8420bd5f89f6efd7415fbd88342f3ec7";
exit;
# here are the commands you need to copy over to a terminal (Konsole in this case):
passwd # if you have no password already set up
@auipga
auipga / phpstorm-survive-history.hook
Last active September 20, 2023 02:39
This script circumvents the guaranteed loss of your loved local file history in PhpStorm (with hook for Archlinux)
[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = phpstorm
[Action]
Depends = rsync
Description = Keeping JetBrains Cache (including local file history)...
When = PostTransaction
@auipga
auipga / 0ad.json
Created December 25, 2022 00:10
input-remapper/presets/Razer Tartarus V2/0ad.json
{
"mapping": {
"1,2,1": [
"KEY_ESC",
"keyboard"
],
"1,3,1": [
"KEY_LEFTSHIFT + KEY_F5",
"keyboard"
],
@auipga
auipga / Netflix Marathon.user.js
Last active August 19, 2021 07:51
netflix-marathon user script ||| updates for unmaintained https://greasyfork.org/en/scripts/30029-netflix-marathon
// ==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 15:30
[AdBlock|uBlock] remove all visible annoyances from immobilienscout24.de
# 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 July 30, 2019 15:04 — 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).
<?php
namespace Vendor\TestBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* General class for all entities.
*/
@auipga
auipga / composer.php.ini
Last active October 25, 2018 09:02 — forked from fprochazka/composer.php.ini
Composer with different ini or with different PHP
[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 August 21, 2018 07:51
Setting up or Fixing File Permissions (Symfony)
#!/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 / idea.properties
Created November 3, 2017 09:54
indexing
# 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 October 8, 2024 07:33
register btsync protocol for firefox on gnome (does also work with rslsync)
#!/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"