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 | |
| # print usage | |
| DOMAIN=$1 | |
| EMAIL=$2 | |
| if [ -z "$1" ]; then | |
| echo "USAGE: $0 domain.lan your@email.address" | |
| echo "" | |
| echo "This will generate a non-secure self-signed wildcard certificate for given domain." |
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
| --- /vendor/magento/module-cms/Controller/Adminhtml/Wysiwyg/Images/OnInsert.php | |
| +++ /vendor/magento/module-cms/Controller/Adminhtml/Wysiwyg/Images/OnInsert.php | |
| @@ -38,1 +38,1 @@ | |
| - $storeId = (int)$this->getRequest()->getParam('store'); | |
| + $storeId = $this->getRequest()->getParam('store'); |
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
| # get hdd serialID | |
| sudo hdparm -I /dev/sda | |
| # list drives & partitions | |
| lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL,MODEL,STATE,UUID | |
| # enable hdd sleep | |
| # https://askubuntu.com/questions/137577/put-hdds-in-standby-after-x-minutes-using-hdparm-doesnt-work | |
| hdparm -S 240 /dev/sda |
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
| alias dc "docker-compose" | |
| set LANG "en_US.UTF-8" | |
| set --erase fish_greeting | |
| set normal (set_color normal) | |
| set magenta (set_color magenta) | |
| set yellow (set_color yellow) | |
| set green (set_color green) | |
| set red (set_color red) |
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 | |
| require_once 'abstract.php'; | |
| /** | |
| * Place file in /shell | |
| * run it like: | |
| * php clean-eav.php | |
| * | |
| * NOTE: It will start processing directly, no warnings or questions |
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 | |
| $dollars = 143.20; | |
| $cents = $dollars * 100; | |
| echo "Raw: --------------\n"; | |
| var_dump($dollars); | |
| var_dump($cents); | |
| echo "\nCast: --------------\n"; |
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
| # Git repo & branch in prompt. | |
| # Author AndreKlang.se | |
| # format: username@hostname current-dir (repoName/branchName) $ | |
| # example: (but it has pretty colors as well) | |
| # klang@andreklang ~/development/Packets-Php (PackageManager/phar-package) $ | |
| parse_git_repo() { | |
| basename $(git remote -v 2> /dev/null | grep push -m 1 | cut -d: -f2-) 2> /dev/null | |
| } |
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 | |
| WORKDIR=`mktemp -d` && cd $WORKDIR | |
| # Get deps | |
| sudo apt-get -q update | |
| sudo apt-get -qy install make libfuse-dev g++ | |
| # Get, make and install unrar | |
| wget http://www.rarlab.com/rar/unrarsrc-5.3.1.tar.gz | |
| tar zxvf unrarsrc-5.3.1.tar.gz |
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
| Section "InputClass" | |
| Identifier "np900x4b clickpad" | |
| MatchIsTouchpad "on" | |
| Driver "synaptics" | |
| # Enable the clickpad and set click actions | |
| Option "ClickPad" "1" | |
| Option "ClickFinger1" "1" | |
| Option "ClickFinger2" "1" | |
| Option "ClickFinger3" "1" |