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 | |
# | |
# License: CC0 | |
# Author: Valerio Bozzolan | |
# https://gist.github.com/valerio-bozzolan/70e0184478fa0ffa52a37745ac04f333 | |
# | |
# Quickly create an user without password but with an SSH key | |
# | |
USERNAME="$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
Categories: | |
- Navigation | |
License: GPL-3.0-or-later | |
AuthorName: Ferdinando Traversa | |
AuthorEmail: [email protected] | |
WebSite: https://cerca.wikilovesmonuments.it | |
SourceCode: https://github.com/ferdi2005/monumenti | |
IssueTracker: https://github.com/ferdi2005/monumenti/issues | |
AntiFeatures: | |
- Tracking |
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
103,105c103,105 | |
< if (!preg_match('{^[.a-z0-9]+$}', $token)) { | |
< throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"'); | |
< } | |
--- | |
> // if (!preg_match('{^[.a-z0-9]+$}', $token)) { | |
> // throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"'); | |
> // |
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=Keeps a tunnel to 'remote.example.com' open | |
After=network.target | |
[Service] | |
User=autossh | |
# -p [PORT] | |
# -l [user] | |
# -M 0 --> no monitoring | |
# -N Just open the connection and do nothing (not interactive) |
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
# http://tinyurl.com/y8xefcy9 | |
# | |
# Comuni d'Italia con coordinate, codice ISTAT e codice Wikidata | |
# Author: Valerio Bozzolan | |
# Date: 6 novembre 2018 | |
# Query license: public domain | |
# Original query: https://gist.github.com/valerio-bozzolan/b12b0625619f257b58dabefa1474b7f4 | |
#defaultView:Map | |
SELECT | |
( SAMPLE( ?regioneLabel ) AS ?regioneLabel ) |
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: Debianatore Mailoso di Valerio | |
Plugin URI: https://wordpress.org/support/topic/the-e-mail-could-not-be-sent/#post-179327 | |
Description: Send SMTP mails with an include "Net/SMTP.php";... simple! #nocrap | |
Author: Valerio Bozzolan | |
Author URI: https://boz.reyboz.it | |
Version: 0000000.0.0.-1.0 | |
License: GPLv3 or later | |
*/ |
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 | |
######################################## | |
# Match regex grep -E | |
# License: GNU GPL v3+ | |
# Author: Valerio Bozzolan | |
######################################## | |
function rtfm { | |
if [ ! -z "$2" ]; then | |
echo "Error: $2." |
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 | |
######################################## | |
# MySQL | MariaDB autologin | |
######################################## | |
# Put in your .bashrc | |
alias mysql='mysql --defaults-file=/etc/mysql/debian.cnf' | |
alias mysqldump='mysqldump --defaults-file=/etc/mysql/debian.cnf' |