4137 links
741 private links
  • Doo's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
  • ► Jouer les vidéos
Links per page: 20 50 100
◄Older
page 3 / 170
Newer►
  • Note: Using mistral as an intern

    I was too lazy to write anything remotely as clean as this so I asked Kagi's integration of Mistral Large:

    Sure, here's an example of how you could create a systemd timer to automatically renice existing Google Chrome processes.

    1. First, create a new service file. You can use any text editor you like, but for this example, we'll use nano:
    sudo nano /etc/systemd/system/renice-chrome.service
    1. In the service file, add the following lines:
    [Unit]
    Description=Renice Google Chrome processes
    
    [Service]
    Type=oneshot
    ExecStart=/bin/bash -c 'for pid in $(pgrep chrome); do ionice -c3 -p $pid; renice 19 -p $pid; done'

    This service file defines a new service that runs a bash command to find all Google Chrome processes (using pgrep chrome), and then applies ionice and renice to each process.

    1. Save and close the file.

    2. Next, create a new timer file:

    sudo nano /etc/systemd/system/renice-chrome.timer
    1. In the timer file, add the following lines:
    [Unit]
    Description=Run renice-chrome.service every hour
    
    [Timer]
    OnCalendar=hourly
    Persistent=true
    
    [Install]
    WantedBy=timers.target

    This timer file defines a new timer that runs the renice-chrome.service every hour.

    1. Save and close the file.

    2. Now, enable and start the timer:

    sudo systemctl enable renice-chrome.timer
    sudo systemctl start renice-chrome.timer
    1. You can check the status of the timer with:
    sudo systemctl list-timers

    This will show you a list of all active timers, including when they're next due to run.

    Please note that this will only affect Google Chrome processes that are already running when the timer runs. If you want to also lower the priority of new Google Chrome processes as they're launched, you would need to use a different approach, such as the script I described in my previous answer.

    Also, remember to replace chrome with the correct process name if it's different on your system. You can check the process name with pgrep chrome. If it doesn't return anything, try pgrep chromium or pgrep google-chrome.

    March 18, 2024 02:18:32 PM GMT+01:00 * - permalink -
    QRCode
    - https://dooby.fr/shaare/tF_4eA
    ai ia intelligence artificielle mistral chatgpt gpt
  • thumbnail
    sjpiper145/MakerSkillTree: A repository of Maker Skill Trees and templates to make your own.

    très bon concept

    March 13, 2024 07:25:32 PM GMT+01:00 * - permalink -
    QRCode
    - https://github.com/sjpiper145/MakerSkillTree
    hacker skill tree
  • A Distributed Systems Reading List
    February 19, 2024 01:37:16 PM GMT+01:00 * - permalink -
    QRCode
    - https://ferd.ca/a-distributed-systems-reading-list.html
    système distribué
  • thumbnail
    The story of the SSH port is 22.

    Anyway, just before announcing ssh-1.0 in July 1995, I sent this e-mail to IANA:

    From ylo Mon Jul 10 11:45:48 +0300 1995 From: Tatu Ylonen ylo@cs.hut.fi
    To: Internet Assigned Numbers Authority iana@isi.edu
    Subject: request for port number
    Organization: Helsinki University of Technology, Finland
    Dear Sir, I have written a program to securely log from one machine into another over an
    insecure network. It provides major improvements in security and functionality over existing
    telnet and rlogin protocols and implementations. In particular, it prevents IP, DNS and
    outing spoofing. My plan is to distribute the software freely on the Internet and to get it
    into as wide use as possible. I would like to get a registered privileged port number for
    the software.

    The number should preferably be in the range 1-255 so that it can be used in the WKS field
    in name servers. I'll enclose the draft RFC for the protocol below. The software has been in
    local use for several months, and is ready for publication except for the port number. If
    the port number assignment can be arranged in time, I'd like to publish the software already
    this week. I am currently using port number 22 in the beta test.

    It would be great if this number could be used (it is currently shown as Unassigned in the
    lists). The service name for the software is "ssh" (for Secure Shell).

    Yours sincerely, Tatu Ylonen ylo@cs.hut.fi ... followed by protocol specification
    for ssh-1.0
    The next day, I had an e-mail from Joyce waiting in my mailbox:

    Date: Mon, 10 Jul 1995 15:35:33 -0700 From: jkrey@ISI.EDU To: ylo@cs.hut.fi Subject:
    Re: request for port number Cc: iana@ISI.EDU
    Tatu, We have assigned port number 22 to ssh, with you as the point of contact. Joyce
    There we were! SSH port was 22!!!

    February 13, 2024 11:25:02 AM GMT+01:00 * - permalink -
    QRCode
    - https://www.ssh.com/academy/ssh/port#the-story-of-getting-ssh-port-22
    ssh
  • thumbnail
    electromagnetic radiation - Why does a remote car key work when held to your head/body? - Physics Stack Exchange
    January 9, 2024 10:48:01 AM GMT+01:00 * - permalink -
    QRCode
    - https://physics.stackexchange.com/questions/101913/why-does-a-remote-car-key-work-when-held-to-your-head-body
    lol signal electromagnetic fun voiture
  • thumbnail
    Linux kernel version 6 not supported - patch available · Issue #384 · DisplayLink/evdi

    Displaylink c'est vraiment de la daube

    git clone git@github.com:DisplayLink/evdi.git
    sudo mv evdi /usr/src/evdi
    cd /usr/src
    sudo mv evdi-1.12.0 evdi-1.12.0-backup
    sudo ln -s evdi/module evdi-1.12.0
    cd evdi-1.12.0
    sudo make
    sudo make install
    December 21, 2023 09:52:20 AM GMT+01:00 * - permalink -
    QRCode
    - https://github.com/DisplayLink/evdi/issues/384#issuecomment-1301739514
    evdi displaylink dock usb
  • thumbnail
    restic backup with auto restic, autorestic and an nfs server as a remote storage

    restic.sh

    #!/bin/bash
    timeout 30 mount /home/backup/ && time autorestic --config /home/changeme/.autorestic.yml backup -a ; umount /home/backup

    restic.service

    [Unit]
    Description="Restic script"
    
    [Service]
    ExecStart=/bin/bash -c "/home/changeme/restic.sh"

    restic.timer

    [Unit]
    Description="Run restic.service 5min after boot and every 24 hours relative to activation time"
    
    [Timer]
    OnBootSec=5min
    OnUnitActiveSec=24h
    OnCalendar=Mon..Fri *-*-* 10:00:*
    Unit=restic.service
    
    [Install]
    WantedBy=multi-user.target

    /etc/fstab

    storage.ip.address:/home/changeme/backup /home/backup nfs4  noauto,rw,hard,intr,rsize=8192,wsize=8192,timeo=14 0 0

    ~/.autorestic.yml

    version: 2
    
    locations:
      home:
        from: /home/changeme/
        to: remote
        options:
              backup:
                exclude:
                  - 'Dropbox/*'
                  - 'Dropbox*/*'
                  - '.cache'
                  - '.*CacheStorage.*'
                  - '.*CachedData.*'
                  - '.*Cache.*'
                  - '.var/app'
                  - '.cargo'
                  - '.ssh'
                  - '.rustup'
                exclude-file: /home/changeme/.gitignore
    backends:
      remote:
        type: local
        path: "/home/backup/"
        key: "changeme"
    December 8, 2023 03:25:21 PM GMT+01:00 * - permalink -
    QRCode
    - https://gist.github.com/theonlydoo/1ee4640ffe9555dd8d3a92e67c717d00
    restic backup
  • What is DDL, DML, DCL, and TCL in MySQL Databases?

    Learn how to use MySQL SQL commands with this comprehensive tutorial. Discover four subgroups of MySQL SQL commands: DDL for database schema, DML for data manipulation, DCL for access control, and TCL for transaction management.

    December 4, 2023 11:21:08 AM GMT+01:00 * - permalink -
    QRCode
    - https://www.w3schools.in/mysql/ddl-dml-dcl
    mysql
  • Lenovo BIOS Simulator Center

    TIL lenovo a un simulateur de bios :D

    November 17, 2023 09:52:58 AM GMT+01:00 * - permalink -
    QRCode
    - https://download.lenovo.com/bsco/index.html#/graphicalsimulator/ThinkPad%20X1%20Carbon%2011th%20Gen%20(21HM,21HN)%20-%20N3XET37W
    lenovo bios
  • thumbnail
    How to Enable Fractional Scaling on Fedora Linux - OMG! Linux

    chiant à retrouver à chaque fois pour activer le fractional scaling

    November 16, 2023 05:54:43 PM GMT+01:00 * - permalink -
    QRCode
    - https://www.omglinux.com/how-to-enable-fractional-scaling-fedora/
    fedora fractional scaling
  • Hatnote Listen to Wikipedia

    marrant comme concept

    October 17, 2023 08:49:18 AM GMT+02:00 * - permalink -
    QRCode
    - http://listen.hatnote.com/
    wikipedia wikimedia wiki musique
  • thumbnail
    Subway • Bruce Davidson • Magnum Photos

    Trop fort

    October 5, 2023 09:27:13 AM GMT+02:00 * - permalink -
    QRCode
    - https://www.magnumphotos.com/arts-culture/society-arts-culture/bruce-davidson-subway-new-york-usa/
    photo photographe photographie
  • thumbnail
    Talk Time tracks who talks and how much in Google Meet

    Noice

    October 4, 2023 02:48:27 PM GMT+02:00 * - permalink -
    QRCode
    - https://everyoneshouldhaveavoice.com/
    google meet meeting gmeet
  • Tout savoir sur l'IQA pour PM2.5, son calcul, ses enjeux

    Enfin un graph de conversion AQI/microgrammes https://qph.fs.quoracdn.net/main-qimg-fc087d00bff5bb9da5477ac5530c5c3e

    je veux bien qu'on souhaite parler de l'impact sur la santé mais c'est chiant de convertir des pommes en oranges en permanence quand on parle de mesures

    October 3, 2023 07:28:27 PM GMT+02:00 * - permalink -
    QRCode
    - https://smartairfilters.com/fr/difference-pm2-5-aqi-measurements/
    aqi pollution
  • kubernetes/build/pause/CHANGELOG.md at master · kubernetes/kubernetes

    le container pause a un changelog lui aussi :D

    October 2, 2023 03:53:38 PM GMT+02:00 * - permalink -
    QRCode
    - https://github.com/kubernetes/kubernetes/blob/master/build/pause/CHANGELOG.md
    pause container kubernetes k8s changelog
  • thumbnail
    JetPorch - JetPorch Documentation

    via Victor, à surveiller!

    October 2, 2023 02:27:51 PM GMT+02:00 * - permalink -
    QRCode
    - https://www.jetporch.com/
    ansible rust
  • thumbnail
    An Excruciatingly Detailed Guide To SSH (But Only The Things I Actually Find Useful)

    très détaillé et précis!

    September 20, 2023 01:47:16 PM GMT+02:00 * - permalink -
    QRCode
    - https://grahamhelton.com/blog/ssh-cheatsheet/
    ssh
  • Interactive map of Linux kernel

    linux kernel map via Noiz

    September 18, 2023 09:49:30 AM GMT+02:00 * - permalink -
    QRCode
    - https://makelinux.github.io/kernel/map/
    kernel map
  • Reddit - Explorez sans limite

    need ces keycaps ^^

    September 3, 2023 04:05:00 PM GMT+02:00 * - permalink -
    QRCode
    - https://www.reddit.com/r/oddlysatisfying/comments/162hdkp/the_sound_of_this_ceramic_keyboard/
    clavier mécanique
  • thumbnail
    LIDA | LIDA: Automated Visualizations with LLMs

    LIDA is a tool to automatically explore data, generate visualizations and infographics from data using large language models like ChatGPT and GPT4

    via Salim, much interechting

    August 30, 2023 12:47:16 PM GMT+02:00 * - permalink -
    QRCode
    - https://microsoft.github.io/lida/
    llm ia gpt chatgpt
Links per page: 20 50 100
◄Older
page 3 / 170
Newer►
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation