jarno / GTK4 Tweaks for Fedora
0 j'aimes
0 forks
1 fichiers
Dernière activité
| 1 | #!/bin/bash |
| 2 | |
| 3 | ##------------------------## |
| 4 | ## Check Adw-gt3 version! ## |
| 5 | ##------------------------## |
| 6 | ADWGTKV=v5.2 |
| 7 | |
| 8 | mkdir -p ~/.local/share/themes |
| 9 | curl -sL https://github.com/lassekongo83/adw-gtk3/releases/download/${ADWGTKV}/adw-gtk3${ADWGTKV}.tar.xz | tar xJv -C ~/.local/share/themes |
| 10 | flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo |
jarno / migrate_gists.sh
0 j'aimes
0 forks
1 fichiers
Dernière activité
| 1 | #!/bin/bash |
| 2 | |
| 3 | # Clone gists from GitHub to Opengist |
| 4 | # Copyright (C) 2024 Jarno Rankinen |
| 5 | # |
| 6 | # This program is free software: you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU Affero General Public License as |
| 8 | # published by the Free Software Foundation, either version 3 of the |
| 9 | # License, or (at your option) any later version. |
| 10 | # |
jarno / follow.bash
0 j'aimes
0 forks
1 fichiers
Dernière activité
Follow file transfers or similar actions in bash
| 1 | #!/bin/bash |
| 2 | |
| 3 | while true; do echo -ne "$(du -sh -BM $1)\r"; sleep 1; done |
jarno / wg0.service
0 j'aimes
0 forks
1 fichiers
Dernière activité
Systemd service to activate wireguard with Fedora 33
| 1 | ## Connect to Wireguard interface automatically |
| 2 | ## using NetworkManager. |
| 3 | ## wg-quick@ -systemd services do not configure |
| 4 | ## DNS properly when systemd-resolved is used |
| 5 | ## resulting in DNS leaks and general issues, |
| 6 | ## hence starting the interface via nmcli is |
| 7 | ## necessary |
| 8 | |
| 9 | [Unit] |
| 10 | Description=wg0 interface |
jarno / geoiplookup.sh
0 j'aimes
0 forks
1 fichiers
Dernière activité
Geoiplookup bash function using geoiplookup.io
| 1 | ## depends on curl and jq |
| 2 | function geoiplookup() { |
| 3 | GEOIPURL=https://json.geoiplookup.io/"$1" |
| 4 | curl -s $GEOIPURL | jq '.ip, .org, .hostname, .city, .country_name' |
| 5 | } |
jarno / 10-wg-reload.sh
0 j'aimes
0 forks
1 fichiers
Dernière activité
NetworkManager dispatcher script to restart Wireguard interface on connection change
| 1 | #!/bin/bash |
| 2 | |
| 3 | ## |
| 4 | ## Reloads Wireguard tunnel when a physical interface change happens |
| 5 | ## Intended for use with always active full tunnels |
| 6 | ## |
| 7 | ## Also when using a second VPN, disables the WG tunnel when |
| 8 | ## enabling the alternate and vice versa |
| 9 | ## |
| 10 |
jarno / wakeonlan.sh
0 j'aimes
0 forks
1 fichiers
Dernière activité
Alias for waking a host wit WOL and wait until it is up, requires wol
| 1 | alias fx8_wake='wol MA:CA:DD:RE:SS; printf "Waiting response.."; while ! ping -c1 -w1 HOST > /dev/null; do printf "."; done && printf "\nHOST is up and running\n"' |