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
from dataclasses import dataclass | |
@dataclass | |
class Strofa: | |
nome: str | |
verso: str | |
ripetizioni: int | |
anche: bool = False | |
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
<VirtualHost *:80> | |
SSLProxyEngine on | |
ErrorLog /dev/stderr | |
CustomLog /dev/stdout combined | |
ServerName www.google.it | |
ProxyPass / https://www.google.it/ | |
ProxyPassReverse / https://www.google.it/ | |
ProxyPreserveHost Off |
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 | |
DEFAULT_JAR_FOLDER='src/main/webapp/WEB-INF/lib' | |
DEFAULT_JAR_PATTERN='*.jar' | |
DELETE=no | |
HELP="Usage: $(basename "$0") [--delete] [jar folder/file] [pattern] | |
Looks up jar files on Maven central using their hash and outputs dependency | |
elements for the pom.xml. |
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 | |
# an hypothetical /usr/local/bin/example intercepts invocations to /usr/bin/example | |
export SPECIAL_VAR="customize enviroments for all invocations" | |
do_something_before | |
# now invoke the same command somewhere down the $PATH (e.g. /usr/bin/example), | |
unwrap "$0" "${@}" --add-an-option |
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 -eu | |
git_promote="$(basename "$0" | sed -e 's/-/ /')" | |
HELP="Usage: $git_promote [options...] [upstream] <downstream> | |
Promote an \"upstream\" Git branch by merging it into a \"downstream\" branch. | |
When omitted, the currently checked out branch is used as upstream. | |
Options: |
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
############################################################################### | |
# Development environment helper to set up project paths and other variables # | |
############################################################################### | |
# | |
# Copyright (C) 2012 Andrea Ratto <andrearatto at yahoo dot it>. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, this |
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
CREATE OR REPLACE PACKAGE csv AS | |
-- -------------------------------------------------------------------------- | |
-- Name : http://www.oracle-base.com/dba/miscellaneous/cvs.sql | |
-- Author : DR Timothy S Hall | |
-- Description : Initial setup: | |
-- CREATE OR REPLACE DIRECTORY CSV_DIR AS '/tmp'; | |
-- GRANT WRITE ON DIRECTORY CSV_DIR TO scott; | |
-- Usage: | |
-- ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'; | |
-- ALTER SESSION SET NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SSXFF'; |