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
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 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
rule win_matiex_keylogger_v1 { | |
meta: | |
author = "Johannes Bader @viql" | |
date = "2020-07-20" | |
description = "detects the Matiex Keylogger" | |
tlp = "white" | |
strings: | |
$obfuscator_1 = "OiCuntJollyGoodDayYeHavin_____________________________________________________" |
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 | |
from datetime import datetime | |
seed_const = 42 | |
days_period = 16 | |
nr_of_domains = 64 | |
third_lvl_min_len = 8 | |
third_lvl_max_len = 15 | |
class Rand: |
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
#include <stdio.h> | |
#include <string.h> | |
unsigned long int rand_int_modulus(unsigned long int *ix, unsigned long int modulus) { | |
unsigned long int k1; | |
k1 = *ix / 127773; | |
*ix = 16807 * (*ix - k1 * 127773) - k1 * 2836; | |
return *ix % modulus; | |
} |
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
network | |
working | |
group | |
eastlake | |
request | |
for | |
comments | |
motorola | |
laboratories | |
updates |
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>' |
NewerOlder