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
# touch /etc/systemd/system/uba.service | |
# chmod 664 /etc/systemd/system/uba.service | |
# vim /etc/systemd/system/uba.service | |
[Unit] | |
Description=UBA-SERVER | |
[Service] | |
Type=simple | |
RemainAfterExit=yes |
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
#!/bin/bash | |
# Usage: ./check_webex_api.sh sitename email_or_user password | |
if [ $# -eq 0 ]; then | |
echo "No arguments provided" | |
echo | |
echo | |
echo "Usage: ./check_webex_api.sh sitename email_or_user password" | |
echo | |
echo "Note: Ensure that the special characters in password are escaped." |
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
bert | |
tflow |
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
https://any-api.com/ | |
https://www.programmableweb.com/apis/directory | |
https://explore.postman.com/ |
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 VALID SSL | |
(Helps fix VNC error with SSL) Err: Failed to start VNC server: Our own certificate /etc/pve/local/pve-ssl.pem failed validation against /etc/pve/pve-root-ca.pem: The certificate hasn't got a known issuer | |
# Must rm/mv existing SSL | |
/etc/pve/pve-root-ca.pem | |
/etc/pve/priv/pve-root-ca.key | |
/etc/pve/nodes/<node>/pve-ssl.pem | |
/etc/pve/nodes/<node>/pve-ssl.key |
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 VALID SSL | |
(Helps fix VNC error with SSL) Err: Failed to start VNC server: Our own certificate /etc/pve/local/pve-ssl.pem failed validation against /etc/pve/pve-root-ca.pem: The certificate hasn't got a known issuer | |
# Must rm/mv existing SSL | |
/etc/pve/pve-root-ca.pem | |
/etc/pve/priv/pve-root-ca.key | |
/etc/pve/nodes/<node>/pve-ssl.pem | |
/etc/pve/nodes/<node>/pve-ssl.key |
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
#!/bin/sh | |
# This pre-commit hook will prevent you from committing any line (or filename) containing | |
# the string NOCOMMIT. Use that tag in comments around source code you want to avoid | |
# accidentally committing, like temporary IP addresses or debug printfs. | |
# | |
# To add it to an existing repository, save it to .git/hooks/pre-commit (or append, if | |
# that file already exists). Remember to make executable (chmod +x ...) | |
# | |
# To automatically add this pre-commit hook to every repository you create or clone: |
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 function copies a folder (and optionally, its subfolders) | |
# | |
# When copying subfolders it calls itself recursively | |
# | |
# Requires WebClient object $webClient defined, e.g. $webClient = New-Object System.Net.WebClient | |
# | |
# Parameters: | |
# $source - The url of folder to copy, with trailing /, e.g. http://website/folder/structure/ | |
# $destination - The folder to copy $source to, with trailing \ e.g. D:\CopyOfStructure\ |
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
#!/ffp/bin/bash | |
# https://linhost.info/2013/10/download-test-files/ | |
SOURCES=( | |
"http://ns0.multikabel.net/100mb.nul" | |
"http://servermars.nl/100mb.bin" | |
"http://speedtest.tweak.nl/100mb.bin" | |
"http://cachefly.cachefly.net/100mb.test" | |
"http://mirror.leaseweb.com/speedtest/100mb.bin" |
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
# misc. | |
./splunk install app -update 1 -auth : | |
By default, splunk ports are listening on all iterfaces with port 8000, and 127.0.0.1 with port 8065... this can be modified by tinkering with /opt/splunk/lib/py*/site-packages/splunk/appserver/mrsparkle/root-py --proxied=... | |
splunk/kvstore/mongo | |
# To start splunk daemon | |
sudo /opt/splunk/bin/splunk start | |
# To make local Linux splunk instance available online |