Skip to content

Instantly share code, notes, and snippets.

@exmex
exmex / serienfans.js
Last active April 23, 2022 11:40
Get links for movies from serienfans.org / serienjunkies.team
var request = require('request');
var cheerio = require('cheerio');
var customHeaderRequest = request.defaults({
headers: { 'User-Agent': "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0" }
})
async function doRequest(url) {
return new Promise(function(resolve, reject) {
customHeaderRequest(url, function(error, response, body) {
@exmex
exmex / comcast_notify.py
Created February 3, 2016 03:08
Comcast notify
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():
@exmex
exmex / phpserver.bat
Last active January 12, 2016 23:28
Batch file for shell:sendto (Send a folder to this batch to execute built-in webserver from PHP)
@echo off
set /p UserPort= What port to bind to?
%windir%/explorer.exe http://localhost:%UserPort%
TITLE [%UserPort%] PHP Built-in Webserver
rem check if arg is file or dir
if exist "%~1\" (
rem Path to php file, or it's in PATH
php -S localhost:%UserPort% -t "%~1"
) else (
rem Path to php file, or it's in PATH
@exmex
exmex / gitVerToHeader.py
Last active January 3, 2016 03:52
Schematic Versioning to CPP Header
##The MIT License (MIT)
##
##Copyright (c) 2016 GigaToni
##
##Permission is hereby granted, free of charge, to any person obtaining a copy
##of this software and associated documentation files (the "Software"), to deal
##in the Software without restriction, including without limitation the rights
##to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
##copies of the Software, and to permit persons to whom the Software is
##furnished to do so, subject to the following conditions:
@exmex
exmex / gitToSchematicVersion.py
Last active January 3, 2016 01:54
SCHEMATIC Version from GIT
##The MIT License (MIT)
##
##Copyright (c) 2016 GigaToni
##
##Permission is hereby granted, free of charge, to any person obtaining a copy
##of this software and associated documentation files (the "Software"), to deal
##in the Software without restriction, including without limitation the rights
##to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
##copies of the Software, and to permit persons to whom the Software is
##furnished to do so, subject to the following conditions: