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
# Script to convert RGB to HSI | |
import math | |
def rgb_to_hsi(R, G, B): | |
def get_H(): | |
if B < G: | |
return get_c() | |
else: | |
return 360 - get_c() |
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
# This script switches the file "creation time" with the file "last modified" time | |
# Scripted by d_Rickyy_b on 11.09.2017 | |
# Telegram: https://t.me/d_Rickyy_b | |
# Usage: scriptName.ps1 [-path] C:\path\to\folder [-filter] "*.txt" | |
# Both parameters are optional! | |
param ( | |
[string]$path = $PSScriptRoot, | |
[string]$filter = "*" | |
) |
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 python | |
# -*- coding: utf-8 -*- | |
# pylint: disable=W0613, C0116 | |
# type: ignore[union-attr] | |
# This program is dedicated to the public domain under the CC0 license. | |
# Source: https://github.com/python-telegram-bot/python-telegram-bot/blob/master/examples/echobot.py | |
""" | |
Simple Bot to reply to Telegram messages. |
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
BOT_TOKEN = "1234567890:ABCDEFGHIJKLMNOPQRSTUVW123456" | |
admin_channel_id = -999999999999 | |
admins = [987654321, 123456789] | |
chats = [-1111111111111] | |
# Allowed chats for AllowedChatsFilter | |
whitelisted_chats = [-999999999999, -888888888888] | |
# Allowed channels for ChannelForwardFilter |
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
import logging | |
import time | |
from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
from telegram.error import BadRequest | |
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler | |
BOT_TOKEN = "<BOT_TOKEN>" | |
logger = logging.getLogger(__name__) |
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 | |
cd /var/www/html | |
rm index.html | |
version="2.7.1" | |
wget -q "https://github.com/grocy/grocy/releases/download/v${version}/grocy_${version}.zip" | |
unzip "grocy_${version}.zip" | |
rm "grocy_${version}.zip" | |
chown www-data: /var/www/html -R |
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
[Unit] | |
Description=Python-GeizhalsBot | |
[Service] | |
Type=simple | |
ExecStart=/opt/bots/Python-GeizhalsBot/.venv/bin/python3 /opt/bots/Python-GeizhalsBot/main.py | |
WorkingDirectory=/opt/bots/Python-GeizhalsBot | |
User=botFather | |
[Install] |
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
! content from https://goo.gl/D3u0Tz | |
axel-springer-akademie.de | |
ein-herz-fuer-kinder.de | |
ikiosk.de | |
bild.de | |
bz-berlin.de | |
welt.de | |
n24.de | |
autobild.de | |
sportbild.de |
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
import time | |
from lark import Lark | |
from lark import Transformer | |
import json | |
# Data holder classes used for parsing | |
class Pair(object): | |
def __init__(self, name, value): | |
self.name = name |
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
# -*- coding: utf-8 -*- | |
import logging.handlers | |
import os | |
from pastepwn import PastePwn | |
# Import new actions here - you need to import each action prior to using it | |
from pastepwn.actions import EmailAction, IrcAction | |
# Import new analyzers here - you need to import each analyzer prior to using it | |
from pastepwn.analyzers import MailAnalyzer, WordAnalyzer |
OlderNewer