klotz: linux*

Bookmarks on this page are managed by an admin user.

0 bookmark(s) - Sort by: Date ↓ / Title / - Bookmarks from other users for this tag

  1. sudo nano /bin/connect-bluetooth.sh

    In that file add
    #!/bin/bash
    sudo bluetoothctl << EOF
    power on
    connect MAC Address »
    exit
    EOF

    Save that file.
    Make it executable

    sudo chmod +x /bin/connect-bluetooth.sh

    Then create a new file
    sudo nano /etc/systemd/system/connect-bluetooth.service

    Add this text:
    Unit »
    Description=Connect Bluetooth

    Service »
    Type=oneshot
    ExecStart=/bin/connect-bluetooth.sh

    Install »
    WantedBy=multi-user.target
    Save that file.

    Then run this command to enable that process
    sudo systemctl enable /etc/systemd/system/connect-bluetooth.service
  2. View Apache requests per minute
    Run the following command to see requests per minute:
    grep "23/Jan/2013:06" example.com | cut -d -f2 | cut -d » -f1 | awk -F: '{print $2":"$3}' |
    sort -nk1 -nk2 | uniq -c | awk '{ if ($1 > 10) print $0}'
    Code breakdown:
    2021-03-26 Tags: , , , , , , by klotz
  3. iptables -I INPUT -p tcp -m tcp --dport 5901 -m state --state NEW -j LOG --log-level 1 --log-prefix "New Connection "
    2021-03-03 Tags: , , by klotz

Top of the page

First / Previous / Next / Last / Page 1 of 0 SemanticScuttle - klotz.me: Tags: linux

About - Propulsed by SemanticScuttle