Browse Source

modified: README.md

modified:   do-give
	modified:   do-hashcheck
	new file:   do-spinwheel
	new file:   package.json
master
Derek Olsen 11 months ago
parent
commit
082721cfe1
  1. 16
      README.md
  2. 21
      do-give
  3. 22
      do-hashcheck
  4. 27
      do-spinwheel
  5. 19
      package.json

16
README.md

@ -2,19 +2,23 @@
Small "do-scripts" for doing things
## do-hashcheck:
## do-hashcheck
Shell script for quickly checking hashes with ez-copypasta support.
./do-hashcheck [file] (trusted checksum)
> Currently supports invoking md5sum, sha1sum, sha256sum, and sha512sum.
>
> > Note: This is a Quality-of-Life frontend script, not a hashing algorithm,
> > and it is not a substitute for proper security!
Currently supports invoking md5sum, sha1sum, sha256sum, and sha512sum.
Note: This is a Quality-of-Life frontend script, not a hashing algorithm,
and it is not a substitute for proper security!
## do-give
Combines "git add ." "git commit" and "git push" into one command
./do-give
./do-give
## do-spinwheel
./do-spinwheel [interval:s] (command)

21
do-give

@ -1,8 +1,23 @@
#!/bin/bash
#!/bin/sh
##########################################################################
# Copyright (C) 2021 Derek Olsen <orpheusui@protonmail.com> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
##########################################################################
# Derek Olsen <orpheusui@protonmail.com>
#
# Usage:
#
# ./do-give
#
# Make sure your git config settings make sense before running this

22
do-hashcheck

@ -1,7 +1,21 @@
#!/bin/bash
#!/bin/sh
##########################################################################
# Copyright (C) 2021 Derek Olsen <orpheusui@protonmail.com> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
##########################################################################
# Derek Olsen <orpheusui@protonmail.com>
#
# Usage:
# ./do-hashcheck [file] (trusted checksum)
#
@ -11,7 +25,6 @@
# and it is not a substitute for proper security!
c=32
i=c-32
GO="echo -e \e[$((c))m"
STOP="echo -e \e[$((c+9))m"
@ -65,6 +78,7 @@ HASH=${HASH:0:${#PREHASH}}
# Test
i=c-32
[[ $PREHASH != $HASH ]] && ((i=i-1))
# Output

27
do-spinwheel

@ -0,0 +1,27 @@
#!/bin/sh
##########################################################################
# Copyright (C) 2021 Derek Olsen <orpheusui@protonmail.com> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see <https://www.gnu.org/licenses/>. #
##########################################################################
# Usage:
# ./do-spinwheel [interval:s] (command)
#
# "You spin me right round baby--right round like a record, baby"
while true; do
$2
sleep $1
done

19
package.json

@ -0,0 +1,19 @@
{
"name": "do-utils",
"description": "Small 'do-scripts' for doing things",
"version": "0.1.0",
"license": "GPL-3.0-only or GPL-3.0-or-later",
"keywords": ["bash", "sh", "zsh", "fish"],
"author": "Derek Olsen <orpheusui@users.noreply.github.com>",
"engines": {
"sh": ">=5.1"
},
"main": "index",
"bin": {
"command": "./do-spinwheel"
},
"repository": {
"type": "git",
"https://git.andrewzah.com/dolsen/do.git
},
}
Loading…
Cancel
Save