Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@endolith
endolith / Has weird right-to-left characters.txt
Last active November 20, 2024 11:05
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
# inspiration
# http://github.com/jnstq/rails-nginx-passenger-ubuntu
# sudo this sudo that bollocks
sudo -i
# system-related stuff
apt-get install htop strace sysstat
dpkg-reconfigure sysstat
apt-get install ntp
@while0pass
while0pass / gist:661069
Created November 3, 2010 13:29
1px transparent gif image base64 encoded within data scheme url
data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
<img width="1" height="1" title="" alt="" src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" />
@felipepodesta
felipepodesta / gist:813965
Created February 7, 2011 03:36
Boilerplate html5 full template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>pageTitle</title>
<link rel="stylesheet" href="default.css">
<script src="default.js"></script>
</head>
<body>
var SITE = SITE || {};
SITE.fileInputs = function() {
var $this = $(this),
$val = $this.val(),
valArray = $val.split('\\'),
newVal = valArray[valArray.length-1],
$button = $this.siblings('.button'),
$fakeFile = $this.siblings('.file-holder');
if(newVal !== '') {
@SathyaBhat
SathyaBhat / fixperms.bat
Created May 14, 2011 07:25
fix permissions for "You need permissions from .. to perform this action" in Windows 7
takeown /r /d y /f *
icacls * /reset /t /c /q
@jimram
jimram / Markup
Created June 23, 2011 20:26
HTML5 Tree Navigation - Accessible Markup with ARIA attributes for screen-readers
<nav>
<ul role="tree" tabindex="0" aria-labelledby="label_1">
<li role="treeitem" tabindex="-1" aria-expanded="true"><a href="#">Colours</a></li>
<li role="group">
<ul>
<li role="treeitem" tabindex="-1"><a href="#">Red</a></li>
<li role="treeitem" tabindex="-1"><a href="#">Blue</a></li>
<li role="treeitem" tabindex="-1"><a href="#">Yellow</a></li>
<li role="treeitem" tabindex="-1"><a href="#">Green</a></li>
<li role="treeitem" tabindex="-1"><a href="#">Orange</a></li>
@psaia
psaia / functions.php
Created July 14, 2011 03:59
Sample of Rye
<?php
/**
* -- Rye Configuration --
*
* Here you can declare your javascript files, custom menus,
* widgetized areas, custom post types and taxonomies.
*
*
* Project Name: <Name>
* PHP Developer: <Your Name>
@restrepo
restrepo / ubuntu.sh
Last active November 16, 2021 03:25
Ubuntu postinstall
#!/usr/bin/env bash
#Postinstall for Ubuntu 9.10 -- 14.04
#Install as root!
#after sudo su
echo "================================================================"
echo "Update and upgrade the system"
sudo apt-get install aptitude
sudo aptitude update
sudo aptitude -y safe-upgrade
echo "================================================================"
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/