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 / 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
#
@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)"
View gnome-tracker-disable.md

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@kemelzaidan
kemelzaidan / keybase.md
Created Aug 4, 2017
keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am kemelzaidan on github.
  • I am kemelzaidan (https://keybase.io/kemelzaidan) on keybase.
  • I have a public key ASBFQgoxSAJrGg4gHYCaaQ3euA_4ZHPPJCOud3D56jQe-Qo

To claim this, I am signing this object:

@kemelzaidan
kemelzaidan / select-estados-br
Created Apr 27, 2017 — forked from cassiocardoso/select-estados-br
Select com uma lista de todos os estados brasileiros.
View select-estados-br
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>
@kemelzaidan
kemelzaidan / recipe.js
Created Apr 4, 2016
remote storage Recipe Module
View recipe.js
RemoteStorage.defineModule('recipe', function(privateClient, publicClient) {
var baseProperties = {
"oven_temp": {
"description": "celsius or farenheit",
"type": "object",
"properties": {
"amount": {"type": "integer"},
"unit": {"type": "string", "enum": ["F", "C"]}
}
@kemelzaidan
kemelzaidan / composer-install.sh
Created Mar 23, 2016
Código de exemplo de instalação do composer para o artigo do HumHub no blog da Locaweb
View composer-install.sh
php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php
php -r "if (hash('SHA384', file_get_contents('composer-setup.php')) === '41e71d86b40f28e771d4bb662b997f79625196afcca95a5abf44391188c695c6c1456e16154c75a211d238cc3bc5cb47') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar composer
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

@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 / 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 ""
You can’t perform that action at this time.