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 { split, contains } from "std/text" | |
import { file_write, file_append, dir_exist, file_exist, create_dir } from "std/fs" | |
let path = "/tmp/amber-sc-tests" | |
if (not dir_exist(path)) { | |
create_dir(path) | |
} | |
let report = "{path}/report.txt" |
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 random import random, randint, choice, shuffle | |
import discord | |
from discord.ext import tasks | |
TOKEN = 'pensavichelomettessianchequavero?' | |
file = open('insulti.txt', '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
// ==UserScript== | |
// @name Hide Youtube video from Reddit | |
// @namespace Mte90 | |
// @match https://reddit.com/* | |
// @match https://www.reddit.com/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description As per title | |
// ==/UserScript== |
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 | |
import yaml | |
with open('trivia.txt', mode="r", encoding="latin-1") as f: | |
lines = f.readlines() | |
questions = {} | |
count = 0 | |
for line in lines: | |
count += 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
#!/usr/bin/env python3 | |
from io import StringIO | |
from pdfminer.converter import TextConverter | |
from pdfminer.layout import LAParams | |
from pdfminer.pdfdocument import PDFDocument | |
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
from pdfminer.pdfpage import PDFPage | |
from pdfminer.pdfparser import PDFParser | |
import sys | |
import os |
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 | |
// This script require to be added in the Webhook section of you repo | |
// It will download the repository defined in the url in the path defined in the url | |
// For safety reasons is required a token in the url and will check the repo owner | |
// Note GitHub/GitLab generate zip files with a folder on it so it isn't enough to decomrpess them | |
// You need to get that content and a temporary folder is required to mvoe those files | |
ini_set('display_errors', 1); | |
ini_set('display_startup_errors', 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
<?php | |
/** | |
* Plugin Name: WooCommerce Colonna IVA | |
* Description: Aggiunge una colonna nei prodotti WooCommerce | |
* Version: 1.0.0 | |
* Author: LUGRieti | |
* Author URI: | |
* Requires at least: 4.9 | |
* Tested up to: 4.9 | |
* |
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 bash | |
# | |
# This script injects a file into the current Apache2 environment temporarily | |
# in order to check its syntax. | |
# | |
# INSTALL: | |
# sed -i "2i ServerName example.com" /etc/apache2/sites-available/000-default.conf | |
# Require adding this line to the example conf | |
# | |
# USAGE: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="2.0"> | |
<head> | |
<title>FreshRSS</title> | |
<dateCreated>Thu, 26 May 2022 08:36:15</dateCreated> | |
</head> | |
<body> | |
<outline text="Altro"> | |
<outline text="FuturoProssimo" type="rss" xmlUrl="https://www.futuroprossimo.it/feed/" htmlUrl="https://www.futuroprossimo.it/" description="il domani quotidiano."/> | |
<outline text="MGMT Magazine" type="rss" xmlUrl="http://feeds.feedburner.com/MgmtMagazine" htmlUrl="https://mgmtmagazine.com/" description=""/> |
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
image: jakzal/phpqa:alpine | |
cache: | |
paths: | |
- vendor/ | |
stages: | |
- Code Quality | |
coding-standards: |
NewerOlder