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 / aws_lambda_market.as
Created June 29, 2020 22:48
[aws lambda marketplace] #productivity #marketplace #lambda #serverless #function #faas
Marketplace for Functions: https://console.aws.amazon.com/lambda/home#/create/function?tab=serverlessApps
--- RAW notes on Splunk + AWS ---
Webhook for Splunk on AWS:
https://us-east-2.console.aws.amazon.com/lambda/home?region=us-east-2#/create/app?applicationId=arn:aws:serverlessrepo:us-west-2:655989818655:applications/Webhook-to-Splunk-HTTP-Event-Collector
https://1h6at9967c.execute-api.us-east-2.amazonaws.com/Prod
https://1h6at9967c.execute-api.us-east-2.amazonaws.com/Prod/webhook-to-hec?url=<your.server.com>&port=8088&http_method=https&token=<223342-23242-232324>
@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"