Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096| #!/usr/bin/env python | |
| # -*- coding:utf-8 -*- | |
| # | |
| # Now this lib is on her own full repository and pypi page: | |
| # http://github.com/Christophe31/screenutils | |
| # http://pypi.python.org/pypi/screenutils | |
| # | |
| # This may not work with bpython, use python 2.6 or upper | |
| # | |
| # This program is free software. It comes without any warranty, to |
| from pybithumb import WebSocketManager | |
| import sys | |
| from PyQt5.QtWidgets import * | |
| from PyQt5.QtCore import * | |
| from PyQt5.QtGui import QIcon | |
| import time | |
| class Worker(QThread): | |
| recv = pyqtSignal(str) |
| # we are using mplfinance to help us visualize the indicator | |
| import mplfinance as mpf | |
| # to make the visualization better by only taking the last 100 rows of data | |
| df = df[-100:] | |
| # extract only ['Open', 'High', 'Close', 'Low'] from df | |
| ohcl = df[['Open', 'High', 'Close', 'Low']] | |
| # add colors for the 'value bar' |
| <!-- plug-in configuration to put into your parent POM for avoiding any usages of outdated log4j2 versions, | |
| some of which are subject to the RCE CVE-2021-44228 ("Log4Shell") --> | |
| ... | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <version>3.0.0</version> | |
| <executions> | |
| <execution> | |
| <id>ban-bad-log4j-versions</id> |
| /* | |
| Reddit DailyProgrammer Challenge #180 -- Tamagotchi Emulator | |
| By Aerospark12 (aka Luke) | |
| I may have gone a little bit overboard with this one, but I've got fond memories of tamagotchi from when | |
| I was but a wee laddie, I've always wanted to make something like this, and I really enjoy graphics and animation | |
| The design of this is partially inspirte by how I understand "low level" ICs to work, as an homage to the real tamagotchi |
| #!/usr/bin/env python | |
| import hashlib, binascii | |
| from hashlib import sha256 | |
| import ecdsa | |
| DEBUG = True | |
| DEBUG = False | |
| """ | |
| # secp256k1 T = (p, a, b, G, n, h) |
| # post_loc.txt contains the json you want to post | |
| # -p means to POST it | |
| # -H adds an Auth header (could be Basic or Token) | |
| # -T sets the Content-Type | |
| # -c is concurrent clients | |
| # -n is the number of requests to run in the test | |
| ab -p post_loc.txt -T application/json -H 'Authorization: Token abcd1234' -c 10 -n 2000 http://example.com/api/v1/locations/ |
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |
rsync (Everyone seems to like -z, but it is much slower for me)