ngerakines / commitment Goto Github PK
View Code? Open in Web Editor NEWA commit message generator that I use.
Home Page: http://whatthecommit.com/
License: MIT License
A commit message generator that I use.
Home Page: http://whatthecommit.com/
License: MIT License
I want to add to my website from the offical site not from my js file.
BTW: CROS
I use the whatthecommit site for my own Discord bot.
When I first connected to the site, it defaulted to HTTP, so I thought it wouldn't have HTTPS available.
However, this caused my bot to throw UnknownHostExceptions at random moments, when connecting to the site, to receive a random commit,
I later found out (Just now to be more exact) that the site actually offers HTTPS connections and using that seems to have solved my issue.
Since connections don't default to HTTPS, I would suggest to actually make it move to HTTPS when connecting over HTTP since this is A) Saver in general, B) More trustworthy and C) most likely prevents issues as I had.
I would also recommend to show and use the default HTTPS link in the readme.
If there are any reasons, why the site shouldn't default to HTTPS I would be glad to know those.
I'm sorry when this was the wrong place for those suggestions, but I didn't find any better place.
@ngerakines Seems like the site is not working, I only see the "Welcome to nginx" message?
This makes a decent prank. By sticking something like:
curl -s https://raw.github.com/ngerakines/commitment/master/commit_messages.txt | shuf -n1 > "$1" | sed s/XUPPERNAMEX/PERSONSNAME/g
in the .git/hooks/commit-msg
hook file and making it executable. Maybe add a commit-msg.sample
file to the repo w/ something like this? It can be made more cross platform by using sort -R | head -n1
or similar instead of GNU shuf.
Cannot request messages from a frontend unless it has CORS enabled :)
easier to share specific messages and can drive more traffic to the site.
Not sure if you're mirroring the site but its index file points to humans.txt in a meta but the file is 404ing..
robots.txt turns out as a 0 byte file as expected however.
http://www.isitdownrightnow.com/whatthecommit.com.html
also cant acces the site saying:
whatthecommit.com’s server IP address could not be found.
DNS_PROBE_FINISHED_NXDOMAIN
git commit -m $(curl -s https://raw.githubusercontent.com/ngerakines/commitment/master/commit_messages.txt -o /tmp/commit_msg | tail -n $[$RANDOM % `wc -l /tmp/commit_msg | tr -d "[:alpha:][:blank:][:punct:]"`] /tmp/commit_msg | head -1)
I pull messages from whatthecommit.com all the time in scripts meant to sync my private git repos, because I’m the only one who will see those commits and this makes them freaking hilarious. I’m wondering if the code to generate them could be run locally, without using the Tornado web application server (or whatever it is). I’m sure this would save on your bandwidth 😅
(cuz I'm too lazy to fork)
Somebody forgot to pay the domain name yearly subscription 🥁
Hi
THank you for the project is great and a lot of us using it ( obviously)
Would you consider having a separate /index.txt with non-explicit commits ?
index.html source points the authors metadata to /humans.txt. However, it looks to be live at /static/humans.txt
I execute print "$(curl -s http://whatthecommit.com/index.txt)"
without returning any results. I try open http://whatthecommit.com/index.txt in browser then the requested URL could not be retrieved
.
Looking through the file of the commits, I don't see many/any of my favorite variety: random keystrokes.
For instance:
asdf
l;sdkfj
as;dfj
pwoeir
eruip
poiewur
Adding a LICENSE file to your repo on github will add a License link on the project info bar. This is helpful when people are searching for projects with a specific license.
Intermediate commit
Adding stuff
Adding more stuff
Add metadata in head for permalinks so colleagues don't have to leave their supported application
At the "License" section the copyright is 2010.
Would you consider recommending my VSCode extension on your repo?
https://marketplace.visualstudio.com/items?itemName=JohnStilia.yolocommit
How is this a generator if all the messages are hard-coded? I'm having a bit of trouble understanding..
git uses SHA1 hashes for content. It would be nice if we could request contents based on those hashes (or other content, really) in a deterministic way.
Because the hashes used by commitment are generated based on message content, what would be needed is an inexpensive deterministic way to map from the set of all strings to the set of MD5 hashes used by this project.
A deterministic, time-bounded way to do this would be by initializing a random number generator with the numeric representation of the SHA1 / MD5 hash, then sampling from messages
with that RNG. Given that it'd always be seeded in the same way, this would be deterministic and O(1). Since we don't need crypto-level hash guarantees, this ought to be sufficient.
The request would look like:
GET http://whatthecommit.com/[index.txt]?content-hash=md5sum
with responses the same as they are presently.
Thoughts on adding this? I'm going to look into submitting a PR to do this this weekend.
It's clear from the commit log for this repository that the commitment
commit-message generator was not used to produce commit messages for this
project's development. (This is most noticeable in the fact that the commit
messages actually mention the project they are for.)
The practice of dogfooding encourages software to improve as well as provide it
with valuable field testing, and this application seems a prime candidate.
Therefore, I recommend that all future commits to this project are given a
commit message through commitment
, using:
-m "`curl -s http://whatthecommit.com/index.txt`"
Add a route to get a random commit message in text, allowing to make
git commit -a -m "`curl -s http://whatthecommit.com/`"
➜ ~ curl https://whatthecommit.com/index.txt -v
* Trying 3.13.11.91:443...
* Connected to whatthecommit.com (3.13.11.91) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=whatthecommit.com
* start date: Apr 10 09:55:08 2023 GMT
* expire date: Jul 9 09:55:07 2023 GMT
* subjectAltName: host "whatthecommit.com" matched cert's "whatthecommit.com"
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* Using Stream ID: 1 (easy handle 0x55aea7724e90)
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET /index.txt HTTP/2
> Host: whatthecommit.com
> user-agent: curl/7.81.0
> accept: */*
>
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 504
< server: awselb/2.0
< date: Wed, 28 Jun 2023 15:17:02 GMT
< content-type: text/html
< content-length: 132
<
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>
Same seems to be the case with your website and Mastodon, so maybe related?
There isn't much context for this site; What is this? Where are these messages from, are they on github?
When I use the command curl -s https://whatthecommit.com/index.txt
, it return 403 Forbidden
.
And this also occurs when accessing the site with a browser. Both http
and https
.
this is the return context:
<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
</body>
</html>
So thanks guys.. I have used this service for my company to submit code. Now and forever there will be "Shit code" as one of my commits.
I like the random commits that are snarky and funny. Could we have a clean version.. so I can keep my job and continue shitposting?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.