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/bash | |
# find_commit_diff.sh | |
# Usage: ./find_commit_diff.sh --search <string> [--reverse] | |
# --search The search string (e.g. "overrideAamCriticalParameters") | |
# --reverse Process commits from oldest to newest (optional) | |
# If no parameters are provided, show help | |
if [ $# -eq 0 ]; then | |
echo "Usage: $0 --search <string> [--reverse]" | |
exit 1 |
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
# This file contains important security parameters. If you modify this file | |
# manually, Certbot will be unable to automatically provide future security | |
# updates. Instead, Certbot will print and log an error message with a path to | |
# the up-to-date file that you will need to refer to when manually updating | |
# this file. | |
ssl_session_cache shared:le_nginx_SSL:1m; | |
ssl_session_timeout 1440m; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
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
In "C++Now 2017: Ben Deane & Jason Turner "constexpr ALL the things!"", Jason Turner talks about | |
constexpr vector which has a push back method allowing to detect range errors at compile time: | |
https://youtu.be/HMB9oXFobJc?t=921 | |
If you want to see how to reproduce this trick here is the code: | |
#include <stdexcept> | |
class vec { | |
public: |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <shared_mutex> | |
#include <mutex> | |
#include <thread> | |
#include <map> | |
#include <chrono> | |
#include <future> | |
#include <cassert> |
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
''' | |
er_pass_key.py :: various tools to analyze er with its rest api | |
- grabs log times from easyreadmine and generates reports. | |
- lists issues in which user had added any changes in last week | |
api documentation: | |
https://easyredmine.docs.apiary.io/ | |
https://www.redmine.org/projects/redmine/wiki/Rest_api | |
info: requires python 3.7, you also must create er_pass_key_settings.py file with correct |
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
''' | |
fogbugs_downloader.py :: uses fogbugz api to download cases with attachments to sqlite db, it also | |
downloads wikis. Uses pycookiecheat to download attachments (see here https://stackoverflow.com/q/51498991/471160). | |
tbd: test under linux | |
tbd: download wiki attached files | |
''' | |
import sys | |
import time | |
import html |