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
# /etc/systemd/system/wakelock.service | |
[Unit] | |
Description=Lock the screen before suspend | |
Before=systemd-suspend.service | |
[Service] | |
User=t4cc0re | |
Type=forking | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/i3lock -ef --image=/opt/wallpapers/lockscreen.png --color=000000 |
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
#!/usr/bin/env bash | |
pacman -Svvyy git tar xz gzip wget curl base-devel binutils mingw-w64-x86_64-readline gawk | |
setx MSYS2_PATH_TYPE inherit | |
setx HOME "C:\\Users\\${USER}" | |
echo "Please restart MSYS2 now to take effect (close with X)" | |
while read; do | |
: | |
done |
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
#!/usr/bin/env bash | |
echo "check if gitlab-ci-multi-runner is installed..." | |
gitlab-ci-multi-runner &> /dev/null | |
if [ $? != 0 ]; then | |
echo "NOT installed. Installing..." | |
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-ci-multi-runner/script.deb.sh | sudo bash | |
apt-get install gitlab-ci-multi-runner | |
else | |
echo "IS installed. OK" | |
fi |
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
#!/usr/bin/env bash | |
# region SETTINGS | |
SPEED=3800; # safe speed for rPi. (<80sec for read, verify and download of 8MiB rom) | |
#SPEED=16000; # freaking fast! Should work on most rPis. (<30sec for read, verify and download of 8MiB rom) | |
#SPEED=32000; # insanely fast! Not guaranteed to work at all, but works for me. (~20sec for read, verify and download of 8MiB rom) | |
ASK=1; # Ask to flash before actually doing it | |
#ASK=0; # Don't ask. | |
# endregion |
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
#!/usr/bin/env bash | |
# Detect version from website | |
VERSION="$(curl --silent "http://www.makemkv.com/download/" 2>&1 | egrep -o 'MakeMKV ([^ ]*) for' | sed 's/MakeMKV //' | sed 's/ for//' | uniq)" | |
DIR="$(pwd)" | |
WRKDIR="$(mktemp -d)" | |
NUMPROC="$(cat /proc/cpuinfo | grep proc | wc -l)" | |
# Detect beta-key from forums |
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
[Unit] | |
Description=GnuPG private key agent | |
IgnoreOnIsolate=true | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/gpg-agent --daemon --enable-ssh-support | |
Restart=always | |
[Install] |
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
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx' | |
.replace( | |
/[xy]/g, | |
char => { | |
const rnd = parseInt( | |
require('crypto') | |
.randomBytes(1) // get one byte | |
.toString('hex')// encode it to hex | |
.slice(0, 1), // slice to one char | |
16 |
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
#!/usr/bin/env bash | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
KMAJ="$(uname -r | cut -d. -f1)" | |
KMIN="$(uname -r | cut -d. -f2)" | |
if [ "${KMAJ}" != "4" ]; then | |
echo "This script has to be run on a 4.x kernel." 1>&2 |
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 | |
# Bash script for setting or clearing touch requirements for | |
# cryptographic operations the OpenPGP application on a YubiKey 4. | |
# | |
# Author: Alessio Di Mauro <alessio@yubico.com> | |
GCA=$(which gpg-connect-agent) | |
DO=0 | |
UIF=0 |
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
#!/usr/bin/bash | |
# more info: | |
# https://wiki.archlinux.org/index.php/GnuPG#Smartcards | |
SHELL_CONF=~/.bashrc | |
sudo pacman -S --noconfirm pcsclite libusb-compat | |
sudo systemctl enable pcscd.service |
NewerOlder