This file contains hidden or 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
# Optimized my.cnf configuration for MySQL/MariaSQL | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated January 2020 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 2GB - 4GB RAM server with 2-4 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
This file contains hidden or 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
$("<div> </div>").css({ // https://stackoverflow.com/a/13755589/3389585 | |
position: "absolute", | |
width: "100%", | |
height: "100%", | |
top: 0, | |
left: 0, | |
background: "#cccccc", | |
opacity:0.5 | |
}).appendTo($("#target").css("position", "relative")); |
This file contains hidden or 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
// usage: logRequest("/tmp/post-".time().".log"); | |
function logRequest($targetFile){ $headerList = []; foreach ($_SERVER as $name => $value) { if (preg_match('/^HTTP_/',$name)) { // convert HTTP_HEADER_NAME to Header-Name $name = strtr(substr($name,5),'_',' '); $name = ucwords(strtolower($name)); $name = strtr($name,' ','-'); $headerList[$name] = $value; } } $data = sprintf("%s %s %s\n", $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'], $_SERVER['SERVER_PROTOCOL']); foreach ($headerList as $name => $value) { $data .= $name.': '.$value."\n"; } $data .= "\n"; file_put_contents($targetFile, $data.file_get_contents('php://input')."\n"); } | |
This file contains hidden or 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
## Taken from https://nedimmehic.org/2017/02/17/how-to-find-windows-product-key-allversions-of-windows/ | |
function Get-WindowsKey { | |
## function to retrieve the Windows Product Key from any PC | |
## by Nedim Mehic | |
param ($targets = ".") | |
$hklm = 2147483650 | |
$regPath = "Software\Microsoft\Windows NT\CurrentVersion" | |
$regValue = "DigitalProductId" | |
Foreach ($target in $targets) { |
This file contains hidden or 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
function writeTable(tbody, ark, title) { | |
var td_style = 'padding:5px 10px;border:1px solid black'; | |
var tble_style = 'border:1px solid black'; | |
tbody.empty(); | |
$('<tr/>').appendTo(tbody).append('<th colspan="4"><b>'+title+'</b></td>'); | |
var tr = $('<tr/>').appendTo(tbody); | |
ark.forEach(function(itm,idx){ | |
console.log("ITM"+idx+": NN="+itm.nn+" BB="+itm.bb); | |
if (idx % 2 === 0) tr = $('<tr/>').appendTo(tbody); | |
tr.append('<td style="'+td_style+'">' + itm.nn + '</td>'); |
This file contains hidden or 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
// ==UserScript== | |
// @name test @include | |
// @version 0.1 | |
// @author ME | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
(function() {'use strict';alert(window.location);})(); |
This file contains hidden or 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
/* | |
SE STAI LEGGENDO QUESTO TESTO PROBABILMENTE NON HAI ESTENSIONE DEL BROWSER PER ESEGUIRE GLI USERSCRIPT | |
AGGIUNGI L'ESTENSIONE GREASEMONKEY OPPURE TAMPERMONKEY AL TUO BROWSER E RIPROVA | |
*/ | |
// ==UserScript== | |
// @name User Station | Beppe9000 | |
// @namespace https://gist.github.com/beppe9000/ed330a6d58dea17a22728954487cd3d1 |
This file contains hidden or 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
/* | |
* Questo è un blocco per gli appunti JavaScript. | |
* | |
*Inserire del codice JavaScript, fare clic con il tasto destro o selezionare dal menu Esecuzione: | |
* 1. Esegui per eseguire il codice selezionato (Ctrl+R) | |
* 2. Analizza per aprire una finestra di analisi oggetto sul risultato (Ctrl+I) | |
* 3. Visualizza per inserire il risultato come un commento dopo il testo selezionato. (Ctrl+L) | |
*/ | |
//document.baseURI | |
//https://myanimelist.net/forum/?topicid=49347 |
This file contains hidden or 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
Imports System.Collections.Generic | |
Imports System.Linq | |
Imports System.Text | |
Imports System.Threading.Tasks | |
Imports System.Runtime.Serialization | |
Imports System.IO | |
Imports System.Xml | |
Namespace DCSerializerTest | |
<DataContract> _ |
NewerOlder