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 python | |
# bouroo<[email protected]> | |
# 07.04.2019 | |
# sudo apt-get -y install pcscd python-pyscard python-pil | |
import binascii | |
import io | |
import os | |
import sys | |
from PIL import Image |
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/sh | |
# ForceCommand /root/ssh-wrapper in /etc/ssh/sshd_config | |
# add logger options when needed | |
log="logger -t ssh-wrapper" | |
# find IP address | |
ip=`echo $SSH_CONNECTION | cut -d " " -f 1` | |
$log $USER login from $ip | |
espeak "$USER just logged in from $ip" > /dev/null 2>&1 |
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
# Try to Normal | |
xrandr -o normal | |
sudo systemctl stop iio-sensor-proxy.service | |
sudo systemctl disable iio-sensor-proxy.service | |
# Try this command to remove |
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
<policy domain="coder" rights="read | write" pattern="PDF" /> | |
ust before </policymap> in /etc/ImageMagick-7/policy.xml and that makes it work again, but not sure about the security implications of that. | |
<policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> |
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 | |
# Removes old revisions of snaps | |
# CLOSE ALL SNAPS BEFORE RUNNING THIS | |
set -eu | |
LANG=C snap list --all | awk '/disabled/{print $1, $3}' | | |
while read snapname revision; do | |
snap remove "$snapname" --revision="$revision" | |
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
#!/bin/bash | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |