Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Saqib Ameen saqibameen

🎯
Focusing
Block or report user

Report or block saqibameen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View hosted-domains-api-response.js
// Response from Hosted Domains API by IPInfo.io
{
"domain": "comcast.net",
"ip": "69.252.80.75",
"asn": "AS7922",
"count": 939,
"range": "69.240.0.0/12",
"domains": [
[
"comcast.net",
View range-api-response.js
// Response from Range API agains comcast.net.
{
"domain": "comcast.net",
"num_ranges": "37330",
"ranges": [
"23.24.240.0/29",
"23.24.240.64/29",
"23.24.240.128/28",
"23.24.240.152/29",
"23.24.240.168/29",
View range-api-response.json
{
"domain": "comcast.net",
"num_ranges": "37330",
"ranges": [
"23.24.240.0/29",
"23.24.240.64/29",
"23.24.240.128/28",
"23.24.240.152/29",
"23.24.240.168/29",
"23.24.240.192/29",
View ASN-API-respones.js
// The response from the ASN API.
{
"asn": "AS7922",
"name": "Comcast Cable Communications, LLC",
"country": "US",
"allocated": "1997-02-14",
"registry": "arin",
"domain": "comcast.net",
"num_ips": 71220480,
"prefixes": [
View IPInfo-bulk-lookup.sh
# Hitting /batch endpoint with mulitple IP addresses.
curl -XPOST -H "Content-Type: application/json" \
--data '["75.72.7.215/company", "8.8.4.4/asn"]' \
ipinfo.io/batch?token=$TOKEN # TOKEN contains your ipinfo token
# Response in JSON.
{
"75.72.7.215/company": {
"name": "Comcast Cable Communications, LLC",
@saqibameen
saqibameen / go-settings.sh
Created Mar 20, 2019
Setting Paths for GO
View go-settings.sh
export GOPATH=/Users/saqibameen/Code/sa-learn-go/project1/main
export GOBIN=$GOPATH/bin
PATH=$PATH:$GOPATH:$GOBIN
export PATH
View reset.css
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
View css-starter.css
/**
* Main CSS
*
* @author Saqib Ameen
*/
/* global box-sizing */
*,
*:after,
*:before {
View ipinfo-bulk-lookup.sh
# The IPs inside input.txt file.
75.72.7.215
216.189.129.6
38.88.189.58
# Using the `xargs` command to perform lookup for each of the IP.
cat input.txt | xargs -I% curl http://ipinfo.io/%/country
# Output.
US
View hosted-domains-api
ipinfo.io/domains/COMPANY_DOMAIN_NAME?token=YOUR_ACCESS_TOKEN
You can’t perform that action at this time.