Skip to content

Instantly share code, notes, and snippets.

# = Random password generator
# Generate 12 chars-long alphanumeric passwords
$ alias random_password
alias random_password='openssl rand -base64 1000 | tr -cd "[:alnum:]" | cut -c 1-12'
$ random_password
EWLdOGjJnfl3
$ random_password
RBkQi2bkHxWt
$ random_password
l0TaXzLVvoBJ
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement
Please fork, tweet about, etc.
----
Creating Shazam in Java
A couple of days ago I encountered this article: How Shazam Works
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java?
# History navigation: start writting the command you want to repeat and up/down
bind '"\e[A"':history-search-backward
bind '"\e[B"':history-search-forward
# Set prefix command to Ctrl-a
set -g prefix C-a
unbind C-b
# Reduce tmux delay for more responsiveness
set -sg escape-time 1
# Window and pane index count starts in 1 rather tan 0
set -g base-index 1
setw -g pane-base-index 1
@ernesto-jimenez
ernesto-jimenez / gist:2286214
Created April 2, 2012 18:43
Automatically reload your active tab in Chrome. See the comments for instructions.
#!/usr/bin/env osascript
#
# This AppleScript reloads Google Chrome. It can be used in combination kicker
# gem to automatically reload google chrome when you save a file from your app.
#
# Usage for a rails app:
# 1) Place this file in $RAILS_ROOT/script/reload_chrome
# 2) Install the kicker gem: gem install kicker
# 3) Run: kicker -e script/reload_chrome app public
#
@ernesto-jimenez
ernesto-jimenez / Gemfile
Created October 14, 2012 20:46
Rails Rumble gemfile
# Gemfile for http://splitpay.at
source 'https://rubygems.org'
gem 'rails', '3.2.8'
gem 'rack-force_domain'
gem 'paypal_adaptive'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discussions around concrete examples, not handy-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@ernesto-jimenez
ernesto-jimenez / top_400_meta_names
Last active December 27, 2015 21:09
**approximation** Source: http://webdevdata.org 2013-10-30
# Top 400 meta tag names
**approximation**
60522 description
49058 keywords
21547 robots
15573 viewport
14236 generator
14167 google-site-verification
This file has been truncated, but you can view the full file.
.//00/113.com.tw_004ffb1043ffc7099735ab6940aa198e.html.txt,meta,description
.//d4/gagreport.com_d44de93200073a71f1dc02dd3681ebf1.html.txt,meta,Description
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,csrf-param
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,csrf-token
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,description
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,title
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,keywords
.//d4/gameone.de_d4e8a2997e98be50e6f86cf806680b4e.html.txt,meta,age-de-meta-label
.//d4/gamereplays.org_d4d5b9b94675b967c72c811cf4e86452.html.txt,meta,keywords
.//d4/gamereplays.org_d4d5b9b94675b967c72c811cf4e86452.html.txt,meta,description

App names reports

Summary

Total files with title or name meta tags: 5597

Files with more than one title tag: 469

Top tag combinations