A curated list of modules that should be avoided at all cost.
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
| # Source: https://github.com/MatthieuScarset/drupal-template/blob/10.x/scripts/drupal_thinner.sh | |
| # ###################################################################### | |
| # Save the planet, delete your test files! | |
| # | |
| # This script is meant to delete unnecessary files and directories, | |
| # usually Tests and informational content not used on production env. | |
| # | |
| # "Why should I do this? ¯\_(ツ)_/¯" you may ask... | |
| # To reduce your digital footprint by not deploying non-required things | |
| # to the world wide web. |
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
| SELECT id, post_title | |
| FROM wp_posts | |
| WHERE post_type = 'attachment' | |
| AND LENGTH(post_title) = 32 | |
| AND post_title not like '%.%' | |
| SELECT * | |
| FROM wp_postmeta | |
| WHERE post_id in ( | |
| SELECT id |
Remove SentinelOne agent from Mac
- Boot into Recovery Mode by holding Cmd+R during reboot
- Open Terminal from top menubar
- Run
/Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utilityto open Disk Utility - If your startup disk is encrypted, use Disk Utility to mount it
- In Terminal, run
chroot /Volumes/Macintosh\ HD - Execute the deletion commands or script
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
| cat ~/.ssh/id_rsa.pub | pbcopy |
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
| # Always keeps on changing =). | |
| https://blog.gordonturner.com/2017/12/10/raspberry-pi-full-screen-browser-raspbian-december-2017/ | |
| https://www.raspberrypi.org/forums/viewtopic.php?t=167645 | |
| https://raspberrypi.stackexchange.com/questions/42633/raspberry-pi-autostart-of-lxde-does-not-work |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
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
| /** | |
| * Implements hook_update_N(). | |
| */ | |
| function hook_update_N(&$sandbox) { | |
| $report = array( | |
| 'skips' => 0, | |
| 'updates' => 0, | |
| 'deletes' => 0, | |
| 'additions' => 0 | |
| ); |
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
| sudo apt-get install curl | |
| curl -O https://bin.equinox.io/c/mvjh5YAmwCZ/cryptotrader-stable-linux-amd64.tgz | |
| tar -xvzf cryptotrader-stable-linux-amd64.tgz -C /usr/local/bin/ |
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
| Siege - Load testing | |
| Jmeter - Load testing | |
| Tree - Building files tree | |
| Truncate - Truncating files | |
| Lnav - Log file navigation |
NewerOlder