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/sh | |
cert_expiry(){ | |
# cert_expiry host port | |
openssl s_client -connect "${1}:${2}" -servername "${1}" 2>/dev/null </dev/null | \ | |
openssl x509 -noout -dates | grep notAfter | cut -d= -f 2 | |
} | |
difference(){ | |
# difference date date |
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/sh | |
# https://www.facebook.com/groups/LinuxUsersGroupOfficial/posts/4186776714756296/ | |
error(){ | |
>&2 echo "$@" | |
} | |
validate_and_calc(){ | |
# https://stackoverflow.com/a/808740 | |
if [ "$1" -eq "$1" ] 2>/dev/null |
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 Force Facebook to use the light theme. | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.facebook.com/* | |
// @grant none | |
// @run-at document-idle | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js |
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
.ipynb_checkpoints/ |
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
<?php | |
class ff_nonprintables extends Plugin { | |
private $host; | |
function about(){ | |
return array(0.1, "nonprintables", "peppec", false); | |
// inspired by https://github.com/fastcat/tt-rss-ff-xmllint | |
} | |
function api_version(){ |
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/sh | |
ROUTER_IP=192.168.1.1 | |
COUNTER=/tmp/networkisdown | |
MAXCALLS_REBOOT=6 | |
WIFI_INTERFACES="wlan0 wlan1" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/env python3 | |
# USAGE: | |
# $ ./downloader.py http://www.raiplay.it/programmi/*/puntate | youtube-dl -a - | |
import sys | |
import requests | |
import bs4 | |
from urllib.parse import urljoin | |
# TODO: (better, selective) Exception handling |
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 | |
from string import ascii_uppercase | |
alphabeth = ascii_uppercase | |
def caesar(string, key): | |
"""Given a `string` and a `key`, return-s a string in which every | |
character is substituted with the one `key` positions forward in | |
the `alphabeth`. |
NewerOlder