Skip to content

Instantly share code, notes, and snippets.

100 REM ESAME DI ASSUNZIONE TRATTO DAL FILM "FANTOZZI VA IN PENSIONE" (1988)
110 DEF FNUC$(C$) = CHR$(ASC(C$) - 32 * (ASC(C$) > ASC("a") - 1) * (ASC(C$) < ASC("z") + 1)) : REM UPPERCASE
120 ON ERROR GOTO 920
130 SOUND ON : REM SOLO TANDY/PCJR
140 ON ERROR GOTO 0
150 KEY OFF
160 SCREEN 0 : WIDTH 80 : COLOR 14
170 CLS
180 BL$ = " "
190 PRINT BL$;
@albertus82
albertus82 / gitchmodx.sh
Created February 24, 2021 06:52
git chmod=+x
for f in `find . -name '*.sh'`; do (git update-index --chmod=+x "$f") done
@albertus82
albertus82 / pom.xml
Created May 4, 2020 06:46
Controllo aggiornamenti dipendenze
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.7</version>
<executions>
<execution>
<id>default</id>
<phase>verify</phase>
<goals>
<goal>display-property-updates</goal>
@albertus82
albertus82 / ffdhe2048.pem
Last active December 12, 2020 19:24
nginx init.d
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD
ssbzSibBsu/6iGtCOGEoXJf//////////wIBAg==
-----END DH PARAMETERS-----
@albertus82
albertus82 / artemis-init-debian.sh
Created April 14, 2019 17:25
artemis-init-debian.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: artemis
# Required-Start: $remote_fs $network $syslog
# Required-Stop: $remote_fs $network $syslog
# Default-Start: 3 5
# Default-Stop: 0 1 6
# Short-Description: Starts ActiveMQ Artemis
# Description: Starts ActiveMQ Artemis Message Broker Server
@albertus82
albertus82 / tomcat-init-debian.sh
Last active August 6, 2018 04:28
tomcat init.d
#!/bin/sh
#
# /etc/init.d/tomcat -- startup script for the Tomcat servlet engine
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian GNU/Linux by Ian Murdock <imurdock@gnu.ai.mit.edu>.
# Modified for Tomcat by Stefan Gybas <sgybas@debian.org>.
# Modified for Tomcat6 by Thierry Carrez <thierry.carrez@ubuntu.com>.
# Modified for Tomcat7 by Ernesto Hernandez-Novich <emhn@itverx.com.ve>.
# Additional improvements by Jason Brittain <jason.brittain@mulesoft.com>.
@albertus82
albertus82 / .jdk1.8.jinfo
Last active August 19, 2018 16:02 — forked from olagache/.jdk1.8.jinfo
Generate ".jdk1.8.jinfo" and "alternatives.sh" files to install java 8 using ubuntu alternatives.
alias=jdk1.8
section=non-free
jre servertool /usr/lib/jvm/jdk1.8/jre/bin/servertool
jre keytool /usr/lib/jvm/jdk1.8/jre/bin/keytool
jre java /usr/lib/jvm/jdk1.8/jre/bin/java
jre jcontrol /usr/lib/jvm/jdk1.8/jre/bin/jcontrol
jre rmid /usr/lib/jvm/jdk1.8/jre/bin/rmid
jre ControlPanel /usr/lib/jvm/jdk1.8/jre/bin/ControlPanel
jre rmiregistry /usr/lib/jvm/jdk1.8/jre/bin/rmiregistry
jre orbd /usr/lib/jvm/jdk1.8/jre/bin/orbd
@albertus82
albertus82 / CheckUpdates.java
Created October 15, 2017 20:53
CheckUpdates.java
final Type type = new TypeToken<Collection<Map<String, Object>>>() {}.getType();
final Collection<Map<String, Object>> releases = new Gson().fromJson(new String(response), type);
for (final Map<String, Object> release : releases) {
if (Boolean.parseBoolean(String.valueOf(release.get("prerelease")))) {
continue;
}
else {
return String.valueOf(release.get("tag_name"));
}
@albertus82
albertus82 / Renamer.java
Created June 29, 2017 11:11
Batch renamer (preserves extensions)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;
import java.util.Set;
import java.util.TreeSet;
public class Renamer {
public static void main(final String[] args) throws FileNotFoundException, IOException {