- about:blank
This file contains hidden or 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
| #!/usr/bin/env bash | |
| for f in `grep -Rl --include=config '[email protected]' .` ; do sed -i 's/[email protected]/[email protected]/' "$f" ; done | |
This file contains hidden or 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
| <?php | |
| namespace Vendor\Extension\Storage; | |
| use TYPO3\CMS\Extbase\Persistence\Generic\Qom\SourceInterface; | |
| use TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser; | |
| /** | |
| * This class allows ordering by 'FIELD' SQL statement. | |
| * | |
| * @author Dmitry Dulepov <[email protected]> |
This file contains hidden or 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/bash | |
| # Must be run as root! | |
| # Source: https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors | |
| if [ -f /var/swap.1 ] ; then | |
| /sbin/swapoff /var/swap.1 | |
| rm /var/swap.1 | |
| echo "Swap is off" | |
| else |
This file contains hidden or 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
| python -c 'import yaml,sys;yaml.safe_load(sys.stdin)' < file.yml | |
| Needs "pip install pyyaml". | |
| Source: https://liquidat.wordpress.com/2016/01/21/short-tip-verify-yaml-in-shell-via-python-one-liner/ |
This file contains hidden or 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
| # | |
| # In ~/.profile: alias "mkpasswd=docker run -i -t mkpasswd" | |
| # | |
| FROM debian:stretch | |
| RUN apt-get update && apt-get install -y --no-install-recommends --no-install-suggests whois | |
| CMD ["/usr/bin/mkpasswd", "-m", "sha-512"] |
This file contains hidden or 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
| <?php | |
| namespace DmitryDulepov\PowermailConversionFix\Xclass; | |
| /*************************************************************** | |
| * Copyright notice | |
| * | |
| * (c) 2016 Dmity Dulepov <[email protected]> | |
| * All rights reserved | |
| * | |
| * This script is part of the TYPO3 project. The TYPO3 project is | |
| * free software; you can redistribute it and/or modify |
This file contains hidden or 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
| ogimageNoSlide = FILES | |
| ogimageNoSlide { | |
| references { | |
| table = pages | |
| uid.data = page:uid | |
| fieldName = ogimage | |
| } | |
| maxItems = 1 | |
| renderObj = TEXT | |
| renderObj { |
This file contains hidden or 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
| # Note: this is just a fragment that you should put in your ~/.bash_profile | |
| # Tested on Mac only! | |
| # | |
| # If you want a more sophisticated and feature rich solution here are some pointers: | |
| # - https://github.com/cxreg/smartcd | |
| # - http://swapoff.org/ondir.html | |
| function cd_ { | |
| if [ -e .env_off ] ; then | |
| . .env_off |
This file contains hidden or 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
| <lj-userpic remote="remote" /> |
NewerOlder