Skip to content

Instantly share code, notes, and snippets.

View kemelzaidan's full-sized avatar

Kemel Zaidan kemelzaidan

View GitHub Profile
@kemelzaidan
kemelzaidan / markdown.xml
Created April 23, 2013 03:00 — forked from lg0/markdown.xml
language highlight for markdown in sublime text 2
<!-- copy this to YOUR_THEME.tmTheme-->
<dict>
<key>name</key>
<string>diff: deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#EAE3CA</string>
@kemelzaidan
kemelzaidan / subsonic-backup.sh
Created September 19, 2013 06:15
Backup das configurações do subsonic. Cria 8 tar.bz2 e apaga o mais velho quando ultrapassa esse limite
#!/bin/bash
#
# Variáveis
QUANTIDADE=`ls /media/cartola/subsonic-backup/ | grep bz2 | wc -l` # Quantidade de arquivos de backup
MAIS_VELHO=`readlink -f $(ls /media/cartola/subsonic-backup/ | grep bz2 | sort -r | head -1)`
ARQUIVO_NOVO=/media/cartola/subsonic-backup/subsonic-`date +%Y%m%d`.tar.bz2
echo "Compactando a pasta /var/subsonic"
echo "Aguarde..."
echo ""
@kemelzaidan
kemelzaidan / forumspam.sh
Created December 13, 2013 17:56
Really simple shell script to query spammers at the stopforumspam.com API
#!/bin/bash
###############################################################################
#
# script simples que pega os atributos passados como email e consulta na API
# stopforumspam.com se o email enviado é spam ou não
#
# Licença GPL v3
# Autor: Kemel Zaidan
# email: kemelzaidan arroba gmail ponto com
###############################################################################
@kemelzaidan
kemelzaidan / post-install.sh
Last active January 21, 2023 08:28
A simple bash script intended to be run after a fresh Ubuntu/Debian installation in order to automate system update, extra software installation and a couple configuration files setup
#!/bin/bash
# package variables
PACKAGES="aptitude lynx autogen automake autoconf source-highlight htop most vim-nox build-essential nmap nethogs mpg123 xclip ubuntu-restricted-extras arj faac faad ffmpeg flac p7zip-full vorbis-tools x264 git lame checkinstall gnome-shell gnome-tweak-tool vlc gnome-mplayer geany gimp inkscape deluge unetbootin guake puddletag calibre default-jre default-java-plugin faenza-icon-theme"
CHROME_URL="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" # always the latest
BRACKETS_URL="https://github.com$(curl -s -L https://github.com/adobe/brackets/releases/latest | grep "64-bit.deb" | cut -d '"' -f 2 | grep release)"
DUKTO_URL="http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_12.04/amd64/dukto_6.0-1_amd64.deb"
ALL_DEBS=$CHROME_URL $BRACKETS_URL $DUKTO_URL $FAENZA_URL
FUNCOESZZ_URL="http://funcoeszz.net/download/$(curl -sL http://funcoeszz.net/download/ |grep "arquivão" | cut -d '"' -f 2)"
@kemelzaidan
kemelzaidan / fullcircle_download.sh
Created February 28, 2014 21:57
Simple bash script to download all (or selected) editions from the Full Circle Magazine (<http://fullcirclemagazine.org/>) and other possible stuff
#!/bin/bash
#
# Originaly from http://fullcirclemagazine.org/tag/script/
echo -n "What is the issue number of the first Full Circle Magazine to
download? "
read firstissue
echo ""
echo -n "What is the issue number of the last Full Circle Magazine to

4 Dicas para Tornar o seu Aplicativo Mais Escalável para o Ambiente de Nuvem

##O que é cloud?

O jargão do momento é o cloud, a nuvem. Pessoas, empresas e produtos diferentes possuem definições diferentes do que é cloud, onde ele começa ou onde a nuvem termina. Independentemente da solução de "Cloud", uma definição que todos parecem entender logo de cara é o conceito de escalabilidade. É um conceito bem simples de compreender, mas difícil de aplicar. Quanto mais escalabilidade, mais chances você tem de crescer e agüentar uma maior carga. Sem escalabilidade, você pode ser pego de calças curtas e não dar conta de todo mundo que quer acessar o seu conteúdo, ou consumir o seu produto ou serviço.

##Por quê utilizar a nuvem?

Todos nós fazemos software querendo que ele faça sucesso. Mas esse sucesso implica em uma multidão de pessoas acessando o seu site. E essa multidão de acessos pode ser pré-determinada (você aparece em algum programa de TV ou na home de um grande portal) ou, de repente, você viraliza. Indep

@kemelzaidan
kemelzaidan / ssh-copy-id.sh
Created September 17, 2014 22:04
This is a simple bash script to reproduce ssh-copy-id behavior on the Mac OS, since this shit OS doesn't have it natively.
#!/bin/bash
# This is a simple shell script to reproduce ssh-copy-id behavior
# on the MAC, since that shit OS does not have it natively.
#
# This script is under GPL version 3
# Author: Kemel Zaidan
# email: kemelzaidan AT gmail DOT com
# website: kemelzaidan.com.br
#
@kemelzaidan
kemelzaidan / ember_examples.md
Created December 9, 2015 17:17 — forked from rwjblue/ember_examples.md
Ember Examples
@kemelzaidan
kemelzaidan / open-source-icon-sets.md
Last active January 21, 2016 17:14
Open Source Icon Sets

MIT Licensed

  • Evil Icons: Simple and clean SVG icon pack with the code to support Rails, Sprockets, Node.js, Gulp, Grunt and CDN
  • Open Iconic: An open source icon set with 223 marks in SVG, webfont and raster formats.

Free Art License

Creative Commons