Skip to content

Instantly share code, notes, and snippets.

View benktesh's full-sized avatar

Benktesh Sharma benktesh

View GitHub Profile
import jcifs.smb.NtlmPasswordAuthentication;
import jcifs.smb.SmbException;
import jcifs.smb.SmbFile;
import java.net.MalformedURLException;
public class Main {
public static void main(String[] args) {
String url = "smb://127.0.0.1/test/";
String userName = "test";
String password = "password";
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fileShare</groupId>
<artifactId>fileShare</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<plugins>
@benktesh
benktesh / aggregate_app.xml
Last active June 11, 2019 04:31
aggregate_app.config
<configuration>
<appsettings>
<add key="datapath" value="C:\temp\">
</add></appsettings>
</configuration>
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Data.Odbc;
namespace Aggregate
{
class Program
package benktesh.smartstock;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
{
    "swagger": "2.0",
    "info": {
        "version": "v1",
        "title": "SmartStock API"
    },
    "paths": {
        "/api/Stock": {
            "get": {
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Swashbuckle.AspNetCore.Swagger;

namespace Api
{
@benktesh
benktesh / example2.js
Last active September 16, 2018 22:59
/**
*@NApiVersion 2.x
*@NScriptType MapReduceScript
*/
/**
* The script uses NetSuite's Map/Reduce pardigm implementation and uses getInputData, map, reduce and summarize stages. When completed,
* the script deletes existing Pricing data for for qualifying items using the following generalized algorithm:
* Read the items and price data in getinputdata
* In map stage, create a data structure for where key is itemid and value is pricedata.
/**
*@NApiVersion 2.x
*@NScriptType MapReduceScript
*/
/**
* The script uses NetSuite's Map/Reduce pardigm implementation and uses getInputData, map, and summarize stages. When completed,
* the script deletes existing Pricing data for for qualifying items using the following generalized algorithm:
* Read the items and price data in getinputdata
* In map stage, delete the price data that was passed from getInputData stage