Skip to content

Instantly share code, notes, and snippets.

View exoticknight's full-sized avatar
🤔
progressing

exoticknight exoticknight

🤔
progressing
View GitHub Profile
@exoticknight
exoticknight / key.md
Created May 6, 2022 09:51
Twitter (un)official Consumer Key

Twitter Official Consumer Key

Twitter for Android

type:            PIN
Consumer key:    3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPhone

type:            PIN

Consumer key: IQKbtAYlXLripLGPWd0HUA

@exoticknight
exoticknight / cartesianProduct.js
Last active September 26, 2018 11:46
make Cartesian Product of arrays
// const arr = [
// [1,2],
// [4,5],
// [6,8]
// ]
// cartesianProduct(arr)
// [1, 4, 6]
// [2, 4, 6]
// [1, 5, 6]
// [2, 5, 6]
@exoticknight
exoticknight / checkip.py
Last active September 26, 2018 11:47
check whether the ip belongs to google using whois.
import urllib2
import json
raw_iplist= "193.92.133.35|74.125.131.34"
new_iplist = list()
not_iplist = list()
err_iplist = list()
for ip in raw_iplist.split("|"):