News for hackers. Stuff that matters.

ryencoke

Re:Build a Container Image from Scratch on Thursday March 20, 2025 @09:34PM (#43431016)
If you want to add in another bash trick called Parameter Expansion[0] you can parse out the filename automatically with the special variable $_. Something like:

  > wget https://dl-cdn.alpinelinux.org/alpine/v3.18/releases/x86_64/alpine-minirootfs-3.18.4-x86_64.tar.gz && tar xzf ${_##*/}
[0] https://www.gnu.org/software/bash/manual/html_node/Shell-Par...
Re:Mitigating a DDoS on Mastodon on Friday December 06, 2019 @08:07AM (#21721432)
Another option since you already have OSSEC running.. Create a script for OSSEC that interacts with the cloudflare api to block the flooding IPs. This way the flood doesn't get to your server.
You don't have to restart your phone. On Android you can close the app from the recent app list.