cp -av /Users/jason/Documents/* /Volumes/Pegasus2\ R8/Documents/ && sudo mv -v /Users/jason/Documents /Users/jason/Documents-$(date +%Y%m%d) && sudo ln -fvs /Volumes/Pegasus2\ R8/Documents/ /Users/jason/Documents
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 | |
NC='\033[0m' # No color | |
Green='\033[0;32m' # Green | |
White='\033[0;37m' # White | |
Red='\033[0;31m' # Red | |
dldir=/dl_1 | |
mnt1=/mnt/picard_e/ | |
mnt2=/mnt/picard_f/ | |
mnt3=/mnt/picard_g/ |
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
while true ; do | |
/bin/date | |
temp=$(smartctl -a /dev/sdf |grep 194 | awk '{ print $10}') | |
echo "scale=2;9*${temp}/5+32" | bc -l | |
echo "" | |
sleep 60 | |
done | |
exit 0 |
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 | |
# --acl bucket-owner-full-control is on by default | |
SECONDS=0 | |
src=$1 # the path of the source directory | |
dest=$2 # the s3 bucket destination path | |
echo -e "Copying from ${src} to ${dest}\n" | |
for entry in "$src"/*; do | |
# getting the name of the file or directory |
I hereby claim:
- I am jfeilbach on github.
- I am argonaut (https://keybase.io/argonaut) on keybase.
- I have a public key ASDSqaQKiPfTfZNrMA2xRwqpUDaYvKmuso9DBDqK7b6lcwo
To claim this, I am signing this object:
sudo yum install nc -y && (echo -e ‘HTTP/1.1 200 OK\nAccess-Control-Allow-Origin: *\nContent-type: text/event-stream\n’ && tail -f /var/log/squid/access.log | grep 10.120.13.31| sed -u -e ‘s/^/data: /;s/$/\n/’) | nc -l 8000
new EventSource("http://${server}:8000/").onmessage = function(e) {
console.log(e.data);
};
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 | |
# Dump information, logs, and stats about Promise disk array uing the Promise Utility cli | |
date=$(date +%Y-%m-%d) | |
log=~/Documents/promise-${date}.log | |
cmd='/usr/local/bin/promiseutil -L ${log} -C' | |
syslog='hostname' | |
echo -e "\nWill write to ${log}\n" |
In /etc/default/grub
, modify:
noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier mds=off tsx=on tsx_async_abort=off mitigations=off
Then sudo update-grub
from https:// make-linux-fast-again.com/ This domain does not seem to be maintained any longer.
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
val=$(ffprobe -v error -show_entries format=bit_rate -of default=noprint_wrappers=1:nokey=1 input.mkv) | |
echo "$(($val / 1000))" kb/s |