Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)T
Posts
1
Comments
34
Joined
2 yr. ago

  • Wow he really reminds me of someone

  • You can

    You can also assume you are compromised and use a solution like a Faraday cage. If you're trying to detect advanced spyware, it might be better to check network activity from outside the device like what network activity is the router managing for the computer.

  • The traffic seems well ranked still. Maybe concerns of algorithmic censorship? As an example, X.com now promotes posts from premium users, and then has an extra promotion mode for premium+ users. (Normal users are now much less visible than premium users)

  • Do you use any extensions? I hated Gnome when I first started using Linux but now I prefer it over alternatives.

  • I don’t know what these people are doing who seem to claim it’s wonderful. Every single time I have tried to use one, it’s been completely clueless about the problem and wastes my time producing slop. I almost want to keep my code closed source because of how awful it is at generating anything. Maybe they’re just doing very simple web design or something, I don’t know

    I even have started to hate Google and felt like their search engine is becoming very bad. Yandex has been returning more results and Google feels censored and replaced by generative AI answers.

  • Btw

    Jump
  • My reaction was this guy is a Microsoft plant, there’s no way someone running arch isn’t using VSCodium if they liked VSCode

  • Sometimes it's specific to the application. As an example, yt-dlp is redistributed by Canonical, and they usually maintain stable packages, but their versions seem to lag like 6 months. This might be related to their desire for stability, or maybe just align to their release cycle. I don't know.

    The issue is that yt-dlp needs to be updated more frequently because websites break their methods of downloading, so the version that follows the latest version seems to work better.

    I don't think using PPA's is usually recommended, (like in the photo) so I think I would recommend flatpaks first if the developer of the application maintains one themselves. (and you want to follow later releases.) Though, the first time I had to use flatseal to fix an application, I felt like flathub was a failed platform.

  • The 580 drivers might just be the default for nvidia. I have two computers with nvidia GPUs that are like 10 years apart in age, but both look like they're running 580 drivers.

    I don't really know what's wrong with the networking though. Maybe try updating from terminal if you haven't? sudo apt update && sudo apt upgrade

  • Deleted

    Permanently Deleted

    Jump
  • I have bindings on super + period and super + comma for an emoji flatpak. Usually at least one of them works. This is the flatpak I use. I still have to press ctrl + v afterwards, so the experience isn't perfect.

  • I didn't realize it at first, but Pornhub has also been requesting device based age verification legislation.

  • I might add one for scaling. I just don't use it as frequently as trying to meet a file size limit. The scaling is also much easier to remember

     bash
        
    ffmpeg -i  in.mp4 -vf "scale=600:-1" -an out.mp4
    
    
      

    It does get complicated though, when scaling many videos and images, I've used something like the following in the past

     bash
        
    find .  -exec ffmpeg -i {} -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1:color=black" {}.mp4 \;
    
      

    Those were the only two that showed up when I typed history | grep scale.

    It works significantly better than the one I previously posted. It's also copied from stackoverflow.

     bash
        
    bitrate="$(awk "BEGIN {print int($2 * 1024 * 1024 * 8 / $(ffprobe \
        -v error \
        -show_entries format=duration \
        -of default=noprint_wrappers=1:nokey=1 \
        "$1" \
    ) / 1000)}")k"
    ffmpeg \
        -y \
        -i "$1" \
        -c:v libx264 \
        -preset medium \
        -b:v $bitrate \
        -pass 1 \
        -an \
        -f mp4 \
        /dev/null \
    && \
    ffmpeg \
        -i "$1" \
        -c:v libx264 \
        -preset medium \
        -b:v $bitrate \
        -pass 2 \
        -an \
        "${1%.*}-$2mB.mp4"
    
      
  • The version I have was copied from stackoverflow. It doesn't work very well, it makes a rough estimate to get the video file size under the set value. As an example

     bash
        
    resize video.mp4 10
    
      

    Which then resizes the video to 10 megabytes if possible.

     bash
        
    file=$1
    target_size_mb=$2  # target size in MB
    target_size=$(( $target_size_mb * 1000 * 1000 * 8 )) # target size in bits
    length=`ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file"`
    length_round_up=$(( ${length%.*} + 1 ))
    total_bitrate=$(( $target_size / $length_round_up ))
    audio_bitrate=$(( 128 * 1000 )) # 128k bit rate
    video_bitrate=$(( $total_bitrate - $audio_bitrate ))
    ffmpeg -i "$file" -b:v $video_bitrate -maxrate:v $video_bitrate -bufsize:v $(( $target_size / 20 )) -b:a $audio_bitrate "${file}-${target_size_mb}mb.mp4"
    
      

    I'll probably replace it eventually.

  • What does your ~/.bashrc look like? My last change was modifying a playlist command

     bash
        
    playlist https://www.youtube.com/@YouTube/videos
    
    
      

    or

     bash
        
    playlist /home/username/Videos
    
    
      

    or just from any directory with files

     bash
        
    playlist
    
      

    And then takes all the videos found at the url or at the path (including within folders), adds them to a playlist, shuffles them, and plays them from mpv.

     bash
        
    playlist() {
            param=""
    
            # If the first parameter has a length more than 1 character
            if [ ${#1} -gt 1 ]; then
                    param="${@}"
            else
                    param="."
            fi
    
            screen mpv $param --shuffle --ytdl-raw-options-add=cookies-from-browser=firefox --loop-playlist=inf --no-keepaspect-window --no-auto-window-resize
    }
    
      
     bash
        
    alias code=codium
    alias files=nautilus
    alias explorer=nautilus
    alias rust="/path/to/.cargo/bin/evcxr"
    alias sniffnet="export ICED_BACKEND=tiny-skia; /path/to/.cargo/bin/sniffnet"
    alias http-server='/path/to/.cargo/bin/miniserve'
    alias iphone='uxplay'
    alias airplay='uxplay'
    alias watch='screen mpv --ytdl-raw-options-add=remote-components=ejs:github --ytdl-raw-options-add=cookies-from-browser=firefox --no-keepaspect-window '
    alias twitch='watch'
    alias timeshift-launcher="pkexec env WAYLAND_DISPLAY='$WAYLAND_DISPLAY' XDG_RUNTIME_DIR='$XDG_RUNTIME_DIR' /usr/bin/timeshift-launcher"
    alias update="sudo apt update && sudo apt upgrade -y && sudo flatpak update -y && sudo snap refresh"
    alias resize="path/to/resize/videos/resize.sh"
    
    playlist() {
            param=""
    
            # If the first parameter has a length more than 1 character
            if [ ${#1} -gt 1 ]; then
                    param="${@}"
            else
                    param="."
            fi
    
            screen mpv $param --shuffle --ytdl-raw-options-add=cookies-from-browser=firefox --loop-playlist=inf --no-keepaspect-window --no-auto-window-resize
    }
    
    gif() { ffmpeg -i $1 -f yuv4mpegpipe - | gifski -o $2 ${@:3} -;}
    
      

  • After thinking about it for a moment, if you don't want to pay for a VPS, I think you can run a hidden service with Tor then just use the onion address to ssh back into the computer. I found this guide. I haven't done it, but it seems like it should work.

  • I just use autossh for it.

    I run an ssh connection to a VPS I pay like $5, which forwards a port there. The screen in the following command isn't required, but I have it so I don't have to keep the terminal window open.

     shell
        
    screen -d -m -S autossh.eastusa.keepalive autossh -M 33333 -R VPS_IP_HERE:5555:localhost:22 root@VPS_IP_HERE
    
      

    Then from other computers, to connect back

     shell
        
    ssh -L 5555:localhost:5555 root@VPS_IP_HERE
    ssh root@localhost -p 5555
    
      

    For remote computers connecting back, the first ssh connects to the VPS and forwards a port to the remote computer. Then the 2nd ssh connection uses the forwarded port to complete the ssh connection to the computer behind the IP that can't port forward.

  • ThinkPad @lemmy.ml

    Is there a better budget device for $230?