Skip to content

Instantly share code, notes, and snippets.

View TomMalbran's full-sized avatar

Tomás Malbrán TomMalbran

  • Buenos Aires, Argentina
View GitHub Profile
@TomMalbran
TomMalbran / dabblet.css
Created January 7, 2012 00:05
CSS3 Tags
/* CSS3 Tags */
ul#css3 {
overflow: auto;
list-style: none;
}
ul#css3 li, ul#css3 a {
float:left;
height:23px;
@TomMalbran
TomMalbran / dabblet.css
Created January 10, 2012 19:55
Nice Tabs
/**
* Nice Tabs
*/
.tabrow {
position: relative;
text-align: center;
list-style: none;
margin: 0;
padding: 0;
@TomMalbran
TomMalbran / dabblet.css
Created February 18, 2012 00:15
Ben's Selection Bug
/**
* Ben's Selection Bug
*/
body{
background: #333;
min-height:100%;
color: #f7f7f7;
font-family: Helvetica Neue, Arial, sans-serif;
width:960px;
@TomMalbran
TomMalbran / dabblet.css
Created February 26, 2012 23:43
Notebook Design
/**
* Notebook Design
*/
body {
background-color: #f5f5f5;
margin: 0 30px;
padding: 0;
}
h4 {
@TomMalbran
TomMalbran / dabblet.css
Created April 26, 2012 09:48
Falling Leaves with CSS Only
/*
Falling Leaves with CSS Only
http://premiumcoding.com/css3-tricks-falling-leaves-css/
*/
.container{
top:0px;
background:#fff;
width:100%;
height:100%;
@TomMalbran
TomMalbran / dabblet.css
Created July 22, 2012 22:27
PWI Custom Scrollbars
/**
* PWI Custom Scrollbars
*/
#chatWindow {
width: 352px;
height: 262px;
background: url('http://aster.ohmydays.net/pw/images/chatwindow.png');
}
#chatMessages {
position: absolute;
@TomMalbran
TomMalbran / dabblet.css
Created July 27, 2013 02:20
CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
/**
* CSS Puzzle: Reverse the z-order of the <li>s without setting a separate z-index on each one in a way that works in IE9 and up
*/
ul {
width: 610px;
}
li {
float: right;
list-style: none;
@TomMalbran
TomMalbran / brackets_scrollbars.less
Last active December 22, 2015 10:28
Brackets for Linux Scrollbars
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
@TomMalbran
TomMalbran / gist:15c843650c1dc9019622
Last active August 29, 2015 14:16
DigitalOcean Bash Script
#!/bin/bash
export IP=$(curl -s http://169.254.169.254/metadata/v1/interfaces/public/0/ipv4/address)
export HOSTNAME=$(curl -s http://169.254.169.254/metadata/v1/hostname)
export LAST=${IP##*.}
HOSTNAME=${HOSTNAME/XXX/$LAST}
export HOST=${HOSTNAME%%.*}
export DOMAIN=${HOSTNAME/$HOST./}
sed -i "/HOSTNAME/c\HOSTNAME=${HOSTNAME}" /etc/sysconfig/network
sed -i "/127.0.0.1/a ${IP}\t${HOST}\t${HOSTNAME}\t${DOMAIN}" /etc/hosts