-
Notifications
You must be signed in to change notification settings - Fork 21
Some minor modifications #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ghuter
wants to merge
14
commits into
BrodieRobertson:master
Choose a base branch
from
ghuter:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
de53599
Some minor modifications
edfa478
Update screenshot
ghuter 75b2e68
Update comp
ghuter 5dbd9c9
Update cpdragon
ghuter ff314bf
Update dlfile
ghuter 5fce3e2
Update extramonitor
ghuter 6d0b8cb
Update mkscript
ghuter ff5ea5c
Update mntandroid
ghuter 39b79be
Update mvdragon
ghuter a2a6cd9
Update opout
ghuter a495e67
Update prompt
ghuter 5e0cecc
Update pyshell
ghuter b7ee797
Update sch
ghuter c017c8b
Update sch
ghuter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/sh | ||
files=$(dragon-drag-and-drop -t -x) | ||
|
||
for file in $files | ||
do | ||
path=${file#file://} | ||
name=$(basename "$path") | ||
cp "$path" "$(pwd)/$name" | ||
done | ||
while IFS= read line; do | ||
path=${line##file://} | ||
name=${path##*/} | ||
cp "$path" "$name" | ||
done << EOF | ||
$(dragon-drag-and-drop -t -x) | ||
EOF |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
# Script to generate a templte react class | ||
printf "import React from \"react\";\n\nconst $1 = () => {\n\treturn <div></div>;\n};\n\nexport default $1;" > $(pwd)/$2/$1.js | ||
printf "import React from \"react\";\n\nconst $1 = () => {\n\treturn <div></div>;\n};\n\nexport default $1;" > "$2/$1.js" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
#!/bin/sh | ||
# Provides the ability to download a file by dropping it into a window | ||
|
||
url=$(dragon-drag-and-drop -t -x) | ||
url="$(dragon-drag-and-drop -t -x)" | ||
|
||
if [ -n "$url" ]; then | ||
printf "File Name: " | ||
name="" | ||
while [ -z $name ] || [ -e $name ] | ||
do | ||
[ -n "$url" ] || exit 1 | ||
|
||
name="" | ||
while [ -z "$name" ] || [ -e "$name" ] | ||
do | ||
printf "File Name: " | ||
read -r name | ||
if [ -e "$name" ]; then | ||
printf "File already exists, overwrite (y|n): " | ||
read -r ans | ||
|
||
if [ "$ans" = "y" ]; then | ||
break | ||
else | ||
printf "File Name: " | ||
fi | ||
printf "File already exists, overwrite (y|n): " | ||
read -r ans | ||
[ "$ans" = "y" ] && break | ||
fi | ||
done | ||
|
||
# Download the file with curl | ||
[ -n "$name" ] && curl -o "$name" "$url" || exit 1 | ||
else | ||
exit 1 | ||
fi | ||
done | ||
|
||
# Download the file with curl | ||
[ -n "$name" ] && curl -s -o "$name" "$url" || exit 1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
# Performs HTML encoding on a string for special characters up to ASCII | ||
|
||
echo "$1" | sed 's/%/%25/g;s/\s/%20/g;s/!/%21/g;s/"/%22/g;s/#/%22/g;s/\$/%24/g;s/&/%26/g;s/\x27/%27/g;s/)/%29/g;s/(/%28/g;s/\*/%2A/g;s/\+/%2B/g;s/,/%2C/g;s/-/%2D/g;s/\./%2E/g;s/\//%2F/g;s/:/%3A/g;s/;/%3B/g;s/</%3C/g;s/=/%3D/g;s/>/%3E/g;s/\?/%3F/g;s/@/%40/g;s/]/%5D/g;s/\\/%5C/g;s/\[/%5B/g;s/\^/%5E/g;s/_/%5F/g;s/`/%60/g;s/}/%7D/g;s/|/%7C/g;s/{/%7B/g;s/~/%7E/g' | ||
sed 's/%/%25/g;s/\s/%20/g;s/!/%21/g;s/"/%22/g;s/#/%22/g;s/\$/%24/g;s/&/%26/g;s/\x27/%27/g;s/)/%29/g;s/(/%28/g;s/\*/%2A/g;s/\+/%2B/g;s/,/%2C/g;s/-/%2D/g;s/\./%2E/g;s/\//%2F/g;s/:/%3A/g;s/;/%3B/g;s/</%3C/g;s/=/%3D/g;s/>/%3E/g;s/\?/%3F/g;s/@/%40/g;s/]/%5D/g;s/\\/%5C/g;s/\[/%5B/g;s/\^/%5E/g;s/_/%5F/g;s/`/%60/g;s/}/%7D/g;s/|/%7C/g;s/{/%7B/g;s/~/%7E/g' |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
#!/bin/sh | ||
# Simple script to generate a script file in my scripts directory | ||
|
||
printf "File Name: " | ||
|
||
# Set a name for the script | ||
ans= | ||
while [ -z "$ans" ]; | ||
do | ||
read -r ans | ||
|
||
if [ -z "$ans" ]; then | ||
printf "File Name: " | ||
fi | ||
read -r ans | ||
done | ||
|
||
file=$HOME/scripts/$ans | ||
|
||
if [ -d "$HOME/scripts" ]; then | ||
if [ -e "$HOME/scripts/$ans" ]; then | ||
[ -d "$HOME/scripts" ] && exit | ||
if [ -e "$HOME/scripts/$ans" ]; then | ||
$EDITOR "$file" | ||
else | ||
echo "#!/bin/sh" >> "$file" | ||
else | ||
echo '#!/bin/sh' >> "$file" | ||
ghuter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
chmod +x "$file" | ||
$EDITOR "$file" | ||
fi | ||
fi |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/bin/sh | ||
|
||
files=$(dragon-drag-and-drop -t -x) | ||
|
||
for file in $files | ||
do | ||
path=${file#file://} | ||
name=$(basename "$path") | ||
mv "$path" "$(pwd)/$name" | ||
done | ||
while IFS= read line; do | ||
path=${line##file://} | ||
name=${path##*/} | ||
mv "$path" "$name" | ||
ghuter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
done << EOF | ||
$(dragon-drag-and-drop -t -x) | ||
EOF |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
#!/bin/sh | ||
echo "" | dmenu -i -p "Python" | xargs -0 -I % python -c "import random;print(%)" | xargs -I % notify-send "Result" "%" | ||
notify-send 'Result' \ | ||
"$(printf '' | dmenu -p 'Python' | xargs -I % python -c "import random; print(%)")" |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
# Renames a file by stripping out the spaces | ||
newname=$(echo "$1" | sed 's/ /-/g') | ||
newname="$(printf "$1" | tr ' ' '-')" | ||
mv "$1" "$newname" |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.