mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-29 06:29:36 +01:00
parent
2bddcb6495
commit
00f0b6b146
7
bashrc
7
bashrc
@ -769,6 +769,13 @@ ssh-regen-host-keys () {
|
|||||||
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function erases Master Boot Record from device
|
||||||
|
# Note: this is dangerous so this function will echo the command
|
||||||
|
# instad of running it!
|
||||||
|
erase-mbr() {
|
||||||
|
echo dd if=/dev/zero of=$1 bs=512 count=2
|
||||||
|
}
|
||||||
|
|
||||||
# .custom
|
# .custom
|
||||||
if [ -f ~/.custom ]; then
|
if [ -f ~/.custom ]; then
|
||||||
source ~/.custom
|
source ~/.custom
|
||||||
|
7
zshrc
7
zshrc
@ -742,6 +742,13 @@ ssh-regen-host-keys () {
|
|||||||
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# This function erases Master Boot Record from device
|
||||||
|
# Note: this is dangerous so this function will echo the command
|
||||||
|
# instad of running it!
|
||||||
|
erase-mbr() {
|
||||||
|
echo dd if=/dev/zero of=$1 bs=512 count=2
|
||||||
|
}
|
||||||
|
|
||||||
# Source files for miscannellious modifications.
|
# Source files for miscannellious modifications.
|
||||||
|
|
||||||
# .custom
|
# .custom
|
||||||
|
Loading…
Reference in New Issue
Block a user