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
<mso:cmd app="OneNote" dt="0" /> | |
<mso:customUI xmlns:mso="http://schemas.microsoft.com/office/2009/07/customui"> | |
<mso:ribbon> | |
<mso:qat> | |
<mso:sharedControls> | |
<mso:control idQ="mso:ViewGoBack" visible="true"/> | |
<mso:control idQ="mso:RedoButton" visible="false" insertBeforeQ="mso:ViewGoForward"/> | |
<mso:control idQ="mso:FilePrint" visible="false" insertBeforeQ="mso:ViewGoForward"/> | |
<mso:control idQ="mso:FilePrintPreview" visible="false" insertBeforeQ="mso:ViewGoForward"/> | |
<mso:control idQ="mso:FavoritePen1" visible="false" insertBeforeQ="mso:ViewGoForward"/> |
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
# This script changes the priority of the ‘Code.exe’ process to real-time. | |
# List of possible priority states in Windows: | |
# 0: Idle | |
# 1: Below Normal | |
# 2: Normal | |
# 3: Above Normal | |
# 4: High | |
# 5: Real Time | |
# Function to change process priority |
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
# Import the subprocess module to run shell commands | |
import subprocess | |
login1 = 'log111' | |
login2 = 'log222' | |
email1 = 'em111@gmail.com' | |
email2 = 'em222@cloud.com' | |
print("This is a switch between 2 global git accounts:") |
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
""" | |
File Extension Determination Script | |
This script scans files in the current directory and attempts to determine their file extensions | |
based on file signatures. It then renames the files with the correct extensions. | |
Supported File Signatures: | |
- ZIP: 504B0304 | |
- PDF: 25504446 | |
- JPG: FFD8FFE0 |
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
# file: create_user_and_api_key.py | |
###################################################################### | |
# Grafana Automation Script | |
# | |
# This script automates the process of generating an token key, creating | |
# a new service account (user) Ensure that you set the necessary | |
# environment variables(gitlab) before running the script. | |
# | |
# Author: Taras |
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
# This file is a list of useful Grafana queries | |
# select job then select container then print only log field from json | |
{job="fluent-bit"} |~ `$doc_container_name` | json output="log" | line_format `{{.output}}` | |
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
# Faster Makefiles. (jobs,threads, makefile) | |
# export MAKEFLAGS=-j$(($(grep -c ^processor /proc/cpuinfo) - 1)) | |
# export MAKEFLAGS=-l | |
# export MAKEFLAGS=-j | |
# alias make='make -j' | |
# MAKEFLAGS += --output-sync=target | |
# export MAKE=-j | |
export MAKEFLAGS=-j72 | |
export CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) |