This file contains hidden or 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
from os import listdir | |
from os.path import isfile, join | |
## Set image folder path | |
dir_path = "C:/img_dir/" | |
## Store files names in folder | |
files = [f for f in listdir(dir_path) if isfile(join(dir_path, f))] | |
for file in files: |
This file contains hidden or 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 | |
# You need to install pv for it to work (sudo apt-get install pv) | |
# Don't forget to change the permissions on the file (sudo chmod +x white-rabbit.sh) | |
# Then just run ./white-rabbit.sh and enjoy | |
CURSOR="$USER@$HOSTNAME:${PWD}$" | |
echo -n $CURSOR | |
echo " Wake up, Neo..." | pv -qL 10 |