View what-is-installed.sh
1 2
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n
#dpkg --get-selections > ~/InstalledPackages.list
View first-input-focus.js
1 2 3
function focusFirstInput($root) {
$(':input', $root).not('[type="hidden"], button').first().focus();
}
View ubuntu-14-subclipse-1.10-tutorial.txt
1 2 3 4 5 6 7 8 9 10
// reference: http://subclipse.tigris.org/wiki/JavaHL
 
Install inside RAD 8.5:
http://subclipse.tigris.org/update_1.10.x
Install JavaHL dependencies:
sudo apt-get install libsvn-java -y
 
Find installation path
sudo find / -name libsvnjavahl-1.so
View ubuntu-14.04-bash-to-dash.sh
1 2 3 4
cd /bin
rm sh
ln -s dash sh
echo "DONE! USING DASH"
View db2-odbc-config.sh
1 2 3 4 5 6 7
apt-get install nodejs nodejs-legacy npm -y
 
apt-get install git unixodbc unixodbc-dev
git clone git://github.com/wankdanker/node-odbc.git
cd node-odbc
node-gyp configure build
npm install odbc
View draft-ubuntu-14.04-fist-run.sh
1 2 3 4 5 6 7 8 9
#!/bin/bash
 
# SET CHROME KEY + REPOS
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - > /dev/null
sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
echo -ne "SET CHROME REPOSITORY... OK\n"
 
# SET SUBLIME TEXT REPOSITORY
sudo add-apt-repository ppa:webupd8team/sublime-text-3
View data-fill-till-bottom.js
1 2 3 4 5 6 7 8
// RECOMENDAVEL UTILIZAR $().ready JA EXISTENTE
 
$(document).ready(function() {
 
var $filler = $('[data-fill-till-bottom]');
$filler.height($(window).height() - $filler.offset().top);
 
});
View utils.logging to log4j level map.txt
1 2 3 4 5 6
FINEST -> TRACE
FINER -> DEBUG
FINE -> DEBUG
INFO -> INFO
WARNING -> WARN
SEVERE -> ERROR
View delete-stuff.bat
1 2 3 4 5 6 7 8 9
@echo off
 
set foldername=%1
 
:: Remove files before removing their folders. It's faster
DEL /F /Q /S %foldername%\*
 
:: "RD" is much more fast than "RMDIR"
for /D %%i in ("%foldername%\*") do RD /S /Q "%%i"
Something went wrong with that request. Please try again.