tmux new [-s name] [cmd](:new) - new session
tmux ls(:ls) - list sessionstmux switch [-t name](:switch) - switches to an existing session
| #!/usr/bin/env python | |
| #-*- coding:utf-8 -*- | |
| import imaplib | |
| import getpass | |
| import argparse | |
| argparser = argparse.ArgumentParser(description="Dump a IMAP folder into .eml files") | |
| argparser.add_argument('-s', dest='host', help="IMAP host, like imap.gmail.com", required=True) | |
| argparser.add_argument('-u', dest='username', help="IMAP username", required=True) |
| #!/usr/bin/env python | |
| """ | |
| Very simple HTTP server in python (Updated for Python 3.7) | |
| Usage: | |
| ./dummy-web-server.py -h | |
| ./dummy-web-server.py -l localhost -p 8000 | |
| Send a GET request: |
| var fs = require('fs'); | |
| //this is the path that QTNetwork classes uses for caching files for it's http client | |
| //the path should be the one that has 16 folders labeled 0,1,2,3,...,F | |
| exports.cachePath = '/path/to/phantomjs/cache/data/folder'; | |
| //this is the extension used for files in the cache path | |
| exports.cacheExtension = "d"; | |
| //the resources that are to be saved |
| #!/usr/bin/env python3 | |
| """ | |
| 2025 update: | |
| - Recursive extraction from nested EML files | |
| - Robust filename handling with sanitization and deduplication | |
| - Proper logging instead of print statements | |
| - Enhanced error handling and validation | |
| - Binary file reading for better encoding support | |
| - Cross-platform filename compatibility |
| ## This is a sample NXLog configuration file created by Loggly. June 2013 | |
| ## See the nxlog reference manual about the configuration options. | |
| ## It should be installed locally and is also available | |
| ## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html | |
| ## Please set the ROOT to the folder your nxlog was installed into, | |
| ## otherwise it will not start. | |
| #define ROOT C:\Program Files\nxlog | |
| define ROOT C:\Program Files (x86)\nxlog |
| server { | |
| listen 80; | |
| server_name nessus.gmi.oeaw.ac.at; | |
| rewrite ^ https://$server_name$request_uri? permanent; | |
| } | |
| server { | |
| listen 443; | |
| server_name nessus.gmi.oeaw.ac.at; | |
| client_max_body_size 100m; |
| Get-ADGroup -Filter {(name -like "*admins*") -or (name -like "*administrator*")} ` | |
| | Get-ADGroupMember -Recursive | Where { $_.objectClass -eq "user" } ` | |
| | Get-ADUser -properties * | where {$_.enabled -eq $true} ` | |
| | where {$_.lockedout -eq $false} | select SamAccountName -unique |
| ## This is a sample configuration file. See the nxlog reference manual about the | |
| ## configuration options. It should be installed locally and is also available | |
| ## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html | |
| ## Please set the ROOT to the folder your nxlog was installed into, | |
| ## otherwise it will not start. | |
| #define ROOT C:\Program Files\nxlog | |
| define ROOT C:\Program Files (x86)\nxlog |
| # recursive search for keys containing "string" stripping empty results | |
| jq '.. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {})' | |
| # same, but output propper array | |
| jq '[ .. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {}) ]' | |
| # or | |
| jq 'map( .. | objects | with_entries(select(.key | contains("ftp"))) | select(. != {}) )' | |
| # transform input from {type: a, amount: 1} to {a: 1} and sum all values by type | |
| jq '[ .[] | {(.type): .amount} ] | map(to_entries) | add | group_by(.key) | map({key: .[0].key, value: map(.value) | add}) | from_entries' |