This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This should be inside your git config file (global or for a project) as an alias, | |
# in order to print all merged PRs between a given SHA and current git HEAD. | |
# | |
# Thanks to Etan Reisner: http://stackoverflow.com/a/25954749/315748 | |
# Usage: $ git release [SHA] | |
# It will print... | |
# [COMMIT-SHA] #PR-NUMBER PULL REQUEST TITLE | |
# ie. | |
# [2046946] #872 Lorem ipsum dolor sit amet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// generates a character range collection from a to z | |
JSON.stringify(Array.apply(null, {length: 26}).map(function (x,i) { return {userId: String.fromCharCode(97 + i) }})); | |
// generates a collection of from and to | |
JSON.stringify(Array.apply(null, {length: 26}).map(function (x,i) { from = String.fromCharCode(97 + (Math.random() * (26 - i) + i)); to = String.fromCharCode(97 + (Math.random() * (26 - 0) + 0)); return {from: from, to:to} })); | |
// generates a collection of user and music | |
JSON.stringify(Array.apply(null, {length: 100}).map(function (x,i) { return {musicId: "m" + Math.floor(Math.random() * (10 - i) + i), userId: String.fromCharCode(97 + (Math.random() * (26 - 0) + 0))} })); | |
// generates a random JSON collection with a musicId and generes attributes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for file in ./*.srt | |
do | |
encoding=`file --mime-encoding "$file" | awk '{ print $2 }'` | |
if [ $encoding = "iso-8859-1" ] | |
then | |
iconv -f iso-8859-1 -t utf-8 < "$file" > "$file.utf8" | |
mv "$file.utf8" "$file" | |
echo "$file converted to UTF-8" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = 1 | |
loop { | |
if i == 1 | |
p "1 elefante se balanceaba sobre la tela de una araña, como veia que resistía fue a llamar a otro elefante" | |
else | |
p "#{i} elefantes se balanceaban sobre la tela de una araña, como veian que resistía fueron a llamar a otro elefante" | |
end | |
i += 1 | |
sleep 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
describe '${1:description}' do | |
${2} | |
end | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>describe</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.ruby</scope> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= render '/refinery/content_page', { :hide_sections => [:slider, :boxes] } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
414##GSM/CDMA#Asignado#Movistar | |
424##GSM#Asignado#Movistar | |
412##GSM#Asignado#Digitel | |
416##GSM/CDMA#Asignado#Movilnet | |
426##GSM#Asignado#Movilnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd"> | |
<!-- | |
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more | |
information on creating and using config.xml configration files. | |
--> | |
<server> | |
<ui enabled="yes" show-tooltips="yes"> | |
<accounts enabled="no" session-timeout="30"> | |
<account user="mediatomb" password="mediatomb"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rvm use 1.9.2@gemset_name | |
# I use Facebook API ID and secret as an example | |
export FACEBOOK_APP_ID=[your facebook app id] | |
export FACEBOOK_SECRET=[your facebook secret] | |
export HTTP_HOST=localhost:9292/ |
NewerOlder