This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| NEOVIDE="neovide.real" | |
| SOCKET="${XDG_RUNTIME_DIR:-/tmp}/neovide" | |
| if [ -S "$SOCKET" ]; then | |
| # Если есть аргументы — открываем их в существующем Neovim | |
| if [ "$#" -gt 0 ]; then | |
| nvim --server "$SOCKET" --remote-tab "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Mirror source branch | |
| "on": | |
| schedule: | |
| - cron: '0 3 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| IP="192.168.2.2" # server IP | |
| MAC="50:EB:F6:50:3E:AE" # MAC address for WOL | |
| INTERFACE="br-lan" # network interface for ping/etherwake | |
| INTERFACE_RESTART="lan1" # interface to restart | |
| MAX_FAILS=4 # 4 * 5 min = 20 min | |
| STATE="/tmp/server-monitor.state" # temp file for fail counter | |
| LOG_TAG="server-monitor" # logger tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| printf '{"auths":{"https://index.docker.io/v1/":{"auth":"%s"}}}' "$(printf 'login:password' | base64)" | base64 | tr -d '\n' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| restore_dhcp() { | |
| if [ -n "$(grep 'iface vmbr0 inet static' /etc/network/interfaces)" ]; then | |
| sed -e 's|iface\ vmbr0\ inet\ static|iface\ vmbr0\ inet\ dhcp|g' -i /etc/network/interfaces | |
| fi | |
| } | |
| restore_dhcp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh-keygen -i -f /tmp/ssh2.pub >> ~/.ssh/authorized_keys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p "$HOME/.local/share/glib-2.0/schemas | |
| find $HOME/.local/share/gnome-shell/extensions/ -name '*.gschema.xml' -exec cp "{}" "$HOME/.local/share/glib-2.0/schemas" \; | |
| glib-compile-schemas $HOME/.local/share/glib-2.0/schemas/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| if [ -z "$1" ]; then | |
| echo "Specify Timeshift temp dir!" | |
| exit 1 | |
| fi | |
| rsync -avH \ | |
| --numeric-ids \ | |
| --progress \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hygrostat_fan_bathroom: | |
| homeassistant: | |
| customize: | |
| climate.fan_bathroom: | |
| friendly_name: "Санузел - Вытяжка - Термостат" | |
| icon: mdi:thermostat-auto | |
| humidifier.fan_bathroom: | |
| friendly_name: "Санузел - Вытяжка - Гигростат" | |
| icon: mdi:thermostat-auto | |
| switch.fan_bathroom: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ACPI_BALANCE="\_SB_.PC00.LPCB.EC0_.VPC0.DYTC 0x000FB001" | |
| ACPI_POWER="\_SB_.PC00.LPCB.EC0_.VPC0.DYTC 0x0012B001" | |
| ACPI_ECO="\_SB_.PC00.LPCB.EC0_.VPC0.DYTC 0x0013B001" | |
| ACPI_MODE="\_SB_.PC00.LPCB.EC0_.SPMO" | |
| MODE=$(sudo sh -c "echo '$ACPI_MODE' > /proc/acpi/call; tr -d '\0' < /proc/acpi/call") | |
| MODE=${MODE:2} | |
| TARGET=$(((MODE+1)%3)) |
NewerOlder