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
| #!/usr/bin/env python3 | |
| # | |
| # Limits the maximal virtual memory for a subprocess in Python. | |
| # | |
| # Linux only. | |
| # | |
| import subprocess | |
| import resource |
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
| #include <windows.h> | |
| int main() { | |
| // Define process information | |
| STARTUPINFO si; | |
| PROCESS_INFORMATION pi; | |
| ZeroMemory(&si, sizeof(si)); | |
| si.cb = sizeof(si); | |
| ZeroMemory(&pi, sizeof(pi)); |
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
| # docker-compose.yml | |
| version: "3" | |
| services: | |
| prometheus: | |
| image: prom/prometheus | |
| test-service: # <- this | |
| image: nginx | |
| deploy: | |
| replicas: 3 |
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
| # Install core lib on linux | |
| sudo dnf -y install epel-release | |
| sudo dnf -y install chrony | |
| sudo dnf -y install firewalld | |
| # Start core services | |
| sudo systemctl start chronyd | |
| sudo systemctl enable chronyd | |
| sudo systemctl start firewalld | |
| sudo systemctl enable firewalld |
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
| import maya.cmds as mc | |
| def surfacingUtilUI(): | |
| if mc.window('surfacingutilwin', exists=True): | |
| mc.deleteUI('surfacingutilwin') | |
| window = mc.window('surfacingutilwin',title="Surfacing Utilities",widthHeight=(400, 155)) | |
| mc.columnLayout( adjustableColumn=True ) | |
| mc.button(label='Multi Transfer UV',command=transferUV) | |
| mc.button(label='Select Similar', command=selectSimilar) |
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
| import os | |
| for i in os.environ: | |
| print("export {0}={1}".format(i, os.environ[i])) |