Skip to content

Instantly share code, notes, and snippets.

View isoteemu's full-sized avatar

Teemu isoteemu

  • University of Jyväskylä
View GitHub Profile
@isoteemu
isoteemu / keskisuomalainen_paywall.user.js
Last active April 11, 2016 10:52
Remove paywalls from ksml.fi and savonsanomat.fi
// ==UserScript==
// @name Keskisuomalainen Paywall resetter
// @namespace maksumuuri
// @include http://www.ksml.fi/*
// @include http://www.savonsanomat.fi/*
// @version 1
// @grant none
// ==/UserScript==
// They just store items in local storage.
@isoteemu
isoteemu / hs_fi_paywall.user.js
Created June 25, 2015 21:37
Remove paywall from helsingin sanomat / hs.fi
// ==UserScript==
// @name hs.fi paywall resetter
// @namespace maksumuuri
// @include http://www.hs.fi/*
// @version 1
// @grant none
// ==/UserScript==
/**
* Helsinginsanomat Paywall resetting
@isoteemu
isoteemu / vpnbook_connect.py
Last active April 28, 2016 10:01
Automatic vpnbook password updating script for KWallet and NetworkManager
#!/usr/bin/env python
'''
Automatic vpnbook password updating script for KWallet and NetworkManager
'''
url = 'http://www.vpnbook.com/freevpn'
## To find out your NetworkManager uuid, run: nmcli con list
uuid = '2bf2b05e-1b6f-4cd3-abe3-d07fb15c54d0'
import re
@isoteemu
isoteemu / 90-ipredator.sh
Created April 28, 2016 10:45
NetworkManager dispatcher script for limited VPN connection routing
#!/bin/sh
#
# * Preample
#
# This script is a NetworkManager script for generating necessary routing tables
# when using IPRedator service as a secondary network connection.
#
# By default, programs will still be using default route, but it becomes possible to
# bind them to use ppp0 -interface or IPRedator ip address.
@isoteemu
isoteemu / adblock-rules.txt
Created November 9, 2017 01:02
Adblock rules for the peepl.
!
! [x|on|e]watchseries.to, easylistin malliin.
!
|blob:$domain=xwatchseries.to
$websocket,domain=xwatchseries.to
@@||maxcdn.bootstrapcdn.com^$script,domain=xwatchseries.to
|http://$other,script,stylesheet,third-party,xmlhttprequest,domain=xwatchseries.to
|https://$other,script,stylesheet,third-party,xmlhttprequest,domain=xwatchseries.to
/([0-9]{1,3}\.){3}[0-9]{1,3}/$popup,domain=xwatchseries.to
xwatchseries.to##.episode-summary + style + [class]
@isoteemu
isoteemu / fan.py
Created October 24, 2020 17:03
nespi npn fan
import RPi.GPIO as IO
from gpiozero import CPUTemperature
import time
import logging
minspin = 25
logger = logging.getLogger(__name__)
@isoteemu
isoteemu / rgb_powerled.py
Created October 25, 2020 00:43
RGB diskovalo GPIO liitäntään.
import RPi.GPIO as GPIO
import time
from math import (sin, pi)
from psutil import cpu_percent
import logging
logger = logging.getLogger(__name__)
GPIO.setwarnings(False)
red_gpio = 26
@isoteemu
isoteemu / teemu-was-alone.py
Created July 29, 2022 16:06
pygame for programming 22 mooc course.
r"""
teemu was alone
===============
Pygame made for Mooc Programming 2022 part 14.
<https://programming-22.mooc.fi/part-14>
Copyright (c) 2022 Teemu Autto <mooc.fi@teemu.rautakuu.org>
How to play
@isoteemu
isoteemu / lahjakorttihuijareita.md
Last active October 13, 2023 04:35
Huijareiden käyttämiä sähköpostiosoitteita
@isoteemu
isoteemu / libscammer.py
Last active January 12, 2024 13:39
Python library for generating data for flooding scammers
"""
libscammer.py - A library for flooding scammers with fake data
This library is used by the scripts in this repository to generate fake data and send it to scammers.
:func:`init()` returns a :class:`Faker` and :class:`requests.Session` instance that can be used to generate fake data and send it to the scammer.
>>> from libscammer import init
>>> faker, session = init(["en_US", "en_GB"])
>>> session.post("https://example.com", data={"name": faker.name()})