Browse Source

Add some scripts

Matteo Savatteri 3 years ago
parent
commit
a01a2f2abf
3 changed files with 17 additions and 0 deletions
  1. 5 0
      scripts/clear.sh
  2. 7 0
      scripts/genpass.sh
  3. 5 0
      scripts/hello.sh

+ 5 - 0
scripts/clear.sh

@@ -0,0 +1,5 @@
+#!/bin/bash
+
+# Clear screen on some terminals
+
+echo -e '\e[H\e[2J'

+ 7 - 0
scripts/genpass.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Generate a strong password
+
+strings /dev/urandom | \
+tr -d '\n\t ' | \
+head -c 16 && echo

+ 5 - 0
scripts/hello.sh

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Say hello to the world
+
+echo "Hello, World"