This file contains hidden or 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 Toggle Framapiaf column | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Daniel Buteau | |
// @match https://framapiaf.org/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=framapiaf.org | |
// @require https://code.jquery.com/jquery-3.6.1.slim.min.js | |
// @grant none |
This file contains hidden or 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 | |
# coding: utf-8 | |
import os | |
import re | |
import subprocess | |
import sys | |
from ansible import __version__ as ANSIBLE_VERSION | |
if ANSIBLE_VERSION.startswith('2'): |
This file contains hidden or 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 | |
# encoding: utf-8 | |
""" | |
count the number of objects containing attributes values (regex) in list of objects | |
made regex case insensitive | |
""" | |
import re | |
class user: | |
def __init__(self, name, age): |
This file contains hidden or 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
#βββββββββββββββββββββββββββββββββββββββββ minutes: 0-59, */2 every 2 minutes | |
#β βββββββββββββββββββββββββββββββββββββββ Hours: 0-23 | |
#β β βββββββββββββββββββββββββββββββββββββ Day: 1-31 | |
#β β β βββββββββββββββββββββββββββββββββββ Month: 1-12 | |
#β β β β βββββββββββββββββββββββββββββββββ WeekDay: 0-7; Sunday=0, Saturday=6 | |
#β β β β β ββββββββββββββββββββββββββββββ user which will exec the command (can be not supported on somes systems) | |
#β β β β β β | |
#* * * * * user command to execute | |
#eg: execute backup at 2h30 and 14h30 from monday to friday | |
#30 2,14 * * 1-5 root /usr/local/sbin/backup.sh |
This file contains hidden or 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 | |
# usefull if you don't remember which password you setted | |
# you can try misc password and the script will warn you | |
# when you found the correct one | |
# Requirement: | |
# you need to install "whois" package | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit |