Commit Graph
4339 Commits
Author SHA1 Message Date
Cody Boone Ferguson 3cf98e2d48 Add .swp[a-z] to /.gitignore 2024-01-28 09:00:07 -08:00
Cody Boone Ferguson 18b1a10d16 Fix make clobber in 2018/burton1
When scripthd was renamed to scripthd.sh the DATA field should have been
updated to have scripthd.sh. Also make clobber should remove scripthd
(but not scripthd.sh).

Updated .gitignore.
2024-01-28 08:58:12 -08:00
Cody Boone Ferguson 6641c43fb9 Fix make clobber in 2015/yang + update .gitignore
Remove output and output.c.
2024-01-28 08:54:25 -08:00
Cody Boone Ferguson b7683b6f6e Fix make clobber in 2013/endoh3
Have to remove *.wav files. This is important for updating the manifest
if the program was run and generated wav files (because the other tools
were not found).
2024-01-28 08:51:38 -08:00
Cody Boone Ferguson 33913e5e87 Fix make clobber in 1998/schweikh3
Needs to remove samefile.alt.

Updated .gitignore too.
2024-01-28 08:27:48 -08:00
Cody Boone Ferguson dcd12a4d08 Typo fix in bin/all-run.sh 2024-01-27 11:55:46 -08:00
Cody Boone Ferguson 0120eac02b Add 2013/hou/try.sh 2024-01-27 11:35:00 -08:00
Cody Boone Ferguson d4783f02e7 Add 2013/morgan1/try.sh 2024-01-27 11:16:09 -08:00
Cody Boone Ferguson b156b37ef0 Improve 2013/misaka/try.sh 2024-01-27 11:08:31 -08:00
Cody Boone Ferguson d8fa53cc29 Improvements to build and script of 2013/endoh4
The Makefile was modified in such a way that allows one to easily
redefine the size (in the code the S macro). For instance:

    make clobber SIZE=50,50 all

The try.sh was renamed to endoh4.sh as it's more of a wrapper to the
program rather than things to try. Also it now lets one specify more
than one file to feed to the program (in sequence).

The bugs.md was updated - added INABIAF. If the file format is invalid
it will very likely crash.
2024-01-27 10:52:18 -08:00
Cody Boone Ferguson 6f20a57493 Add 2013/endoh3/try.sh
The script checks for SoX, padsp and otherwise ruby. It allows one to
pass in args: each one is first checked to be a readable file and if
it is it'll be processed as a file; otherwise it'll be processed as a
string. If no arg is specified it runs the program on twinkle.abc and
the strings ABC and CDEFGABc (the latter suggested by the author).

If none of the three tools noted above are installed it tells the user
to install one of them first. I was not able to test the padsp(1) one
but the invocation matches the author's remarks. /dev/dsp seems to not
be installed in modern linux systems so it would be useful to have
padsp(1) if not SoX (which is preferable in general for entries that
play sound). The ruby script wavify.rb provided by the author is the
last resort which turns the output to a WAV file.
2024-01-27 10:29:47 -08:00
Cody Boone Ferguson e60815bdb3 Improve try section of 2013/endoh2
Don't cat jpeg.c as it's longer than a page. Use less(1) instead.
2024-01-27 08:55:51 -08:00
Landon Curt Noll 1b0913eb70 Merge pull request #2063 from xexyl/manifest 2024-01-27 05:57:46 -08:00
Cody Boone Ferguson b06023f330 update index.html and .winner.json per recent manifest changes 2024-01-27 04:44:32 -08:00
Cody Boone Ferguson c4477a67d8 update .winner.json files per recent manifest changes 2024-01-27 04:42:39 -08:00
Cody Boone Ferguson 0e7b2a88ca update manifest as per recent file changes 2024-01-27 04:34:59 -08:00
Landon Curt Noll a7ee2bc76a Merge pull request #2062 from xexyl/endoh113-try 2024-01-26 13:06:40 -08:00
Cody Boone Ferguson 7cd46f8e53 Improve 2013/endoh1/try.sh 2024-01-26 11:33:18 -08:00
Cody Boone Ferguson 1adcbf82eb Improve scripts of 2013/dlowe
The try.sh script cannot be modified to prompt the user to run commands
as the other scripts (or at least one, diff.sh) make use of tail(1) on
the output. The script diff.sh however can have that and it has been
done.

Minor fixes in display in slflen.sh.
2024-01-26 11:28:56 -08:00
Cody Boone Ferguson 3319013864 Rename 2013/runme to cable3.sh
This is to be consistent with other entries that have wrapper scripts
for the entry which are named winner.sh.
2024-01-26 11:22:46 -08:00
Cody Boone Ferguson 3419e33e97 Improve 2013/cable2/try.sh 2024-01-26 11:18:30 -08:00
Cody Boone Ferguson 34c8958ac2 Improve 2013/birken/try scripts 2024-01-26 11:15:14 -08:00
Cody Boone Ferguson 479601899b Bug fix 2012/vik/try.sh
The additional commands I added cannot come first because the program
(as the bugs.md states and now more clearly) will likely crash (and does
in all the systems I tested) if the file does not exist. This did not
show itself the first time because the files already existed but running
make clobber before the script would remove the image files and thus a
crash (or actually two) would occur the first time the script was run
(second time it would be fine as the files it uses then exist).
2024-01-26 11:09:51 -08:00
Cody Boone Ferguson 6f4167373f Improve and shellcheck fix 2012/tromp/try.sh
As for the shellcheck warning could be fixed (missing '\' before a '"')
and the useless cat ones had the rationale updated (it's what the author
used so it's easier to verify it's okay though I still say - and so does
the script - that there's no such thing as a useless cat) and the format
of what warning is disabled (URL included).
2024-01-26 10:55:13 -08:00
Cody Boone Ferguson 86ee07db36 Improve 2012/omoikane/try scripts 2024-01-26 10:42:14 -08:00
Cody Boone Ferguson bf98cc9052 Improve 2012/konno/try.sh
Now randomly selects 10 numbers (in range $((RANDOM % 101))).

Also allows one to pass in numbers (or if they wish to they can pass in
non-numbers) to pass to the program.

The script has new fun numbers.

Removed that the valid range is from 0 - 255 as numbers bigger than 255
not only work but some show some fun output (a number of which are used
in the script now).
2024-01-26 10:32:17 -08:00
Cody Boone Ferguson 69ee0b8de6 Improve scripts (and add one) of 2012/kang
The try.alt.sh uses the alt code. This helps further show how a single
letter can change so much and thus one can really appreciate the
subtlety of the entry even more. The other scripts were improved.
2024-01-26 09:47:01 -08:00
Cody Boone Ferguson 75634c62bb Improve 2012/hou/try.sh 2024-01-26 09:24:33 -08:00
Cody Boone Ferguson e7092d77f0 Improve 2012/hamano/try.sh + add helper make rules
The Makefile rules added:

    hint.pdf
    hint

    hello.pdf
    hello

The hint rules generate the hint.pdf (which is the README.md file
obfuscated in a pdf) by feeding the program README.md and then it
compiles hint.pdf as C code. Running it will print the README.md file!

The hello rules generate hello.pdf which is (inside the pdf) an
obfuscated 'Hello World!' program. This is done by a simple echo piped o
the program which redirects it to hello.pdf. Then hello.pdf will be
compiled as C code which when run (as ./hello2) will print 'Hello
World!'.

The script now uses these rules to do what was once done manually. These
rules are .PHONY rules as otherwise they might not always run.

The clobber rule now removes these files.
2024-01-26 09:14:52 -08:00
Landon Curt Noll c299a5c8e5 Merge pull request #2050 from xexyl/grothe2012-try
Improve 2012/grothe/try.sh + other minor fixes
2024-01-25 10:21:27 -08:00
Cody Boone Ferguson b8713331b2 Improve 2012/grothe/try.sh + other minor fixes
The try section in the README.md file did not refer to the script.

The URL in the cookie recipe file was updated to refer to the domain
that the old one redirects to just in case the old one ever expires or
no longer redirects to the more recent domain. The thanks file notes
this for reference as an aside for context and historical purposes,
noting both URLs.
2024-01-25 10:17:49 -08:00
Cody Boone Ferguson 996f716fe1 Improve 2012/endoh1/try.sh 2024-01-25 10:06:05 -08:00
Cody Boone Ferguson ad703d3188 Improve and add 2012/endoh1 try scripts
The new try.sh and try.bw.sh scripts run the program on one file (passed
to the script) in colour and without colour respectively. One file
because one has to terminate the program.

The new try.alt.bw.sh is like try.alt.sh but uses the black and white
(original submitted entry) version.

The scripts for the alt code allow one to set the different variables
that can be redefined. The use is the same variable names as in the
Makefile. For instance:

   TIMER=5 SLEEP=5000 GRAVITY=I VISCOSITY=4 PRESSURE=1 ./try.alt.sh
   TIMER=5 SLEEP=5000 GRAVITY=I VISCOSITY=4 PRESSURE=1 ./try.bw.alt.sh

for the gravity 'I' and:

   TIMER=5 SLEEP=5000 GRAVITY=N VISCOSITY=4 PRESSURE=1 ./try.alt.sh
   TIMER=5 SLEEP=5000 GRAVITY=N VISCOSITY=4 PRESSURE=1 ./try.bw.alt.sh

where 'N' is some number. Obviously the other values can have different
values than given above. Some of these values are protected against in
code (to an extent - if the user wants to set them to strings that's on
them) but not all are and the scripts do not try and check for the user
either.

The endoh1.alt.c file was changed in that one can now define SLEEP (S in
the code) to 0 like the original, should they want to see the original
but with other values specified. That will make it flash much more
quickly which can be a problem of course but that's up to each user.
2024-01-25 09:30:33 -08:00
Cody Boone Ferguson d70996ef22 Fix yank paste error in 1986/bright/try.sh 2024-01-25 05:45:48 -08:00
Cody Boone Ferguson 0c5bf61c7e Improve 2012/deckmyn/try.sh
Improve less(1) options so that the screen is not cleared (to keep the
source visible after it's seen) and to exit at EOF.

Try converting image files to png files. If this fails then as long as
pbm files exist it will print those (telling the user to open them in
their graphics viewer of choice). Otherwise if png files exist it lists
the png files (with the same message). If no png and no pbm files exist
it warns them that something went wrong and they are free to fix and
open a pull request. This handling of convert(1) checks should probably
be done in other scripts where I neglected to do this (it's entirely
possible though unlikely that a convert program exists that returns
success but does not do what we expect).

Updated .gitignore.
2024-01-25 05:40:39 -08:00
Cody Boone Ferguson fdd053a89f Further improvements to 2012/blakely/try.sh
The script now has quotes surrounding commands with '*'s in it and the
messages (of which some were added - only one existed before) were
improved when it comes to giving a warning that the next command might
take a bit of time. There are different messages depending on how slow
the commands are though this obviously cannot be even close to perfect.

Updated .gitignore.
2024-01-25 05:12:12 -08:00
Cody Boone Ferguson 7f65e208ca Improve 2012/blakely/try.sh 2024-01-25 05:03:02 -08:00
Landon Curt Noll ce067a5d85 Merge pull request #2044 from xexyl/endoh22012-try
Typo fix (comment) in 2012/endoh2/try.sh
2024-01-24 15:33:39 -08:00
Cody Boone Ferguson 7ba076ee33 Typo fix (comment) in 2012/endoh2/try.sh 2024-01-24 11:09:37 -08:00
Cody Boone Ferguson 4a330a4839 Typo fix (comment) in 2012/grothe/try.sh 2024-01-24 11:08:42 -08:00
Cody Boone Ferguson e6565d9d4f Fix scripts in 2020/ferguson1 for shellcheck 2024-01-24 10:04:28 -08:00
Cody Boone Ferguson 6739c0168a Typo fix in FAQ 2024-01-24 09:50:39 -08:00
Landon Curt Noll 825d88c169 Merge pull request #2040 from xexyl/vik2011-try 2024-01-24 09:36:14 -08:00
Cody Boone Ferguson c4aa389568 Add 2011/vik/try.sh
The script will check that mplayer(1) is installed. If it is it will
pipe vik to mplayer. In that case it will still use the raw2wav program
just in case something goes wrong (or for some reason mplayer is not
what is expected). If mplayer cannot be found or is not a regular
executable file then it will just use raw2wav. The raw2wav function in
the script tells you the name of the converted file. In the case that
mplayer cannot be found the script also suggests that you play the WAV
files with a program that can play WAV files.
2024-01-24 09:10:43 -08:00
Landon Curt Noll 92fc8e3374 Merge pull request #2039 from xexyl/zucker11-try 2024-01-24 08:47:27 -08:00
Cody Boone Ferguson 48e7331f57 Add 2011/zucker/try.sh 2024-01-24 08:46:25 -08:00
Cody Boone Ferguson 3b0a3b12a0 Add 2011/richards try scripts
The bugs.md refers to the alt try script for testing any fix with the
Apple silicon chip. If someone gets it to work the entry could be
removed from the bugs.md file and the README.md file updated to refer to
the alternate code. As the alternate code does not work (though it has a
different type of crash) the alt build/try is not mentioned in the
README.md file. It is not clear if it's helpful or not to have it in the
README.md at this point as the important part is in bugs.md.
2024-01-24 08:32:46 -08:00
Cody Boone Ferguson 4cc95db8b0 Improve 2011/konno/try.sh 2024-01-24 08:21:21 -08:00
Cody Boone Ferguson 9c36a48fd1 Improve 2011/hou/try.sh 2024-01-24 08:16:47 -08:00
Cody Boone Ferguson 0e8139a511 Improve 2011/hamaji/try.sh 2024-01-24 08:11:40 -08:00