Skip to content

Instantly share code, notes, and snippets.

View developerfromjokela's full-sized avatar
🪑
chil

DFJ developerfromjokela

🪑
chil
View GitHub Profile
@developerfromjokela
developerfromjokela / oikeavastaus_otava.js
Last active March 30, 2020 06:13
Skripti pöllii Otavan digitehtävistä oikean vastauksen ja printtaa sen consoleen. Käyttöohjeet alempana
// Jos ei pyöri tehtäväsivulla, se avataan.
if (document.getElementsByTagName("iframe").length > 0) {
var frame = document.getElementsByTagName("iframe")[0];
var id = frame.id;
if (id.includes("UbilabsContentPortlet_frame")) {
alert("Sinulle avataan uusi välilehti, johon tämä tehtävä tehdään. Liitä tämä koodi uudelleen, jotta vastaukset tulevat esiin.");
window.open(frame.src, '_blank');
} else {
runCheat();
}
@developerfromjokela
developerfromjokela / b64_decoder.php
Created May 11, 2020 20:02
This PHP Script will decode a base64-encoded file to a separate file, command: php b64_decoder.php filename
<?php
$targetPath=__DIR__."/".$argv[1];
echo $targetPath;
$data = file_get_contents($targetPath);
$content= base64_decode($data);
$file = fopen($targetPath.".decoded", 'w');
fwrite($file, $content);
fclose($file);
echo "done";
@developerfromjokela
developerfromjokela / index.android.bundle
Created May 22, 2020 08:00
Parcels App React JS code
This file has been truncated, but you can view the full file.
var __DEV__ = false, __BUNDLE_START_TIME__ = this.nativePerformanceNow ? nativePerformanceNow() : Date.now(), process = this.process || {};
process.env = process.env || {};
process.env.NODE_ENV = 'production';
!function (r) {
'use strict';
r.__r = o, r.__d = function (r, n, i) {
if (null != e[n])
return;
e[n] = {
dependencyMap: i,
@developerfromjokela
developerfromjokela / docplayer_auth_script.js
Last active June 1, 2020 19:43
Docplayer viewer authentication process reverse-engineered.
'use strict';
parameters = function() {
/** @type {(Array<string>|null)} */
var o = document.location.toString().match(/docview\/(\d+)\/(\d+)/i);
/** @type {string} */
var hasBaseRule = o[2];
/** @type {string} */
var onetype = o[1];
/** @type {number} */
var ex = Math.round((Date.now() + (new Date).getTimezoneOffset()) / 1000) + 24 * 60 * 60;
@developerfromjokela
developerfromjokela / doc.txt
Last active August 20, 2023 17:30
JAMIX Menu REST API
API for finding "Kitchens":
https://fi.jamix.cloud/apps/menuservice/rest/haku/public
API for reading the table:
http://fi.jamix.cloud/apps/menuservice/rest/haku/menu/<customerID>/<kitchenID>?lang=fi
GET Params:
lang, language (fi, or en). Default = en.
type, json or table. Default = json.
https://www.amica.fi/api/restaurant/menu/recipe?language=fi&recipeId=7088
@developerfromjokela
developerfromjokela / main.py
Last active September 21, 2020 11:24
Skripti luo kokeita jotta saa abitin sanavaraston talteen
import requests
import requests.utils
import os.path
"""Filename"""
filename = "sanavarasto.txt"
abittiUsername = ""
abittiPassword = ""
@developerfromjokela
developerfromjokela / sanavarasto.txt
Created September 21, 2020 11:01
Abitti Salasanan Sanakirja (kesken, lisää tulee myöhemmin)
osmoosi
vamppaus
litra
pelko
puusolu
tosikko
layout
ostjakki
parkaisu
rusentua
@developerfromjokela
developerfromjokela / sanavarasto_uusi.txt
Created September 21, 2020 18:48
Uusi sanalista abitin salasanojen arvaamiseen (yhteensä 82,375 sanaa)
manaus
insesti
monasti
peoni
fiksu
trulli
laava
taksi
smoking
dekoltee
@developerfromjokela
developerfromjokela / ellibs.api.txt
Created September 27, 2020 07:39
Ellibs Rajapinta API
https://api.ellibs.com/v1.3/json/patronAuth/app12480
https://api.ellibs.com/v1.3/json/listCollections/app12480
Auth: Basic (app12480:ZWXqi30gc78ifBcrTf9uSasw6dSWwFt7itsYPkbwa3Lq)
Login POST:
id: library id
patron_id: library card number
password: pin-code or password