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 | |
| # Process tree memory peak monitor (samples at 10 Hz) for a given command. | |
| # Works on Linux (uses PSS) and macOS (uses RSS) | |
| # | |
| # Usage: | |
| # ./memory_pressure.sh /path/to/executable [arguments...] | |
| # | |
| # Alternative: | |
| # for Linux only, one could use Cgroups v2 to track memory usage of the process tree |
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
| .buildtool/ | |
| bin/ | |
| lib/ |
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
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = [ | |
| # "gemini3d", | |
| # "numpy", | |
| # "matplotlib", | |
| # "xarray", | |
| # ] | |
| # /// | |
| """ |
Use LIEF with Python for introspection of executable files.
python print_imports.py $Env:WINDIR/System32/notepad.exedir "%CMPLR_ROOT%\bin\*.exe" /b /a-daocl-ioc64.exe
deftofd.exe
dpcpp-cl.exe
dpcpp.exe
fpp.exeDemonstrates use of concurrent.futures.ThreadPoolExecutor and asyncio.Semaphore in separate examples to check outbound port connectivity.
In both examples, the maximum number of concurrent connections is limited to 5 (user option). This examples shows that Asyncio using
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
| %amsnr: SNR in AM systems | |
| % | |
| %This code contains functions to generate a message signal, amplitude | |
| %modulate a carrier and detect the message using envelope detection. | |
| % | |
| %Homework: Write code to perform SNR analysis as discussed in homework | |
| %5. Additional information is available in the comments below. | |
| % | |
| % Last modified: 2009-April-07 | |
| % |
NewerOlder