Skip to content

Instantly share code, notes, and snippets.

beppe9000

Block or report user

Report or block beppe9000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@beppe9000
beppe9000 / overlay.js
Created Jun 28, 2019
JQUERY QUICK TARGETED OVERLAY
View overlay.js
$("<div>&nbsp;</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"));
@beppe9000
beppe9000 / dumprequest.php
Created Jun 28, 2019 — forked from magnetikonline/dumprequest.php
PHP script to dump full HTTP request to file (method, HTTP headers and body).
View dumprequest.php
<?php
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40
class DumpHTTPRequestToFile {
public function execute($targetFile) {
$data = sprintf(
"%s %s %s\n\nHTTP headers:\n",
$_SERVER['REQUEST_METHOD'],
@beppe9000
beppe9000 / prodKey.ps1
Created Dec 12, 2018
Import-Module prodKey.ps1 -> Windows Product Key
View prodKey.ps1
## 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) {
@beppe9000
beppe9000 / 2coltableFnction.js
Created Jun 6, 2017
2-column mode table from JSON associative array
View 2coltableFnction.js
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>');
View test.include.user.js
// ==UserScript==
// @name test @include
// @version 0.1
// @author ME
// @include http://*
// @include https://*
// ==/UserScript==
(function() {'use strict';alert(window.location);})();
View b9k.userstation.user.js
/*
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
@beppe9000
beppe9000 / b9k.better.mal.user.js
Created Mar 22, 2017
My Anime List Quick Addd Button & Other Things - WIP
View b9k.better.mal.user.js
/*
* 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
@beppe9000
beppe9000 / DCSerializerTest.cs
Created Feb 11, 2016 — forked from theburningmonk/DCSerializerTest.cs
Testing DataContractSerializer in .Net 4.5.1 - Visual Basic
View DCSerializerTest.cs
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> _
You can’t perform that action at this time.