Skip to content

Instantly share code, notes, and snippets.

@Magneticdud
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
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>'
//colori
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
Magneticdud / sendscan.sh
Created Feb 16, 2017
Automagically send new files via email
View sendscan.sh
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 my@email.it -t receive@email.it -s smtp.email.it:587 -xu my@email.it -xp mypassword -u "Scansione" -m "Invio scansione" -a /files/$file
done
@Magneticdud
Magneticdud / appworld.php
Last active Jul 9, 2017
Download link generator for BlackBerry World 5.2.0.9
View appworld.php
//Download link generator for BlackBerry World 5.2.0.9. Code by xsacha, found on crackberry
//not working anymore
//sauce: http://forums.crackberry.com/blackberry-10-apps-f274/bardownload-script-988098/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
@Magneticdud
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
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Topolino</title>
</head>
<body>
<form id="form1" runat="server">
@Magneticdud
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;
}