Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View nikiink's full-sized avatar

Nicola Inchingolo nikiink

  • Andria, BT, Italy
View GitHub Profile
@nikiink
nikiink / samsung-android-pack-repack.sh
Created April 3, 2021 19:31
Procedure to modify a product.img.lz4 used by Samsung Android phones with Android 10
ANDROID 10 SAMSUNG IMG PACK/REPACK - UBUNTU 18.10 COSMIC
[BOOTLOADER UNLOCKED IS REQUIRED - FIRST UNLOCK BOOTLOADER]
-----------------------------------------------------------
/etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ cosmic main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic main universe restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ cosmic-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ cosmic-security main universe restricted multiverse
@nikiink
nikiink / GiacenzaMedia.py
Last active February 1, 2021 15:27
Script python per calcolo giacenza media
import csv
from datetime import datetime
from datetime import timedelta
#
# Lo script legge i movimenti dell'anno dal file movimenti.csv che deve
# avere questo formato, per esempio:
# data valuta;importo;note
# 31/12/2018;0;saldo a fine anno precedente
# 9/10/2019;50,5
@nikiink
nikiink / wol.lua
Last active October 14, 2019 09:14
OpenWrt LuCI Wol web interface
--[[
FILE: /usr/lib/lua/luci/controller/wolapp/wol.lua
USAGE: http://..../cgi-bin/luci/wolapp/wol?m=xx:xx:xx:xx:xx:xx
]]--
module("luci.controller.wolapp.wol", package.seeall)
function index()
entry({"wolapp", "wol"}, call("action_wol"), "W-O-L", 10).dependent=false
end
@nikiink
nikiink / Italiano.xml
Last active July 9, 2019 09:56
Ditto 3.22.20 Italian Translation (Traduzione italiano per Ditto 3.22.20)
<?xml version="1.0" encoding="UTF-8"?>
<Ditto_Language_File Version = "1" Author = "Salvatore Giarratana/Nicola Inchingolo (2019)" Notes = "http://labx.altervista.org (original translation) / nikiink.wordpress.com" LanguageCode="ita">
<Ditto_Right_Click_Menu>
<Item English_Text = "Groups" ID = "-1">Gruppi</Item>
<Item English_Text = "New Group Ctrl-F7" ID = "32811">Nuovo Gruppo Ctrl-F7</Item>
<Item English_Text = "New Group Selection F7" ID = "32812">Nuovo Gruppo Selezione F7</Item>
<Item English_Text = "Move to Group" ID = "32840">Muovi a Gruppo</Item>
<Item English_Text = "Quick Options" ID = "-1">Opzioni Veloci</Item>
<Item English_Text = "Lines Per Clip" ID = "-1">Linee per Clip</Item>
<Item English_Text = "1" ID = "32807">1</Item>
@nikiink
nikiink / XenBackup.py
Last active December 11, 2018 19:47
Python 3 script for backup Xenserver and XCP-ng VMs while running (tested with Xenserver 7.0 and XCP-ng 7.5 VMs)
# This script reads virtual machines to backup from an xml
# configuration file by default named XenBackup.xml.
# The configuration file can be given as parameter -config, for example
#
# XenBackup.py -config "XenBackup-test.xml"
#
# [If not given is used the file XenBackup.xml]
#
# The values of maxBackups and backupDir
# can be overridden on specific machine.
@nikiink
nikiink / RAI17.java
Last active June 30, 2017 07:21
Creazione file per dichiarazione non detenzione apparecchi televisivi e altre dichiarazioni relative al canone TV da utilizzare nel desktop telematico dell'agenzia delle entrate
import java.io.FileWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
public class Rai17 {
// SPECIFICHE TECNICHE
@nikiink
nikiink / XenBackup.ps1
Last active December 11, 2018 18:36
Powershell script for backup Xenserver and XCP-ng VMs while running (tested with Xenserver 7.0 and XCP-ng 7.5 VMs)
# This script reads virtual machines to backup from an xml
# configuration file by default named XenBackup.xml.
# The configuration file can be given as parameter -config, for example
#
# XenBackup.ps1 -config "XenBackup-test.xml"
#
# [If not given is used the file XenBackup.xml]
#
# The values of maxBackups and backupDir
# can be overridden on specific machine.
#INSERIRE MAIL E PASSWORD ###################
mail = "........@......it"
password = "........"
#############################################
server = "mail.it.net"
cartella_spam = "Posta indesiderata"
import imaplib, sys
M = imaplib.IMAP4(server)
@nikiink
nikiink / WUA_SearchDownloadInstall.bat
Last active July 14, 2016 07:26
With this system you can automatically download windows updates, install them and reboot, and repeat these steps until no other updates are needed. Copy these files in the folder C:\WUA and import the task in scheduler.
cscript "C:\WUA\WUA_SearchDownloadInstall.vbs" >> "C:\WUA\WUA-log.txt" 2>&1
@nikiink
nikiink / readfile.js
Last active April 14, 2016 09:26
Sitecom WL-153 v1 002 administration interface chrome support
/*
==============================================================
Created by Xploïse: www.xploise.nl
for Sitecom Europe: www.sitecom.com
==============================================================
*/
// ADDING THE NEXT ROW THE ADMIN INTERFACE WORKS ON CHROME
// Replace the readfile.js with this readfile.js. It can be done
// using the chrome extension Requestly. Add a redirect request rule