Skip to content

Instantly share code, notes, and snippets.

View baotang2118's full-sized avatar

Bao Duc Tang baotang2118

View GitHub Profile
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 8, 2026 10:33
set -e, -u, -o, -x pipefail explanation
@wingyplus
wingyplus / test_subprocess.py
Last active October 15, 2022 06:24
mocking subprocess
import unittest
import mock
import subprocess
class PythonSubprocessTest(unittest.TestCase):
class MockPopen(object):
def __init__(self):
pass
def communicate(self, input=None):