Skip to content

Instantly share code, notes, and snippets.

View mayurah's full-sized avatar
🏔️
grooming next generation of leaders and problem solvers!

Mayur Pipaliya mayurah

🏔️
grooming next generation of leaders and problem solvers!
View GitHub Profile
@mayurah
mayurah / uba_start_on_boot.as
Created June 22, 2020 20:02
uba_start_on_boot.as
# 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
@mayurah
mayurah / check_webex_api.sh
Created June 15, 2020 18:06
Test Connectivity with WebEx XML API —— Usage: ./check_webex_api.sh sitename email_or_user password
#!/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."
@mayurah
mayurah / ML-raw-thoughts
Created June 7, 2020 22:55
[ml] raw thoughts
bert
tflow
@mayurah
mayurah / api.list
Created June 3, 2020 23:43
[api explorer] api repositories #api #integration
https://any-api.com/
https://www.programmableweb.com/apis/directory
https://explore.postman.com/
@mayurah
mayurah / proxmox_notes.as
Last active August 27, 2018 13:15
Proxmox Notes on SSL, Migration, and miscellaneous topics
## 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
@mayurah
mayurah / proxmox_notes.as
Last active August 27, 2018 13:06
Proxmox Notes
## 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
@mayurah
mayurah / pre-commit
Created May 1, 2018 15:34 — forked from hraban/pre-commit.md
Git pre-commit hook (.git/hooks/pre-commit) to prevent accidentally committing debug code (add NOCOMMIT in source comment)
#!/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:
@mayurah
mayurah / batchdl.ps1
Created January 11, 2018 19:05
Batch download
####################################################################################################
# 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\
@mayurah
mayurah / speedtest.sh
Created January 4, 2018 20:25 — forked from mariusrugan/speedtest.sh
CURL download benchmark
#!/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"
@mayurah
mayurah / splunk enterprise
Last active November 3, 2017 19:56
Splunk enterprise on Ubuntu
# 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