- Create a profile (
~/.unison/bidirsync.prf
):
# Unison preferences
label = bi-directonal sync with server
root = /home/<user>/git
root = ssh://<user>@<server-name>//home/<user>/sync/git
sshargs = -oIdentityFile=/home/<user>/.ssh/<privkey-name>
REM Delete eval folder with licence key and options.xml which contains a reference to it | |
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do ( | |
for /d %%a in ("%USERPROFILE%\.%%I*") do ( | |
rd /s /q "%%a/config/eval" | |
del /q "%%a\config\options\other.xml" | |
) | |
) | |
REM Delete registry key and jetbrains folder (not sure if needet but however) | |
rmdir /s /q "%APPDATA%\JetBrains" |
#!/bin/bash | |
#config | |
generated_location="." | |
generated_system_location="/etc/systemd/system" | |
prefix="rclone" | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run with sudo" | |
exit |
#!/bin/bash | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 | |
HAS_CAPPED=0x20000 |
#!/bin/bash | |
ver=1.21.4 | |
version=go$version | |
if [ -d ~/.gvm ]; then | |
echo "Directory exist. Please remove it." | |
exit 0; | |
fi |
#!/bin/sh | |
# install x11vnc | |
apt install -y x11vnc | |
# add service | |
cat <<EOF >> /lib/systemd/system/x11vnc.service | |
[Unit] | |
Description=x11vnc service | |
After=display-manager.service |
#!/bin/bash | |
clear | |
## Location Destination | |
# /usr/bin | |
# /usr/local/bin | |
dest="/usr/local/bin" | |
apt -y install composer |
### https://askubuntu.com/a/44303 | |
for i in {/usr,~/.local}/share/applications/*.desktop; do which $(grep -Poh '(?<=Exec=).*?( |$)' $i) > /dev/null || echo $i; done |