Skip to content

Instantly share code, notes, and snippets.

View BramDriesen's full-sized avatar
:shipit:
On it!

Bram Driesen BramDriesen

:shipit:
On it!
View GitHub Profile
@BramDriesen
BramDriesen / README.md
Created December 18, 2020 14:48 — forked from nwade/README.md
Remove SentinelOne Agent - macOS High Sierra/Mojave

Warning - use at your own risk

Remove SentinelOne agent from Mac

  1. Boot into Recovery Mode by holding Cmd+R during reboot
  2. Open Terminal from top menubar
  3. Run /Applications/Utilities/Disk\ Utility.app/Contents/MacOS/Disk\ Utility to open Disk Utility
  4. If your startup disk is encrypted, use Disk Utility to mount it
  5. In Terminal, run chroot /Volumes/Macintosh\ HD
  6. Execute the deletion commands or script
@BramDriesen
BramDriesen / delete_git_submodule.md
Created October 15, 2018 15:49 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

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
@BramDriesen
BramDriesen / strings_translations_hook_update_N.php
Created October 4, 2018 15:00 — forked from citlacom/strings_translations_hook_update_N.php
Programmatically set strings translations in hook_update_N()
/**
* Implements hook_update_N().
*/
function hook_update_N(&$sandbox) {
$report = array(
'skips' => 0,
'updates' => 0,
'deletes' => 0,
'additions' => 0
);