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
/* | |
Make the Facebook Like box responsive (fluid width) | |
https://developers.facebook.com/docs/reference/plugins/like-box/ | |
*/ | |
/* This element holds injected scripts inside iframes that in some cases may stretch layouts. So, we're just hiding it. */ | |
#fb-root { | |
display: none; | |
} |
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
# Installed in my Linux Mint Olivia | |
# native extension for the pg gem | |
sudo apt-get install libpq-dev | |
# mysql | |
sudo apt-get install libmysql-ruby libmysqlclient-dev |
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
# Emptying recycle bin with sudo files | |
rm -rf ~/.local/share/Trash/* |
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
function timeSince(date) { | |
var seconds = Math.floor((new Date() - date) / 1000); | |
var interval = Math.floor(seconds / 31536000); | |
if (interval > 1) { | |
return interval + " years"; | |
} | |
interval = Math.floor(seconds / 2592000); |
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
function convertMS(ms) { | |
var y, mo, d, h, m, s; | |
s = Math.floor(ms / 1000); | |
m = Math.floor(s / 60); | |
s = s % 60; | |
h = Math.floor(m / 60); | |
m = m % 60; | |
d = Math.floor(h / 24); | |
h = h % 24; | |
mo = Math.floor(d / 30); |
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
# Kafka: | |
# starting Zookeeper | |
bin/zookeeper-server-start.sh config/zookeeper.properties | |
# Kafka server | |
bin/kafka-server-start.sh config/server.properties | |
# create topic 'test' | |
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test |
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
<!-- Keybindings for window tiling --> | |
<keybind key="C-W-Up"> # FullScreen | |
<action name="Maximize"/> | |
</keybind> | |
<keybind key="C-W-Down"> # MiddleScreen | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"><x>center</x><y>center</y><width>50%</width><height>50%</height></action> | |
</keybind> |
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
convert favicon.png -resize 16x16 favicon.ico; | |
convert favicon.png -resize 16x16 favicon_16x16.png; | |
convert favicon.png -resize 32x32 favicon_32x32.png; | |
convert favicon.png -resize 64x64 favicon_64x64.png; | |
convert favicon.png -resize 128x128 favicon_128x128.png; | |
echo "conversion complete"; |
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
%A, %e %b%t%T |
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
ARRAY=("Narcos - 01x01 - Descenso" | |
"Narcos - 01x02 - The Sword of Simon Bolivar" | |
"Narcos - 01x03 - The Men of Always" | |
"Narcos - 01x04 - The Palace in Flames" | |
"Narcos - 01x05 - There Will Be a Future" | |
"Narcos - 01x06 - Explosivos" | |
"Narcos - 01x07 - You Will Cry Tears of Blood" | |
"Narcos - 01x08 - La Gran Mentira" | |
"Narcos - 01x09 - La Catedral" | |
"Narcos - 01x10 - Despegue"); j=0; for i in *.srt; do mv "$i" "${ARRAY[$j]}".srt; let j=j+1;done |
OlderNewer