Skip to content

Instantly share code, notes, and snippets.

View jorgepedret's full-sized avatar
😀
Turned on by Open Source

Jorge Pedret jorgepedret

😀
Turned on by Open Source
View GitHub Profile
@jorgepedret
jorgepedret / redis.sh
Created February 18, 2014 19:32
Installing/Updating redis
wget http://download.redis.io/releases/redis-2.8.6.tar.gz
tar xzf redis-2.8.6.tar.gz
cd redis-2.8.6
make
make install
@jorgepedret
jorgepedret / wishlist.md
Last active August 29, 2015 13:58
Atom wishlist
  • Save the state of the windows, projects and even un-saved files
  • Open faster
  • Type faster, there's an odd delay everytime you time that doesn't feel completely real time
  • Close HTML tags automatically
  • Allow me to change the syntax from the keyboard (in sublime: cmd-shift-P > 'javascript' > Enter)
  • Soft line breaks should continue indented where the element
  • Get rid of that uggle "waiting" alert when trying to close or reload the editor
  • Do not trim white space by default
@jorgepedret
jorgepedret / fakeagent.sh
Created March 27, 2015 01:55
A bash script that uses curl to generate hits on a url from different user agents
#!/bin/bash
ag[1]="Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0"
ag[2]="Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36"
ag[3]="Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko"
ag[4]="Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.13) Gecko/20101203 iPhone"
ag[5]="Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_3 like Mac OS X; ja-jp) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"
ag[6]="Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20120101 Firefox/29.0"
ag[7]="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:21.0) Gecko/20130331 Firefox/21.0"
ag[8]="Mozilla/5.0 (X11; FreeBSD amd64) AppleWebKit/536.5 (KHTML like Gecko) Chrome/19.0.1084.56 Safari/1EA69"
@jorgepedret
jorgepedret / places.md
Last active August 29, 2015 14:21
Places for dreaming meetup
@jorgepedret
jorgepedret / Start Class Button
Created April 12, 2011 23:43
Button to start a class
<a href="/start-a-class/" class="button">Start this Class</a>
@jorgepedret
jorgepedret / tg-effect.html
Created April 22, 2011 21:07
CSS background image transition effect
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<style>
body{
font-family: Helvetica, Arial, sans-serif;
font-size: 100%;
line-height: 1.4em;
background: #000 url(body-bg.png) left bottom repeat-x;
@jorgepedret
jorgepedret / first-table
Created May 28, 2011 02:22
First table
<table cellpadding="0" cellspacing="0" class="c19"><tbody><tr><td class="c10"><p class="c0"><span class="c2">Homophones (meaning)</span></p></td><td class="c9"><p class="c0"><span class="c2">Example</span></p></td></tr><tr><td class="c10"><p class="c0"><span>ad (advertisement)</span></p><p class="c0"><span>add (addition)</span></p></td><td class="c9"><p class="c0"><span>Did you see this </span><span class="c7">ad </span><span>in the newspaper?</span></p><p class="c0"><span>Did you </span><span class="c7">add </span><span>and subtract the numbers correctly?</span></p></td></tr><tr><td class="c10"><p class="c0"><span>allowed (permitted)</span></p><p class="c0"><span>aloud (audible)</span></p></td><td class="c9"><p class="c0"><span>No one is </span><span class="c7">allowed </span><span>in the building after dark.</span></p><p class="c0"><span>No one wanted to read </span><span class="c7">aloud </span><span>to the group.</span></p></td></tr><tr><td class="c10"><p class="c0"><span>band (orchestra)</span></p><p cla
@jorgepedret
jorgepedret / .htaccess
Created June 6, 2011 22:12
Redirect all WordPress feeds to feedburner (htaccess)
<IfModule mod_alias.c>
RedirectMatch 301 /feed/(atom|rdf|rss|rss2)/?$ http://feedburner.com/yourfeed/
RedirectMatch 301 /comments/feed/(atom|rdf|rss|rss2)/?$ http://feedburner.com/yourfeed/
</IfModule>
@jorgepedret
jorgepedret / .htaccess
Created June 6, 2011 22:14
Prevent directory listing (htaccess)
Options -Indexes
@jorgepedret
jorgepedret / .htaccess
Created June 6, 2011 22:11
Htaccess to Remove www in URL with
RewriteEngine On
RewriteCond %{HTTP_HOST} !^your-site.com$ [NC]
RewriteRule ^(.*)$ http://your-site.com/$1 [L,R=301]