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 / 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 / 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 / ML-raw-thoughts
Created June 7, 2020 22:55
[ml] raw thoughts
bert
tflow
@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 / 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 / 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 / azure_blob_storage.js
Created June 29, 2020 23:47
azure_blob_storage.js
!function(t){var e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):((e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).AzureStorage||(e.AzureStorage={})).Blob=t()}(function(){return function o(a,s,l){function c(e,t){if(!s[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(u)return u(e,!0);var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[e]={exports:{}};a[e][0].call(r.exports,function(t){return c(a[e][1][t]||t)},r,r.exports,o,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,n){e.exports.generateDevelopmentStorageCredentials=function(t){var e="UseDevelopmentStorage=true;";return t&&(e+="DevelopmentStorageProxyUri="+t),e};var i=t("../lib/services/blob/blobservice.browser");e.exports.BlobService=i,e.exports.BlobUtilities=t("../lib/service
@mayurah
mayurah / js-skill
Created August 6, 2020 13:16
requirements for assessment of a JS developer skills
# Summary
This repo documents requirements for assessing JS development skills
# Project description
Create a [React](https://reactjs.org/) component that is capable of taking as input a list of files with absolute paths and gives users the ability to explore that list of files hierarchically (tree) - similar to a file explorer. In addition to the `path`, each file will have a list of properties (e.g. size, create time, mod time, owner etc...) which need to be rendered when the files are presented.
# Example input
```
const files = [
@mayurah
mayurah / dashboard.xml
Created October 2, 2020 19:03
[Splunk] Dashboard #dashboard #css #beautification
<row>
<html>
<style>
.dashboard-element-title{
text-align: center;
background: #00506f;
font-family: Verdana;
}