Skip to content

Instantly share code, notes, and snippets.

@arhyth
arhyth / report
Created February 6, 2022 00:12
Debug assertion failure
=============================================================================================== FAILURES ===============================================================================================
______________________________________________________________________________________ test_validate_cash_in_txn _______________________________________________________________________________________
validate_route_usage_mock = <MagicMock name='validate_route_usage' id='275037264240'>, cancel_mock = <MagicMock name='cancel_cash_in_txn' id='275035140048'>
@patch('foobar.apps.transactionx.tasks.inward.cancel_cash_in_txn')
@patch('foobar.apps.transactionx.tasks.inward.validate_route_usage')
def test_validate_cash_in_txn(validate_route_usage_mock, cancel_mock):
with freeze_time('2019-10-10T10:00:00'):
routed_txn = CashInTransactionFactory(
@arhyth
arhyth / tasks.txt
Created September 22, 2023 06:44
Common sysadmin tasks
Server Management:
Installing, configuring, and maintaining web servers (if any).
Managing server resources, including CPU, RAM, and storage.
Keeping up to date with cost-effective server instance types (cloud) with regard to current and prospective workload/s and suggesting appropriate changes to management/stakeholders.
Domain and DNS Management:
Registering and renewing domain names.
Configuring DNS settings for domains and subdomains.
Backup and Disaster Recovery: