- Gimp to batch edit pictures in a script (I know about ImageMagick but still)
It seems to exist: https://www.gimp.org/tutorials/Basic_Batch/
Japanese Speaker. I can read/write some English but not well, so corrections are always appreciated.
プログラミングや音楽に興味があります。いまはkbinのソースやActivityPubの仕様を読んだりしています。
- Gimp to batch edit pictures in a script (I know about ImageMagick but still)
It seems to exist: https://www.gimp.org/tutorials/Basic_Batch/
Bash should be fine. On typical Bash installation I think this will work (please try to understand each command line before you actually try):
$ cp ~/.bashrc ~/.bashrc.bak
$ cp ~/.bash_history ~/.bash_history.bak
$ printf 'set +o history' >> ~/.bashrc
$ printf "sudo apt update\nsudo apt upgrade\n" > .bash_history
$ (Press Ctrl+D to logout)
For the next bash session you can refer only the two commands from the history with Up/Down/C-p/C-n.
Long ago I made such restricted shell with filtering the shell command history file then disabling command history logging. With some shell scripting, I think you can get more sophisticated version. What shell are you using? (Bash, Fish, Zsh, etc.)
The repository has Makefile so you can build the executable with make
:
$ cd /tmp
$ git clone https://git.sr.ht/~leon_plickat/lswt
$ cd lswt
$ make
$ ./lswt
$ sudo make install (optional)
I think https://git.sr.ht/~leon_plickat/lswt may work.
Some applications can’t display some Unicode strings like s̵t̵r̵o̵k̵e̵, so replacing Markdown element like ~strike~
with Unicode equivalent (s̵t̵r̵o̵k̵e̵ ) may not be a good idea if you want portability. I opened your post in text editors and noticed that neovim-qt drops s̵t̵r̵o̵k̵e̵’s combining characters (issue on Github) and just displays
stroke instead of s̵t̵r̵o̵k̵e̵; GUI Emacs with my font settings (Noto) doesn’t combine
the characters and displays s-t-r-o-k-e-
(as I said, this may depends on font settings).
Interesting. I didn’t know about Akkoma, Pleroma, and MRF. For a future reference,
I think you’re right. In CGI, web server spawns a process for each incoming request to the CGI app, so the author provide static files for visitors to reduce the overhead.
Edit: here is the repository: https://codeberg.org/seppo/seppo and written in OCaml, so the single file CGI app is a compiled binary.
Can you run the code against another instance, and curl https://lemmy.ml/api/v3/post/list
?
Updated rate limits going into effect over the coming weeks (Fri Jun 30 20:56:36 2023 UTC)
Shortly, we will begin enforcing the previously announced, updated API rate limits. Rate limits will go into effect for all apps with usage above the free limit in the coming weeks, and some changes will be noticeable over the next 24 hours.
It seems OAuth2 hasn’t implemented yet. At this time,
to get auth
value, username and password are required:
# Python
url = 'https://<instance_name>/user/login'
data = {'username_or_email': username_or_email,
'password': password}
response = requests.post(url, json=data)
json = response.json()
auth = json['jwt']
Since the endpoint recieves JSON then returns JSON, you may need to send following HTTP headers explicitly:
Content-Type: application/json
Accept: application/json
There doesn’t seem to be a way to access eg the communities tab via activitypub? Any Help?
If you’re writing client-to-server part (not server-to-server part), try curl 'https://<lemmy-instance>/api/v3/community/list?sort=Hot'
, and an API client libraries written in Python..
I guess reddit will close the current free-tier API once the new dev platform for moderators settles down.
Please note that many users of FOSS are also developers or contributors. Who wants to report a bug or send a patch if the community is worse?