Skip to content

Instantly share code, notes, and snippets.

That aloof guy

Federico Panico fedemp

That aloof guy
  • Argentina
View GitHub Profile
fedemp / userContent.css
Last active Aug 29, 2015
Eliminar paywal de en Firefox
View userContent.css
En Windows deben abrir la carpeta %AppData%\Mozilla\Firefox\Profiles\
(ej: C:\Users\IEUser\AppData\Roaming\Mozilla\Firefox\Profiles
En Linux busquen ~/.mozilla/firefox/
Tienen que haber una carpeta con un nombre con caracteres al azar.
Dentro de esta carpeta tiene que haber otra llamada chrome
Si la carpeta chrome no existiese pueden crearla ahora.
Dentro de la carpeta chrome crear un nuevo archivo llamado userContent.css.
View gist:69e1a4e8d6ad9138a37f
32.693s netctl@wlan0\x2dbpm230.service
12.369s man-db.service
2.185s shadow.service
1.042s alsa-restore.service
940ms logrotate.service
876ms systemd-logind.service
779ms systemd-user-sessions.service
722ms systemd-remount-fs.service
650ms systemd-update-utmp.service
544ms systemd-tmpfiles-setup-dev.service
View gist:7775677
View rxvt-unicode-spacing.patch
--- src/rxvtfont.C.bukind 2007-11-30 14:36:33.000000000 +0600
+++ src/rxvtfont.C 2007-11-30 14:39:29.000000000 +0600
@@ -1171,12 +1171,21 @@
XGlyphInfo g;
XftTextExtents16 (disp, f, &ch, 1, &g);
+ * bukind: don't use g.width as a width of a character!
+ * instead use g.xOff, see e.g.:
View gtkrc-2.0
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
gtk-font-name="Segoe 10"
View gist:3861704
fedemp / index.markdown
Created Apr 12, 2012
Running Windows under Ubuntu to test in Internet Explorer
View index.markdown

How to test Internet Explorer 6 to 9 in Ubuntu

The final purpose of this tutorial is to have a Windows (XP, Vista, 7) running a native installation of Internet Explorer (6, 7, 8, 9). Windows will work as a guest in on Virtualbox running on Ubuntu. We will also make sure to have access to virtual hosts configured in the host OS.

Following steps have to be run on Ubuntu (or whatever flavor of Linux you have)

Download disk images of Windows

First step is to download Windows Virtual PC VHDs for testing websites with different Internet Explorer versions . These disk images are installations of different Windows versions with Internet Explorer installed. It's perfectly legal to use to any of these images; free as in beer.

Once you have download them, you will find that they are RAR files and one of them is an .exe file. Just rename the .exe file to .rar and we can continue.

fedemp / featured-page-widget.php
Created Apr 3, 2012
featured-page-widget edited cause it breaks on one of my projects
View featured-page-widget.php
fedemp / sms.css
Created Mar 29, 2012
css1k submission
View sms.css
html {
background: #333;
body {
width: 320px;
fedemp / index.markdown
Created Mar 28, 2012
Quick and dirty introduction to LESS
View index.markdown

Quick and dirty introduction to LESS

Preproccesors and LESS

There are many CSS preproccesors currently in the wild. They work creating a new language sweeted with syntactic sugar that either redefines CSS syntax or simply reuses it with some special meanings added. The document created is finally compiled so it can actually work on any browser.

LESS, as one of this preproccesors, uses the same syntax of CSS so the preprocessor can understand already existing CSS code; this existing code can actually work as a base for a new project. Even though the similar syntax, the preprocessor expects files with the extension .less to make its work.

Having said this, it should be noted that this is actually valid LESS code: