Skip to content

Instantly share code, notes, and snippets.

Kemel Zaidan kemelzaidan

Block or report user

Report or block kemelzaidan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kemelzaidan
kemelzaidan / markdown.xml
Created Apr 23, 2013 — forked from lg0/markdown.xml
language highlight for markdown in sublime text 2
View markdown.xml
<!-- 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 Sep 19, 2013
Backup das configurações do subsonic. Cria 8 tar.bz2 e apaga o mais velho quando ultrapassa esse limite
View subsonic-backup.sh
#!/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 Dec 13, 2013
Really simple shell script to query spammers at the stopforumspam.com API
View forumspam.sh
#!/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 May 7, 2018
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
View post-install.sh
#!/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 Feb 28, 2014
Simple bash script to download all (or selected) editions from the Full Circle Magazine (<http://fullcirclemagazine.org/>) and other possible stuff
View fullcircle_download.sh
#!/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
View horizontal_scaling.md

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 Sep 17, 2014
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.
View ssh-copy-id.sh
#!/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
#
View clone_all_branches_with_git.md
View ember_examples.md
View open-source-icon-sets.md

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

You can’t perform that action at this time.