Skip to content

Instantly share code, notes, and snippets.

View tarakeshp's full-sized avatar

Tharakesh Pulikonda tarakeshp

View GitHub Profile
@tarakeshp
tarakeshp / multiple_ssh_setting.md
Created February 23, 2021 17:08 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@tarakeshp
tarakeshp / logstash-filebeat-5-minutes.md
Created February 8, 2021 12:48 — forked from meilinger/logstash-filebeat-5-minutes.md
Logstash and Filebeat in 5 minutes

Logstash and Filebeat in 5 minutes

What/Why?

  • Filebeat is a log shipper, capture files and send to Logstash for processing and eventual indexing in Elasticsearch
  • Logstash is a heavy swiss army knife when it comes to log capture/processing
  • Centralized logging, necessarily for deployments with > 1 server
  • Super-easy to get setup, a little trickier to configure
  • Captured data is easy to visualize with Kibana
  • Wny not just Logstash (ELK is so hot right now)?
@tarakeshp
tarakeshp / stream.js
Created February 2, 2021 09:37 — forked from DingGGu/stream.js
NodeJS Mp3 Streaming ExpressJS
var express = require('express');
var app = express();
var fs = require('fs');
app.listen(3000, function() {
console.log("[NodeJS] Application Listening on Port 3000");
});
app.get('/api/play/:key', function(req, res) {
var key = req.params.key;
@tarakeshp
tarakeshp / Activate Office 2019 for macOS VoL.md
Created December 14, 2019 06:12 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@tarakeshp
tarakeshp / user.js
Created May 6, 2019 16:37 — forked from EtienneR/user.js
XMLHttpRequest RESTful (GET, POST, PUT, DELETE)
// Get all users
var url = "http://localhost:8080/api/v1/users";
var xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.onload = function () {
var users = JSON.parse(xhr.responseText);
if (xhr.readyState == 4 && xhr.status == "200") {
console.table(users);
} else {
console.error(users);
@tarakeshp
tarakeshp / ShellIconOverlayIdentifiers_Fix.reg
Created February 21, 2019 09:14 — forked from WadeBarnes/ShellIconOverlayIdentifiers_Fix.reg
Registry script to fix Windows Explorer overlay icon priority issues with Tortoise and Dropbox.
Windows Registry Editor Version 5.00
; ==============================================================================================================================
; Registry script to fix Windows Explorer overlay icon priority issues with Tortoise and Dropbox.
;
; Priority is given to the Tortoise and Dropbox overlays. All others are ordered but are beyond the 15 overlays that
; Windows will use (Window will only use 11 from this list).
;
; Refer to the references for additional details.
;
; Open RegEdit as an administrator.
@tarakeshp
tarakeshp / Users.js
Created October 2, 2018 16:13 — forked from jfromaniello/Users.js
Fetch all the groups a user is member of with ldapjs
var nconf = require('nconf');
var ldap = require('ldapjs');
var async = require('async');
ldap.Attribute.settings.guid_format = ldap.GUID_FORMAT_D;
var Users = module.exports = function(){
var options = this._options = {
url: process.env["LDAP_URL"],
base: process.env["LDAP_BASE"],
bindDN: process.env["LDAP_BIND_USER"],