From a9e6dadf3a9ade7204e803e14dd7c7bac2aecef9 Mon Sep 17 00:00:00 2001 From: pks Date: Tue, 10 Nov 2020 12:23:22 +0100 Subject: spoof-mac --- spoof-mac | 3 +++ spoof-mac.sh | 4 ---- temp.sh | 7 ------- 3 files changed, 3 insertions(+), 11 deletions(-) create mode 100755 spoof-mac delete mode 100755 spoof-mac.sh delete mode 100755 temp.sh diff --git a/spoof-mac b/spoof-mac new file mode 100755 index 0000000..722efb5 --- /dev/null +++ b/spoof-mac @@ -0,0 +1,3 @@ +#!/bin/sh + +openssl rand -hex 6 | sed 's/(..)/1:/g; s/.$//' | xargs sudo ifconfig $1 ether diff --git a/spoof-mac.sh b/spoof-mac.sh deleted file mode 100755 index 40f89b4..0000000 --- a/spoof-mac.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -openssl rand -hex 6 | sed 's/(..)/1:/g; s/.$//' | xargs sudo ifconfig $1 ether - diff --git a/temp.sh b/temp.sh deleted file mode 100755 index 49b8fbd..0000000 --- a/temp.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env zsh - -echo "CPU:$(sensors | grep Core | cut -d ' ' -f 10 | sed 's|°C||' | sed 's|+||' | awk '{x+=$1; next} END{printf "%3.0f\n", x/NR}')°C" -if [[ $(command -v nvidia-smi) == 0 ]]; then - echo "GPU: $(nvidia-smi | head -9 | tail -1 | cut -d " " -f 5 | sed 's|C||')°C" -fi - -- cgit v1.2.3