This file contains 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 | |
# In Windows 10: | |
# powershell -command Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
# Switch to tmp dir as workdir |
This file contains 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
; WINDOWS key (#) + H -> Hide active/foreground window | |
#H::WinMinimize, A |
This file contains 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 | |
DATE=`date +%y%m%d-%H%M` | |
WORKDIR=/srv/daemon-data/ | |
BACKUPDIR=/srv/backups | |
echo | |
echo "> Starting backup" | |
backup() { |
This file contains 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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
/** | |
* <h1>CDMA</h1> | |
* <p>Simulates a spread spectrum communication</p> | |
* <p> | |
* Each {@link Receiver} listens to one chip sequence ({@link Stations}) and can be accept by the {@link Sender}. | |
* A {@link Sender} can send multiple chip sequences at once, added together to a matrix. |
This file contains 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
<# | |
.SYNOPSIS | |
Replace Unix paths in Synctex (Latex) file with Windows paths | |
.DESCRIPTION | |
Replace Unix paths in Synctex (Latex) file with Windows paths. | |
This script un-gzips the Synctex.gz file, replaces Unix paths set by Docker image arara-docker | |
with a Windows path of choice. The paths are defined by parameters. | |
.PARAMETER SynctexFile |