Skip to content

Instantly share code, notes, and snippets.

View kemelzaidan's full-sized avatar

Kemel Zaidan kemelzaidan

View GitHub Profile
@kemelzaidan
kemelzaidan / saur.fish
Last active October 10, 2023 19:56
a wrapper around SSH AUR commands
function saur -d "a wrapper around SSH AUR commands"
set -g AUR "aur@aur.archlinux.org"
set KEYS ~/.ssh/*pub ~/.ssh/*pem
if test (count $KEYS) -eq 0
echo "Create you SSH key and upload the public one to AUR"
return 1
end
if test (count $argv) -eq 1
@kemelzaidan
kemelzaidan / shrinkpdf.sh
Last active September 14, 2022 21:30
A simple bash script to shrink PDFs based on ghostscript cli tool
#!/bin/bash
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License version 3 as published
## by the Free Software Foundation.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
## GNU General Public License for more details.
@kemelzaidan
kemelzaidan / gnome-tracker-disable.md
Created December 15, 2017 19:56 — forked from vancluever/gnome-tracker-disable.md
GNOME Tracker Disable

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 August 4, 2017 21:13
keybase verification

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 April 27, 2017 23:49 — forked from cassiocardoso/select-estados-br
Select com uma lista de todos os estados brasileiros.
<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 April 4, 2016 19:51
remote storage Recipe Module
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 March 23, 2016 18:36
Código de exemplo de instalação do composer para o artigo do HumHub no blog da Locaweb
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
@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

@kemelzaidan
kemelzaidan / ember_examples.md
Created December 9, 2015 17:17 — forked from rwjblue/ember_examples.md
Ember Examples