Skip to content

Instantly share code, notes, and snippets.

View leonekmi's full-sized avatar

Leon leonekmi

View GitHub Profile
@leonekmi
leonekmi / index.html
Created April 6, 2022 14:51
SAÉ 203 - TD 3 - Ouvrir / Fermer
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ouvrir / Fermer</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
@leonekmi
leonekmi / anifan.js
Last active December 14, 2018 23:40
Create a library website support for Scrobbly.
/*
Scrobbly is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Scrobbly is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@leonekmi
leonekmi / dynamic.js
Created November 28, 2018 13:08
Create an anime streaming website support in Scrobbly
/*
Scrobbly is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Scrobbly is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Error: Command failed: /home/leonekmi/botnodejs/node_modules/youtube-dl/bin/youtube-dl --dump-json -f best --default-search="ytsearch" BUBBLEs
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/leonekmi/botnodejs/node_modules/youtube-dl/bin/youtube-dl/__main__.py", line 19, in <module>
File "/home/leonekmi/botnodejs/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/__init__.py", line 465, in main
File "/home/leonekmi/botnodejs/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/__init__.py", line 455, in _real_main
File "/home/leonekmi/botnodejs/node_modules/youtube-dl/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1986, in download
{
"mfa_level": 0,
"emojis": [
{
"require_colons": true,
"managed": false,
"name": "twittolabel",
"roles": [
],
@leonekmi
leonekmi / mitm.lol.mdr.txt
Created September 17, 2017 16:07
Ouh làlà SFR
Starting Nmap 7.60 ( https://nmap.org/ ) at 2017-09-17 18:04 CEST
Nmap scan report for sigjpeigjzpig.com (82.216.111.15)
Host is up (0.014s latency).
rDNS record for 82.216.111.15: portail-front.tech.numericable.fr
Not shown: 998 filtered ports
PORT STATE SERVICE VERSION
80/tcp open http Apache httpd
|_http-server-header: Apache
|_http-title: 403 Forbidden
443/tcp open ssl/http Apache httpd
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] Lets find script dir.
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] _SCRIPT_='./acme.sh'
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] _script='/root/acme.sh'
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] _script_home='/root'
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] Using default home:/root/.acme.sh
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] Using config home:/root/.acme.sh
https://github.com/Neilpang/acme.sh
v2.7.0
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] Using api:
[samedi 20 mai 2017, 18:36:10 (UTC+0000)] Using config home:/root/.acme.sh
This file has been truncated, but you can view the full file.
function ADNCountDown(a, b, c, d) {
this.container = a, this.callback = d, this.currentTime = this.parseTime(b), this.startTime = this.parseTime(c), this.endTime = new Date(this.startTime.getTime() - (this.currentTime.getTime() - (new Date).getTime())), this.node = document.createElement("div"), this.node.className = "adn-player-countdown vjs-error-display adn-player-error";
var e = document.createElement("div");
e.className = "adn-player-countdown-content", e.innerHTML = "<div>Cette vidéo sera disponible dans :</div>", this.countdownNode = document.createElement("span"), this.countdownNode.className = "adn-player-countdown-value", e.appendChild(this.countdownNode), this.node.appendChild(e), this.container.appendChild(this.node);
var f = this;
this.timer = setInterval(function() {
f.sync()
}, 500), this.sync()
}! function(a) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = a();
Wed Apr 26 20:56:22 2017 Unrecognized option or missing or extra parameter(s) in lnvpn.ovpn:15: block-outside-dns (2.4.0)
Wed Apr 26 20:56:22 2017 OpenVPN 2.4.0 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 10 2017
Wed Apr 26 20:56:22 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Wed Apr 26 20:56:22 2017 Outgoing Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Wed Apr 26 20:56:22 2017 Incoming Control Channel Authentication: Using 256 bit message hash 'SHA256' for HMAC authentication
Wed Apr 26 20:56:22 2017 TCP/UDP: Preserving recently used remote address: [AF_INET]remoteip:1194
Wed Apr 26 20:56:22 2017 Socket Buffers: R=[212992->212992] S=[212992->212992]
Wed Apr 26 20:56:22 2017 UDP link local: (not bound)
Wed Apr 26 20:56:22 2017 UDP link remote: [AF_INET]remoteip:1194
Wed Apr 26 20:56:23 2017 TLS: Initial packet from [AF_INET]remoteip:1194, sid=df8c22d5 0bebbcaa
@leonekmi
leonekmi / keybase.md
Created April 26, 2017 12:58
Veryfying myself on Keybase

Keybase proof

I hereby claim:

  • I am leonekmi on github.
  • I am leonekmi (https://keybase.io/leonekmi) on keybase.
  • I have a public key whose fingerprint is BF50 3972 183C 43A5 56F9 E8CC 7FB2 5BA4 7C13 B355

To claim this, I am signing this object: