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
name: Custom.SBB.Label.NewClients | |
description: | | |
This artifact watches for new client enrolments and automatically | |
label the client with the hostname. | |
#server #event #labels | |
type: SERVER_EVENT | |
parameters: | |
sources: |
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
# Keep it clean | |
> mkdir certificates && cd certificates | |
# Borrow the default openssl.cnf (location may differ, see note) | |
> cp /etc/pki/tls/openssl.cnf ./ | |
# Create a private key. | |
# It's important to have the v3_ca extension and to supply the openssl.cnf file | |
> openssl req -x509 -days 730 -nodes -newkey rsa:2048 -outform der -keyout server.key -out ca.der -extensions v3_ca -config openssl.cnf |
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
Mac Address/Hostname | |
nbsn | |
udp.ort eq 67 or 68 | |
IP | |
ip.addr | |
HTTP | |
http.request |
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
$ ykneomgr -M 1 | |
# Re-plug the device | |
$ opensc-tool -s '00 a4 04 00 08 a0 00 00 05 27 20 01 01' \ | |
-s '00 01 11 00 04 81 0f 02 00' | |
#81 = mode 1 = CCID only (other modes not working togheter with ejcet on my neo) | |
#02 = timeout | |
#script to restore | |
until ykneomgr -M0 2&> /dev/null ; do sleep 0.1 ; 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
sudo dnf install davfs2 | |
sudo nano /etc/fstab | |
insert: | |
https://elearning.hslu.ch/ilias/webdav.php/hslu/ref_XXXXX/ /PATH/ davfs user,noauto,uid=USERNAME,file_mode=600,dir_mode=700 0 1 | |
ILIAS->Modul->Als Webordner öfnen | |
->ref_id aus url | |
mkdir ~/PATHTOFOLDER |
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 | |
# Compresses all .jpg/.jpeg and saves them to opt/ | |
# works with spaces in filenames | |
# make sure you adjust the path to mozjpeg bin | |
# uses the mozilla mozjpeg encoder from https://github.com/mozilla/mozjpeg | |
# based on https://gist.github.com/sauramirez/e0ef5059ab637ed3e2cea090b504f385 | |
# Che4ter - 2017 | |
#Change to mozjpeg path | |
MOZJPEG='/opt/mozjpeg/bin/' |