Skip to content

Instantly share code, notes, and snippets.

View IndianGuru's full-sized avatar

IndianGuru IndianGuru

View GitHub Profile
@IndianGuru
IndianGuru / pwnedtest.go
Created September 27, 2016 06:28
A Go program that uses the pwned.go library
package main
import (
"fmt"
"time"
"github.com/SatishTalim/pwned"
)
func main() {
@IndianGuru
IndianGuru / pwned.go
Created September 27, 2016 06:03
A go package for the HaveIBeenPwned Rest API
package pwned
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"
)
@IndianGuru
IndianGuru / struct.go
Last active September 26, 2016 07:57
Pwned Struct
type jResp struct {
Title string `json:"Title"`
Name string `json:"Name"`
Domain string `json:"Domain"`
BreachDate string `json:"BreachDate"`
AddedDate time.Time `json:"AddedDate"`
PwnCount int `json:"PwnCount"`
Description string `json:"Description"`
DataClasses []string `json:"DataClasses"`
IsVerified bool `json:"IsVerified"`
@IndianGuru
IndianGuru / myfirstbot.go
Last active May 22, 2020 11:37
My First Telegram Bot
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strconv"
)
@IndianGuru
IndianGuru / mynsfw.go
Created May 24, 2016 04:29
Go and Clarifai API
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
type FaceResp []struct {
FaceID string `json:"faceId"`
FaceRectangle struct {
Top int `json:"top"`
Left int `json:"left"`
Width int `json:"width"`
Height int `json:"height"`
} `json:"faceRectangle"`
FaceAttributes struct {
Gender string `json:"gender"`
@IndianGuru
IndianGuru / mcs.go
Created May 19, 2016 08:43
To access Microsoft's Face API
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
)
@IndianGuru
IndianGuru / temp.go
Last active October 7, 2016 23:32
Program to access tags
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
@IndianGuru
IndianGuru / mycf.go
Last active October 7, 2016 23:33
Go program to access Clarifai API
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
@IndianGuru
IndianGuru / gowatson.go
Last active May 9, 2016 02:39
Go program to use Watson
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
)