Skip to content

Instantly share code, notes, and snippets.

View cyberpirate92's full-sized avatar
🖖
live long and prosper

Ravi Theja cyberpirate92

🖖
live long and prosper
View GitHub Profile
@cyberpirate92
cyberpirate92 / GoogleAnalyticsReportingv4ServiceAccount.cs
Created October 5, 2018 05:56 — forked from markwemekamp/GoogleAnalyticsReportingv4ServiceAccount.cs
Read data from Google analytics using Google Analytics Reporting v4 and a Service account
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Google.Apis.AnalyticsReporting.v4;
using Google.Apis.AnalyticsReporting.v4.Data;
using Google.Apis.Auth.OAuth2;
using Google.Apis.Services;
namespace Google_api
@cyberpirate92
cyberpirate92 / LdapClient.java
Created March 22, 2017 06:59
Example: How get user info from LDAP
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.Attributes;
import javax.naming.directory.SearchControls;
import javax.naming.directory.SearchResult;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.LdapContext;
import javax.xml.registry.infomodel.User;
import java.io.FileOutputStream;