Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function download(url) { | |
let element = document.createElement('a'); | |
element.setAttribute('href', url); | |
element.setAttribute('download', url.split('/')[url.split('/').length-1]); | |
element.style.display = 'none'; | |
document.body.appendChild(element); | |
element.click(); | |
document.body.removeChild(element); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#By Apie, 2021-03-08 | |
import sys | |
from lxml import html | |
import requests | |
BASE_URL = 'https://www.imdb.com' | |
assert len(sys.argv) > 1, 'provide ratings page url' | |
url = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 8 1-24 12 * sed -n $(/bin/date +\%d)p /home/santa/presents.txt | mail user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
screen -list | |
if [ $? -eq 0 ] && [ -z "$STY" ] | |
then | |
echo -n "Attach screen session? (Y/n)" | |
read answer | |
if [ "$answer" == "" ] || [ "$answer" != "${answer#[Yy]}" ] ;then | |
screen -UraAd | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Format items in an RSS feed for use in an IRC channel topic. E.g: | |
# ma 18jun Hackatrain| ma 18jun UT Educational Award Ceremony| wo 20jun Lunchlezing Ricardo Rail | |
# | |
# Author: Apie | |
# Licence: MIT | |
use strict; | |
use warnings; | |
use 5.010; | |
use XML::FeedPP; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Format items in an RSS feed for use in an IRC channel topic. E.g: | |
# ma 18jun Hackatrain| ma 18jun UT Educational Award Ceremony| wo 20jun Lunchlezing Ricardo Rail | |
# | |
# Licence: MIT | |
import re | |
import datetime | |
from rss_parse import RSSParser | |
from dateutil.parser import parse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Licence: MIT | |
# Uitvoer van commando 'http' alleen tonen bij successvolle exitcode. | |
# Consequentie is dat het request 2x gedaan moet worden, want opslaan in bash breekt alle kleuren etc. | |
# Retourneert originele exitcode. | |
if [ "$1" != "http" ] | |
then | |
echo "Alleen geschikt voor het commando 'http'." | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Tubantia scroll to top | |
// @version 1 | |
// @include https://www.tubantia.nl/* | |
// @include https://www.gelderlander.nl/* | |
// @include https://www.bd.nl/* | |
// @include https://www.ad.nl/* | |
// @description If you browse Tubantia without javascript, each page will be scrolled to the bottom.. Use this script to fix that. | |
// @grant none | |
// @namespace https://greasyfork.org/users/8309 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Taaladvies.net focus input | |
// @namespace taaladviesfocus | |
// @description Taaladvies.net focus input | |
// @include http://taaladvies.net/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
document.getElementsByClassName("small")[0].focus(); |
NewerOlder