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 | |
# Start from GUI? | |
GUI=false | |
if [[ $(readlink -f /proc/$(ps -o ppid:1= -p $$)/exe) != $(readlink -f "$SHELL") ]]; then | |
GUI=true | |
fi | |
# Show message | |
if [[ $GUI == true ]]; then |
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 | |
# OBJECTIVE | |
# Bulk convert HEIC images to Jpeg | |
# DEPENDENCIES | |
# imagemagick | |
# USAGE | |
# 1) Put script in same folder of HEIC files |
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 | |
# Aggiungo elementi in un vettore: stringhe con spazi. | |
# Ho un vettore e ci aggiungo elementi contenenti spazi. | |
tput clear | |
echo "Creo un array vuoto" | |
echo "LISTA=()" | |
LISTA=() | |
echo "" |
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 | |
# Configuration | |
REMOTE_USER="admin" | |
REMOTE_IP="11.22.33.44" | |
REMOTE_PORT="22" | |
REMOTE_FOLDER="/data" | |
LOCAL_FOLDER="/mnt/nas" | |
LOCAL_KEY="~/.ssh/chiavi/nas" # Private key | |
# Create private and public keys with ssh-keygen |
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 | |
# Backlight - Clevo XSM Keyboard's led | |
# Copyright (C) 2019-2021 Antonio Bianco | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# any later version. | |
# |
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 | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# | |
# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> | |
# | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. |
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
[Desktop Entry] | |
Name=HomeJar | |
Comment=Jar executor in Home directory | |
Exec=homejar %f | |
Icon=homejar.svg | |
Terminal=false | |
Type=Application | |
Categories=Settings;System; | |
StartupNotify=false | |
MimeType=x-java-archive; |
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
/** | |
* La classe è un demone che effettua la sincronizzazione dei file | |
* | |
* @author Antonio Bianco | |
* creazione: 02/10/2012 | |
* ultima modifica: 03/10/2012 | |
*/ | |
import java.io.File; | |
import java.nio.file.Files; | |
import static java.nio.file.StandardCopyOption.*; |
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 java.awt.datatransfer.*; | |
import java.awt.*; | |
public class JClipboard implements ClipboardOwner | |
{ | |
/** | |
* Incolla nella Clipboard | |
*/ | |
public void toClipboard(String contenuto) | |
{ |
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 java.awt.datatransfer.*; | |
import java.awt.*; | |
public class JClipboard implements ClipboardOwner | |
{ | |
/** | |
* Incolla nella Clipboard | |
*/ | |
public void toClipboard(String contenuto) | |
{ |
NewerOlder