- Test-Driven Development (TDD) with pytest: Always write a failing test before writing implementation code (Red-Green-Refactor). Use
pytest
andpytest-fixtures
for test setup, execution, and teardown. - KISS (Keep It Simple, Stupid): Favor the simplest solution that meets the requirements.
- DRY (Don't Repeat Yourself): Avoid code duplication. Extract reusable logic into functions or classes.
- Standard Libraries and Tools: Utilize standard Python libraries (like
datetime
for date/time,requests
for HTTP requests, andlogging
) and external libraries, includingBeautifulSoup4
for HTML parsing, to avoid reinventing the wheel. Favor well-maintained and widely-used libraries. - YAGNI (You Ain't Gonna Need It): Don't implement features or functionality unless they are currently required.
- SOLID Principles & Extensibility: Adhere to SOLID principles, promoting maintainability, testability, and future extension. Consider potential future requi
Based on https://discourse.nixos.org/t/collection-of-nixos-repositories/20941?u=number5 but changed git submodules to git clone.
Example updating script (zsh)
# Nix collections
for d (/nix-collections/*/.git(/)) {
echo "Updating ${d:h:t}..."
command git -C "${d:h}" pull --ff --recurse-submodules --depth 1 --rebase --autostash
}
pip3 install awscli boto3
(this step will fail but will install all deps exclude pyyaml for us)pip3 install pyyaml==4.2b4
pip3 install --no-deps awscli boto3
See yaml/pyyaml#193 for what's happening with pyyaml
This file contains 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
resource "aws_iam_policy" "test1" { | |
name = "test1Policy" | |
policy = "${file("policy.json")}" | |
} |
I hereby claim:
- I am number5 on github.
- I am number5 (https://keybase.io/number5) on keybase.
- I have a public key whose fingerprint is B64B 1BAF 3380 4989 0B55 5626 F2A6 3118 9EE7 3283
To claim this, I am signing this object:
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am number5 on github. | |
* I am number5 (https://keybase.io/number5) on keybase. | |
* I have a public key whose fingerprint is DB66 7991 0546 B0DE 0144 EF10 C57A AB93 CFB1 C349 | |
To claim this, I am signing this object: |
This file contains 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
- install homebrew | |
- brew install qt5 | |
- brew tap homebrew/versions | |
- brew install gcc48 | |
- brew install cmake | |
- export CMAKE_PREFIX_PATH=/usr/local/opt/qt5 | |
- cd MultiMC5 | |
- mkdir build | |
- cd build | |
- export CC=/usr/local/bin/gcc-4.8 |
This file contains 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
* About to connect() to ipconfig.me port 80 (#0) | |
* Trying 82.98.86.174... connected | |
> GET / HTTP/1.1 | |
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3 | |
> Host: ipconfig.me | |
> Accept: */* | |
> | |
* HTTP 1.0, assume close after body | |
< HTTP/1.0 200 OK | |
< Date: Thu, 08 Aug 2013 06:07:18 GMT |
This file contains 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
LANG=C | |
GRUB_DEFAULT=0 | |
GRUB_TIMEOUT=5 | |
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` | |
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset acpi_osi=Linux nosplash video=vesa:off resume" | |
GRUB_CMDLINE_LINUX="" | |
# Uncomment to disable graphical terminal (grub-pc only) | |
GRUB_TERMINAL=gfxterm |
NewerOlder