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 -v | |
# Helps to install a puppet 6 agent (pointing to a puppet server/master) on CentOS / RHEL | |
set -e | |
alias sudo="sudo --preserve-env=PATH env " | |
# allow other installs | |
sudo yum install epel-release -y |
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 -v | |
# helps to install puppet 6 (as a master on this system) on CentOS/RHEL 7 | |
set -e | |
alias sudo="sudo --preserve-env=PATH env " | |
# allow other installs | |
sudo yum install epel-release -y |
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
Required: Visual Studio 2015 or 2017 (or probably later works) | |
Setup | |
1. Clone/download OpenSSL 1.1.1 source to a folder | |
2. Download / install Perl (They recommend Active perl) | |
I recommend using Chocolatey so for me: choco install activeperl | |
3. Ensure Perl is in the system path. (Choco appears to do this by default) | |
4. Download / install NASM | |
I recommend using Chocolatey so for me: choco install nasm | |
5. Ensure NASM is in the system path. (For me the directory to add was C:\Program Files\NASM) |
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
See https://github.com/csm10495/Enum.h/blob/master/StringEnums/Enum.h for the latest. |
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
''' | |
Brief: | |
ast_test.py - Quick and dirty test code of the Python abstract syntax tree. | |
The big thing is the ability to (sort of) see if a function calls another | |
specific function. | |
License: | |
MIT License - 2017 | |
Author(s): |
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
''' | |
Brief: | |
snb.py - Removes the red border Skype makes when screensharing. | |
Also sets Skype to low priority with a processor affinity to only run on one cpu/core. | |
This should help keep game/other app performance decent. | |
Description: | |
Run the script once when the border is up, and it will go away | |
(C) - MIT License - 2017 | |
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
""" | |
Brief: | |
This script makes a self-extracting .py/,exe of a given folder | |
Author: | |
Charles Machalow | |
""" | |
import argparse | |
import base64 | |
import os |
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
DESCRIPTION=\ | |
''' | |
Brief: | |
ubuntuSetup.py - A script to setup an Ubuntu-family system to the way I like it. | |
Tested on Ubuntu 16.04 LTS. Should work on Ubuntu 14.04 LTS. | |
Enabled on Debian but not tested at all... may work, may not. | |
Description: | |
Some of the things this installs and configures: | |
- VS Code |
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
''' | |
Brief: | |
This script demonstrates how to get the current stack frame in a way faster than using | |
inspect.stack()... which is really slow (like ~450 times slower than this solution in most cases) | |
If the fast solution won't work, will fall back to an inspect.stack() solution. | |
Author: | |
Charles Machalow | |
''' |
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
''' | |
Brief: | |
This searchs a directory recursively (by default the current directory) for a given regex match. The total number of matches is counted and printed at the end. | |
By default, it looks for lines where the author tag is given but there is no name provided. | |
Author(s): | |
Charles Machalow | |
''' | |
import os, re | |
REGEX = re.compile(r".*Author.*:\n(?:\s*|\s*\'\'\'\s*|\s*\"\"\"\s*)\n") | |
MAX_FILE_SIZE = 1024 * 128 #128 KB |