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 | |
| TELEGRAM_BOT_TOKEN="<token>" | |
| TELEGRAM_CHAT_ID="<chat-id>" | |
| HOSTNAME=$(hostname) | |
| STATE_FILE="path/to/ssh_watcher_state" | |
| LOG_FILE="/var/log/auth.log" | |
| send_telegram() { |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Quick Notes</title> | |
| <style> | |
| * { | |
| margin: 0; | |
| padding: 0; |
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 Instagram Grid Parser | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Adds a button to run the parse_grid function on Instagram and save data in the browser | |
| // @author You | |
| // @match https://www.instagram.com/*/saved/* | |
| // @grant none | |
| // ==/UserScript== |
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
| import random | |
| import tkinter as tk | |
| from pathlib import Path | |
| from time import sleep | |
| from tkinter import filedialog, messagebox, simpledialog | |
| from turtle import RawTurtle, TurtleScreen | |
| from pprint import pprint | |
| """ | |
| Lo script simula una griglia quadrata del mondo di lato l per t istanti. |
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
| const main = document.getElementsByTagName("main")[0]; | |
| const grid = main.firstChild.firstChild.lastChild.firstChild.firstChild.firstChild; | |
| const loader = main.firstChild.firstChild.lastChild.firstChild.lastChild; | |
| const footer = document.getElementsByTagName("footer")[0]; | |
| const domain = "https://www.instagram.com"; | |
| const urls = new Set(); | |
| function parse_grid() { | |
| for (const node of grid.childNodes) { |
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
| // Prendo tutti i tasti menu con tre puntini verticali | |
| vertical_menu = document.querySelectorAll("yt-icon.style-scope.ytd-menu-renderer") | |
| // Ciclo solo sui primi otto | |
| for(i=0;i<8;i++){ | |
| // Clicco sul tasto menu con i tre puntini | |
| vertical_menu[i].click() // Si apre il popup | |
| // Seleziono il popup | |
| popup = document.getElementsByTagName("ytd-popup-container")[0] | |
| // Seleziono i tasti del popup |
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 | |
| : ' | |
| # Ubuntu post-installation script | |
| ## Updates and Software | |
| After an update && upgrade, required softwares are: | |
| + Firefox (firefox) | |
| + Telegram Desktop (telegram-desktop) |
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
| Public Class Encryption | |
| Public Shared Function XORDecryption(ByVal CodeKey as String, ByVal DataIn as String) | |
| Dim lonDataPtr as Long | |
| Dim strDataOut as String = String.empty | |
| Dim intXOrValue1 as Integer | |
| Dim intXOrValue2 as Integer | |
| For lonDataPtr = 1 to (Len(DataIn) / 2) | |
| intXOrValue1 = Val("&H" & (Mid$(DataIn,(2*lonDataPtr) - 1,2))) | |
| intXOrValue2 = Asc(Mid$(CodeKey,((lonDataPtr Mod Len(CodeKey)) + 1), 1)) |
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
| from PIL import ImageGrab,ImageOps | |
| import os, time, win32api, win32con, numpy | |
| """ | |
| All coordinates assume a screen resolution of 1920x1080, and Firefox | |
| attached to the left side of the screen, with the Bookmarks Toolbar enabled. | |
| x_pad = 19 | |
| y_pad = 237 | |
| Play area = x_pad+1, y_pad+1, 659, 717 | |
| """ |
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
| HotKeySet("{PAUSE}","_Exit") | |
| $WhereIs = 1 ; 0 = Sinistra, 1 = Destra | |
| $SleepTime = 135 ;Valori più bassi non permettono la corretta esecuzione | |
| ;Punteggio massimo raggiunto: 299 | |
| PixelSearch(480,985,480,985,0xF2C38C) | |
| If Not @error Then | |
| MouseClick('left',480,980,1,1) | |
| EndIf |
NewerOlder