Skip to content

Instantly share code, notes, and snippets.

Magneticdud / page.html
Created Mar 14, 2018
Responsive CSS tabs
View page.html
<h1>Responsive CSS Tabs</h1>
<input id="tabmale" class="tabsinput" type="radio" name="tabs" checked>
<label for="tabmale">Man</label>
<input id="tabladyfit" class="tabsinput" name="tabs" type="radio" />
<label for="tabladyfit">Lady</label>
<input id="tabkids" class="tabsinput" name="tabs" type="radio" />
Magneticdud / paletter.js
Last active Oct 13, 2017
Make an XML which doesn't work
View paletter.js
var finalxml = "<?xml version=\"1.0\"?>\n";
finalxml += "<palette guid=\"";
var guid = '00000000-0000-0000-0000-000000000000';
finalxml += guid;
finalxml += '" name="Variazioni di quadricromia"><colors><page>'
var m,y,k;
//esempio: <color cs="CMYK" tints="0,0,0,1"/>
//<color tints="0.0431373,0.796078,0.745098,0.0431373" cs="CMYK"/>
for (var c = 0; c <= 1; c+=0.2)
Magneticdud /
Created Feb 16, 2017
Automagically send new files via email
inotifywait -m /files/ -e create -e moved_to |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
echo "waiting 30s"
sleep 30s
# do something with the file
sendEmail -o tls=yes -f -t -s -xu -xp mypassword -u "Scansione" -m "Invio scansione" -a /files/$file
Magneticdud / appworld.php
Last active Jul 9, 2017
Download link generator for BlackBerry World
View appworld.php
//Download link generator for BlackBerry World Code by xsacha, found on crackberry
//not working anymore
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
Magneticdud / viglink.php
Last active Jan 28, 2017
Viglink wordpress support sucks, an huge plugin that doesn't even work correctly
View viglink.php
Magneticdud / topolino.aspx
Created Aug 12, 2016
Topolinatore - trovare nuovi fumetti online di Topolino via bruteforce. Non funziona più
View topolino.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="topolino.aspx.cs" Inherits="topolino" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="" >
<head runat="server">
<form id="form1" runat="server">
Magneticdud / style.css
Created Aug 10, 2016
Nascondere il logo di wordpress dalla barra di admin
View style.css
#wp-admin-bar-wp-logo {
display: none;