Skip to content

Instantly share code, notes, and snippets.

Avatar

IndianGuru IndianGuru

View GitHub Profile
@IndianGuru
IndianGuru / pwnedtest.go
Created Sep 27, 2016
A Go program that uses the pwned.go library
View pwnedtest.go
package main
import (
"fmt"
"time"
"github.com/SatishTalim/pwned"
)
func main() {
@IndianGuru
IndianGuru / pwned.go
Created Sep 27, 2016
A go package for the HaveIBeenPwned Rest API
View pwned.go
package pwned
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"net/http"
"time"
)
@IndianGuru
IndianGuru / struct.go
Last active Sep 26, 2016
Pwned Struct
View struct.go
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
My First Telegram Bot
View myfirstbot.go
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"strconv"
)
@IndianGuru
IndianGuru / mynsfw.go
Created May 24, 2016
Go and Clarifai API
View mynsfw.go
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
View mcs_struct.go
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
To access Microsoft's Face API
View mcs.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
)
@IndianGuru
IndianGuru / temp.go
Last active Oct 7, 2016
Program to access tags
View temp.go
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
@IndianGuru
IndianGuru / mycf.go
Last active Oct 7, 2016
Go program to access Clarifai API
View mycf.go
package main
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"strings"
)
@IndianGuru
IndianGuru / gowatson.go
Last active May 9, 2016
Go program to use Watson
View gowatson.go
package main
import (
"fmt"
"io"
"log"
"net/http"
"os"
)
You can’t perform that action at this time.