This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
available () { | |
command -v $1 >/dev/null 2>&1 | |
} | |
# Make sure we have wget or curl | |
if available wget; then | |
SILENT_DL="wget -qO-" | |
LOUD_DL="wget" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Zorin OS Start Page Field Focus | |
// @description Simple Greasemonkey/Violentmonkey/TamperMonkey script to autofocus the field on "Zorin OS Start Page / Search Google" | |
// @namespace http://www.openjs.com/ | |
// @include https://zorinos.com/start/ | |
// @author Maxwel Leite | |
// @namespace https://gist.github.com/maxwelleite | |
// @encoding utf-8 | |
// @version 1.0 | |
// @updateURL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Filename: update-hosts.sh | |
# | |
# Author: George Lesica <george@lesica.com> | |
# Enhanced by Eliastik ( eliastiksofts.com/contact ) | |
# | |
# Description: Replaces the HOSTS file with hosts lists from Internet, | |
# creating a backup of the old file. Can be used as an update script. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Maxwel Leite | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Simple bash script to install the latest static version of FFmpeg (from http://ffmpeg.gusari.org/static/) | |
# Dependencies: wget | |
# Tested: Ubuntu Saucy | |
if [[ $EUID -ne 0 ]]; then | |
echo -e "You must be a root user!\nTry: sudo ./ffmpeg-update.sh" 2>&1 | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Maxwel Leite | |
# file-name: firefox-language-installer.sh | |
# Website: http://needforbits.wordpress.com/ | |
# Description: Script to automatic download, install and configure the language pack on Firefox [Ubuntu/Debian distros] | |
# Dependencies: firefox-mozilla-build (Ubuntuzilla Repository) or firefox (obvious!) and wget | |
# Tested: Ubuntu 14.04 (Trusty), 13,10 (Saucy) | |
# License: GPLv3 | |
# Note: Also works with Firefox installed from compressed tarball (ex: firefox-33.1.1.tar.bz2) | |
# TODO: Test in Debian |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash Script to Install FFMPEG in Ubuntu 14.04 | |
# Ref: http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu | |
# Opsional: install exiftool: apt-get install libimage-exiftool-perl | |
# | |
# Author: Edi Septriyanto http://masedi.net <hi@masedi.net> | |
######################################################################## | |
CURDIR=$(pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[noshift] | |
Key8=0:0 | |
Key9=65307:27 | |
Key10=49:49 | |
Key11=50:50 | |
Key12=51:51 | |
Key13=52:52 | |
Key14=53:53 | |
Key15=54:54 | |
Key16=55:55 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#The MIT License | |
# | |
#Copyright (c) 2007 Cappy | |
#Permission is hereby granted, free of charge, to any person obtaining a copy | |
#of this software and associated documentation files (the "Software"), to deal | |
#in the Software without restriction, including without limitation the rights | |
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
#copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Maxwel Leite | |
# file-name: functions-str.sh | |
# Website: http://needforbits.tumblr.com/ | |
# Description: Collection of useful string functions for BASH programming | |
# License: GPLv3 | |
# Description: Remove leading and trailing whitespace characters | |
# @param string source string | |
# usage: result="$(trim " a b c d ")" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Author: Maxwel Leite | |
# Website: http://needforbits.tumblr.com/ | |
# | |
# Description: | |
# Forces to wipe/cleanup entire database of MediaTomb (UPnP Media Server - DLNA) | |
# | |
# Dependencies: sqlite3 | |
# |
NewerOlder