This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import urllib | |
def imdb_id_from_title(title): | |
""" return IMDb movie id for search string | |
Args:: | |
title (str): the movie title search string | |
Returns: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import requests | |
CONFIG_PATTERN = 'http://api.themoviedb.org/3/configuration?api_key={key}' | |
IMG_PATTERN = 'http://api.themoviedb.org/3/movie/{imdbid}/images?api_key={key}' | |
KEY = '<your_api_key>' | |
def _get_json(url): | |
r = requests.get(url) | |
return r.json() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ------------------------------------------------------------------------ */ | |
/* highlight the menu item labeled "blog" if not on static pages */ | |
function add_custom_class($classes=array(), $menu_item=false) { | |
if ( !is_page() && 'Blog' == $menu_item->title && ! in_array( 'current-menu-item', $classes ) ) { | |
$classes[] = 'current-menu-item'; | |
} | |
return $classes; | |
} | |
add_filter('nav_menu_css_class', 'add_custom_class', 100, 2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
from datetime import datetime, timedelta | |
import time | |
import logging | |
import argparse | |
BASE_URL = 'https://api.twitch.tv/kraken/' | |
CLIENTID = '<add your API key here>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import sqlite3 as lite | |
import os | |
def _open_db(db): | |
try: | |
con = lite.connect(db) | |
cur = con.cursor() | |
return (cur,con) | |
except lite.Error as e: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
import json | |
import re | |
import os | |
import string | |
import argparse | |
BASE_URL = 'https://api.twitch.tv' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import sqlite3 as lite | |
import os | |
from collections import defaultdict | |
def _open_db(db): | |
try: | |
con = lite.connect(db) | |
cur = con.cursor() | |
return (cur,con) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Code based on: | |
https://github.com/mvillalba/python-ant/blob/develop/demos/ant.core/03-basicchannel.py | |
in the python-ant repository and | |
https://github.com/tomwardill/developerhealth | |
by Tom Wardill | |
""" | |
import sys | |
import time | |
from ant.core import driver, node, event, message, log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wtipubctwiekhir.net | |
rwmu35avqo12tqc.com | |
rskb5bsfhm2fk5h.net | |
rbp9pprrxgflut9.com | |
zzxeyzgy45yy2a.net | |
e3oa4wglvd21xa.com | |
mqmq1hvmtxzjv.net | |
pd4o4wu24vimn.com | |
tlmrzvpbpsqsb.net | |
pbmnz59uzndpo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
""" | |
Shiotob DGA | |
Generates domains for the Shiotob malware | |
- top level domains alternate between '.net' and '.com' | |
- domains are between 14 and 19 characters long | |
- domains consist of all letters and digits 123945 |
OlderNewer