Skip to content

Instantly share code, notes, and snippets.

View kemelzaidan's full-sized avatar

Kemel Zaidan kemelzaidan

View GitHub Profile
@vancluever
vancluever / gnome-tracker-disable.md
Last active November 13, 2024 18:26
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

@nl5887
nl5887 / transfer.fish
Last active July 30, 2024 09:21
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
@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)"
@cassiocardoso
cassiocardoso / select-estados-br
Created February 12, 2014 23:31
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>
@lg0
lg0 / markdown.xml
Created April 10, 2012 19:58
Markdown Syntax Highlighting for 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>