Skip to content

Instantly share code, notes, and snippets.

@zavke
zavke / a-redmine-export.sh
Created July 21, 2022 07:34 — forked from rlanyi/a-redmine-export.sh
JSON export of all Redmine issues with history and related attachments that you have access to using Redmine API
#!/bin/bash
# Please install jq, wget and curl for this to work
REDMINE_URL="http://www.redmine.org/" # Your redmine URL
REDMINE_USER="" # Redmine username
REDMINE_PASS="" # Redmine pass
offset=0
limit=100
/*
* Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://www.openssl.org/source/license.html
* or in the file LICENSE in the source distribution.
*/
_ _ _ ____ _ _
| | | | __ _ ___| | __ | __ ) __ _ ___| | _| |
| |_| |/ _` |/ __| |/ / | _ \ / _` |/ __| |/ / |
| _ | (_| | (__| < | |_) | (_| | (__| <|_|
|_| |_|\__,_|\___|_|\_\ |____/ \__,_|\___|_|\_(_)
A DIY Guide
IFS=$'\n'
old_process=$(ps -eo command)
while true; do
new_process=$(ps -eo command)
diff <(echo "$old_process") <(echo "$new_process") |grep [\<\>]
sleep 1
old_process=$new_process
done
@zavke
zavke / Python SimpleHTTPServer with SSL
Created January 14, 2021 02:48 — forked from rozifus/Python SimpleHTTPServer with SSL
Python SimpleHTTPServer with SSL
# useful for running ssl server on localhost
# which in turn is useful for working with WebSocket Secure (wss)
# copied from http://www.piware.de/2011/01/creating-an-https-server-in-python/