- Find the commit a GitHub
- Add .patch to the URL
- Require vaimo/composer-patches
- Add an entry like the above, with path-removal-level 5, to the composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open(\"GET\", \"http://localhost:8091?message=%f:%l\", true); rq.send(null);" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTSIZE=1000000000 | |
HISTFILESIZE=2000000000000000 | |
HISTTIMEFORMAT="[%F %T %Z] " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
from subprocess import call | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setwarnings(False) | |
# GPIO definieren | |
REED_gas = 3 # GPIO 3 (Pin 5) | |
GPIO.setup(REED_gas, GPIO.IN, pull_up_down=GPIO.PUD_UP) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Activity extends Model | |
{ | |
/** | |
* Convert a string to ASCII | |
* | |
* @source http://cubiq.org/the-perfect-php-clean-url-generator | |
* @param $str | |
* @param array $replace | |
* @param string $delimiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Prompt | |
export PROMPT_COMMAND=__prompt_command # Func to gen PS1 after CMDs | |
function __prompt_command() { | |
local EXIT="$?" # This needs to be first | |
PS1="" | |
local RCol='\[\e[0m\]' | |
local Red='\[\e[0;31m\]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Multiplies pages and copies and puts the result into the qty field | |
*/ | |
define([ | |
'jquery', | |
'underscore', | |
'mage/template', | |
], function ($, _, mageTemplate, utils) { | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Initialize an (empty) cart | |
*/ | |
protected function initCart() | |
{ | |
if (!$this->cart->getQuote()->getId()) { | |
$this->cart->getQuote()->getShippingAddress() | |
->setCountryId('DE') | |
->setCollectShippingRates(true) | |
->collectShippingRates(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e # stop if any command returns a non-zero exit code | |
# #EXTM3U | |
# #EXTINF:-1 tvg-id="ARD.de" tvg-logo="ardhd" tvg-name="Das Erste HD" group-title="german",Das Erste HD | |
# http://192.168.0.3/?src=1&freq=11494&sr=22000&pol=h&msys=dvbs2&pids=0,5100,5101,5102,5103,5106 | |
# #EXTINF:-1 tvg-id="ZDF.de" tvg-logo="zdfhd" tvg-name="ZDF HD" group-title="german",ZDF HD | |
# http://192.168.0.3/?src=1&freq=11362&sr=22000&pol=h&msys=dvbs2&pids=0,6100,6110,6120,6121,6123,6122 | |
# #EXTINF:-1 tvg-id="RTL.de" tvg-logo="rtl" tvg-name="RTL Television" group-title="german",RTL Television |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# see also https://stackoverflow.com/questions/39161770/symfony-based-autocomplete-breaks-scp-autocomplete | |
# define robo command | |
ROBO=robo | |
#ROBO=irobo | |
function __robo_list_cmds () | |
{ |