This file contains hidden or 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
| # Checks if MANIFEST.MF in all jar files contain trailing line ending | |
| for JAR in $(find . -name '*.jar' -type f); do | |
| LL=$(unzip -p ${JAR} META-INF/MANIFEST.MF 2>/dev/null | cat -A | tail -1); | |
| LC=$(echo -n ${LL} | tail -c 1) | |
| [ "${LC}" != "" -a "${LC}" != "$" ] && echo "${JAR}: ${LL}" | |
| done |
This file contains hidden or 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 Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters] | |
| "AllowInsecureGuestAuth"=dword:00000001 |
This file contains hidden or 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
| keytool -genkeypair -alias tomcat -keyalg RSA -validity 3654 -dname "CN=Tomcat" -keypass changeit -keystore /srv/tomcat/.keystore -storepass changeit -deststoretype pkcs12 |
This file contains hidden or 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 | |
| # Get top 1M domain list | |
| if [ ! -e top-1m.txt ]; then | |
| wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip | |
| unzip top-1m.csv.zip | |
| cut -d',' -f2 top-1m.csv >top-1m.txt | |
| fi | |
| # Create list of DNS resolvers |
This file contains hidden or 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
| /* | |
| Compile using | |
| gcc libcurl-check-response.c -lcurl -o libcurl-check-response | |
| */ | |
| #include <curl/curl.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| CURLcode ret; |
This file contains hidden or 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/python3 | |
| import csv | |
| colgroup = 5 # Kolik sloupcu na zacatku musi byt stejnych | |
| with open('input.csv', 'r') as ifd, open('output.csv', 'w') as ofd: | |
| reader = csv.reader(ifd, delimiter=';') # Vstupni CSV | |
| writer = csv.writer(ofd, delimiter=';') # Vystupni CSV | |
| buffer = [next(reader)] # Buffer, ktery drzi radky se stejnymi prvnimi sloupci |
This file contains hidden or 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 | |
| # https://blogs.gnome.org/hughsie/2018/08/17/nvme-firmware-i-need-your-data/ | |
| dnf install nvme-cli | |
| nvme id-ctrl --raw-binary /dev/nvme0 > /tmp/id-ctrl | |
| curl \ | |
| -F type=nvme \ |
This file contains hidden or 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
| from threading import Lock | |
| @contextmanager | |
| def nonblocking(lock=Lock()): | |
| locked = lock.acquire(False) | |
| try: | |
| yield locked | |
| finally: | |
| if locked: | |
| lock.release() |
This file contains hidden or 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 | |
| openssl rand -base64 18 | |
| head -c 18 /dev/urandom | base64 | |
| </dev/urandom tr -cd '[:alnum:]' | head -c26 |
This file contains hidden or 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
| -----BEGIN CERTIFICATE----- | |
| MIIDZjCCAk6gAwIBAgIUVH0iZ4zKue6OdcaHZ8ul+Hc6gtcwDQYJKoZIhvcNAQEL | |
| BQAwSjEjMCEGA1UEAwwaTGV0J3MgRW5jcnlwdCBBdXRob3JpdHkgWDMxFjAUBgNV | |
| BAoMDUxldCdzIEVuY3J5cHQxCzAJBgNVBAYTAlVTMB4XDTE4MTEwNTE5Mzg0MFoX | |
| DTE5MDIwMzE5Mzg0MFowGzEZMBcGA1UEAwwQZXhhbXBsZS5pbnZhbGlsZDCCASIw | |
| DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK5kmB+Gm1mNLylGBf4BcakMU5bb | |
| 9/rNwTX0jXmFKOrRkbXbkea8RKPjlv+oQrZ8zMu8bgmTyJvk0esSbedGbq2tzDfi | |
| Q4fz9dPu+Y4oXnXz0G/zzNibQiXnJJ+AnO5u4BmLHcg/eQQyBQm+tsxDlpd+A9WG | |
| wejFUE2XkBG/3yQgPRCzO5w6LopbDX+sP1nDoFME4m0lCmB++w0BQBxlYHT3pMZP | |
| dDx7VlychO6UFXz4PPPKnwT2rz1orqNdQ9OohP7ONxPh7QwPD+fKnt7ufyCl+VSg |