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
Snippets in various languages to provide a hex dump of a part of the memory |
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/bash | |
# UNTAR - Ultimate Nice Tool making Archives Right | |
# This tool calls tar (or other archiving binaries) with the right arguments -- you no longer need to remember them | |
# To extract: run 'untar mytarball.<whatever>', this tool will infer the right arguments | |
# To compress: run 'mytar mytarball.<whatever> contents', this tool will infer the right arguments | |
# See the usage for extra possible options | |
# | |
# To install: | |
# Copy this script somewhere in your $PATH (and make it executable) | |
# Also create a link (in your $PATH) called 'mytar' pointing to this script |
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/bash | |
# Run as if it was called from cron, that is to say: | |
# * with a modified environment | |
# * with a specific shell, which may or may not be bash | |
# * without an attached input terminal | |
# * in a non-interactive shell | |
# This scripts supports cron jobs run by any user, just run it as the target user (e.g. using sudo -u <username>) | |
# An up-to-date version of this script may be available at https://github.com/daladim/run-as-cron |