Skip to content

Instantly share code, notes, and snippets.

View tommelo's full-sized avatar

Tom Melo tommelo

  • IT Gorillaz
  • Stuttgart, Germany
View GitHub Profile
@tommelo
tommelo / instagram.js
Created September 10, 2017 22:53
A Simple Instagram Scraper
'use strict';
var util = require('util');
var _ = require('lodash');
var Scraper = require('./scraper');
/**
* The default constructor
*/
function Instagram() {
@tommelo
tommelo / influence.js
Created September 10, 2017 22:59
Simple Social Influencer Finder
var Google = require('./lib/google');
var Hunter = require('./lib/hunter');
var Instagram = require('./lib/instagram');
/**
* The defaul constructor
*/
function Influence() {
}
@tommelo
tommelo / test.js
Created September 10, 2017 23:19
Test the Influencers Finder
'use strict';
var Influence = require('./').Influence;
var term = 'top fitness instagram accounts';
Influence.find(term).then(
/**
* Handles the instagram profiles
*/
@tommelo
tommelo / resut.json
Last active September 10, 2017 23:27
[
{
"link": "https://www.instagram.com/menshealthmag",
"username": "menshealthmag",
"name": "Men's Health",
"followers": "939k",
"picture": "https://instagram.fcpq1-1.fna.fbcdn.net/t51.2885-19/11371057_983333891687510_70028928_a.jpg"
},
{
"link": "https://www.instagram.com/harpersbazaarus",
<?php
class Events {
private static $listeners = array();
public static function listen($event, $callback) {
self::$listeners[$event][] = $callback;
}
SAM_FILE = r'C:\Windows\System32\config\sam'
with open(SAM_FILE, 'r') as sam:
print sam.readlines()
@tommelo
tommelo / admin-check.py
Last active September 14, 2023 10:27
import os
import sys
import ctypes
import _winreg
def is_running_as_admin():
'''
Checks if the script is running with administrative privileges.
Returns True if is running as admin, False otherwise.
'''
import os
import sys
import ctypes
import _winreg
CMD = r"C:\Windows\System32\cmd.exe"
FOD_HELPER = r'C:\Windows\System32\fodhelper.exe'
PYTHON_CMD = "python"
REG_PATH = 'Software\Classes\ms-settings\shell\open\command'
DELEGATE_EXEC_REG_KEY = 'DelegateExecute'
class Alphanumeric(object):
ALPHABET_LENGTH = 26
def __init__(self, nrange=None):
self.current_letter = 'z'
self.current_number = 0
self.nrange = nrange
def forward_letter(self, letter, positions):
@tommelo
tommelo / evil.js
Last active February 10, 2018 12:53
evil hacker 101
console.log("ok");