Skip to content

Instantly share code, notes, and snippets.

@Davoleo
Davoleo / latest.log
Created March 16, 2019 17:43
log information for Preston mod issue
[18:32:42] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[18:32:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[18:32:42] [main/INFO]: Forge Mod Loader version 14.23.5.2815 for Minecraft 1.12.2 loading
[18:32:42] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at D:\Giochi\Curse\Minecraft\Install\runtime\jre-x64
[18:32:46] [main/INFO]: Searching D:\Giochi\Curse\Minecraft\Instances\tests\mods for mods
[18:32:46] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:32:46] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[18:32:46] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:32:46] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[18:32:46] [ma
@Davoleo
Davoleo / Formats.html
Last active July 10, 2019 15:42
HTML formatting
<html>
<head>
<title>First Page</title>
</head>
<body>
<p>Regular Text </p>
<p><strong> Bold Text </strong></p>
<p><big> Big Text </big></p>
<p><em> Italic Text </em></p>
<p><small> small text </small></p>
@Davoleo
Davoleo / maps.zs
Last active March 16, 2019 17:33
ZenScript Tests
import crafttweaker.oredict.IOreDictEntry;
/*
Crafttweaker Maps/Associative Arrays
A map (or an Associative Array, which is the proper term) is a data-type that's similiar to arrays.
The big difference being that a map can have non-numeric indexes.
A map is declared with the {} brackets and entries are specified as key: value
@Davoleo
Davoleo / hosts
Last active February 12, 2024 09:49
The hosts file entries to block Spotify audio ad servers. | v: 1.0.66.478.g1296534d
############## SPOTIFY - ADS - BEGIN
127.0.0.1 media-match.com
127.0.0.1 adclick.g.doublecklick.net
127.0.0.1 www.googleadservices.com
127.0.0.1 pagead2.googlesyndication.com
127.0.0.1 googleads.g.doubleclick.net
127.0.0.1 pubads.g.doubleclick.net
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 www.omaze.com
127.0.0.1 omaze.com
@Davoleo
Davoleo / windows_photo_viewer.reg
Last active November 16, 2018 16:24
Restores Windows Photo Viewer on Windows 10 Operating Systems
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open]
"MuiVerb"="@photoviewer.dll,-3043"
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\
@Davoleo
Davoleo / DavCustomAoE.zs
Last active November 13, 2018 14:25
Zenscript recipes for a better AoE gameplay
//Author: Davoleo
//Date: 03/03/2018
//These custom recipes are introduced by [Davoleo - © - 2018] to enhance modpack gameplay
//imports
import mods.ic2.OreWasher;
//Ore dictionary
recipes.addShapeless(<chisel:basaltextra:7>, [<environmentaltech:basalt>, <environmentaltech:basalt>]);
@Davoleo
Davoleo / Programming-Languages
Last active August 25, 2018 15:25
Programming Languages and their usage and specifications
Most known Programming Languages:
C-C++: runs really fast / low and high level / complex / efficient / little apps via cmd or to control devices / game engines / high performance programs / usually NoGUI / semi-multi-platform
Java: easier than C-C++ / much slower than C-C++ / web-app development / Android development (maybe fading in favor of Kotlin - easier and faster than Java) / Multi-platform
Python: General-purpose Language / much slower than Java / easier than Java / Multi-platform / machine learning / robotics / very readable
JavaScript: scripting language / lightweight language / programming capabilities to web browsers / Node.js / messaging / client-facing web-apps
PHP: server-side programming scripting language / web app development / the most used in big web apps / Facebook runs on PHP / Faster than Python / Faster than Ruby
Swift: by Apple / 2014 / lightweight language Python style / iOS apps / Mac OS Apps / Open-source / iBM took it up (that implemented server-side services) / nearly fast as C+
# Configuration file
~CONFIG_VERSION: 0.1.0
##########################################################################################################
# searchcolors
#--------------------------------------------------------------------------------------------------------#
# config.jei.searchColors.comment
##########################################################################################################
@Davoleo
Davoleo / Network-Connection-Restore.bat
Last active October 13, 2018 19:47
It restores your internet connection regenerating DNSs
::Coded By Davoleo
::Davoleo - (c) - 2018
@ECHO OFF
color 04
echo Richiedendo i privilegi amministrativi...
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
:LANG
@Davoleo
Davoleo / git_commands.md
Last active January 11, 2018 18:37 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet

git cheat-sheet

A GUI like http://sourcetreeapp.com is often helpful, but staying on the command line usually quicker. This is a list of the commands I use most frequently, listed by funcional category:

current state

git status list which (unstaged) files have changed
git diff list (unstaged) changes to files
git log list recent commits