riolet / longs Goto Github PK
View Code? Open in Web Editor NEWURL Shortener built on top of WAFer
Home Page: https://lon.gs
License: GNU General Public License v2.0
URL Shortener built on top of WAFer
Home Page: https://lon.gs
License: GNU General Public License v2.0
with disabled
attribute, it's impossible to select and copy the shorten url.
changing the attribute to readonly="readonly"
works as expected.
tested with firefox 47 on win7 64
logicallee 7 hours ago
This is broken.
Here's the short url of http://news.ycombinator.com --> lon.gs/amk
Going to lon.gs/amk redirects me to an overstock.com address for a specific product.
The site doesn't appear to have been hacked, at least there's no affiliate link in the URL I was sent to. It just appears the site is broken.
reply
cyphar 3 hours ago
It looks like their "INSERT OR IGNORE" logic is broken, in that they don't properly retry if they ignored it.
reply
Retr0spectrum 7 hours ago
I noticed something similar. I think their id decoding/encoding may be buggy.
reply
To create dynamic content? Is there any example with html pages?
can't seem to build longs, getting this:
Ivo-MacBook-Pro:longs ivogeorgiev$ make
cc -W -Wall -O2 -Wno-unused-parameter -g -D NOPE_THREADS= -pthread -c -o waferapi.o waferapi.c
waferapi.c:268:14: error: use of undeclared identifier 'BUFFLEN'
char buf[BUFFLEN];
^
waferapi.c:270:45: error: use of undeclared identifier 'BUFFLEN'
ssize_t bytes_read = read(read_fd, buf, BUFFLEN);
^
waferapi.c:271:45: error: use of undeclared identifier 'cbuf'; did you mean 'buf'?
ssize_t bytes_written = write(write_fd, cbuf, bytes_read);
^~~~
I grepped everything for BUFFLEN but there's no such thing. Furthermore I googled the errors, again nothing
q3k@nihilism ~/Projects/longs $ python2 -c "print 'GET / HTTP/1.1.\r\n' + 'a'*2000 + '\r\n\r\n'" | nc 127.0.0.1 1337
q3k@nihilism ~/Projects/longs $ PORT=1337 ./longs
*** Error in `./longs': free(): invalid next size (normal): 0x000000000155a5f0 ***
It would make deployment much easier. Thx
What api endpoints are supported? Can you define the base domain and change from lon.gs?
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.