Thursday, December 05, 2013
Friday, September 27, 2013
How to add and modify applications in the slingshot launcher of elementaryOS
Open up a terminal and type:
sudo apt-get install --no-install-recommends alacarte
Now, we're going to make alacarte work with slingshot. Type this in a terminal:
This will open up a text file. Hit ctrl+F to search for 'applications.menu' and replace all with 'pantheon-applications.menu' (you have to replace applications.menu twice in the file). When done, close the file.
Now start the menu editor by typing 'alacarte' in slingshot or in a terminal
sudo apt-get install --no-install-recommends alacarte
sudo scratch-text-editor /usr/share/alacarte/Alacarte/MenuEditor.py
This will open up a text file. Hit ctrl+F to search for 'applications.menu' and replace all with 'pantheon-applications.menu' (you have to replace applications.menu twice in the file). When done, close the file.
Now start the menu editor by typing 'alacarte' in slingshot or in a terminal
Gdk Gtk warnings and errors from the command line
The
Unable to locate theme engine in module_path: "pixmap"
messages are a known bug.
To fix it, install the gtk2-engines-pixbuf package
Friday, July 26, 2013
Monday, July 22, 2013
Save jQuery active tab
$("#tabs").tabs({
activate: function (e, ui) {
$.cookie('selected-tab', ui.newTab.index(), { path: '/' });
},
active: $.cookie('selected-tab')
});
activate: function (e, ui) {
$.cookie('selected-tab', ui.newTab.index(), { path: '/' });
},
active: $.cookie('selected-tab')
});
Wednesday, May 15, 2013
How to remove kernels from previous release?
Open terminal and check your current kernel:
uname -r
DO NOT REMOVE THIS KERNEL!
Next, type the command below to view / list all installed kernels on your system.
dpkg --list | grep linux-image
Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.
sudo apt-get purge linux-image-x.x.x.x-generic
or
sudo apt-get purge linux-image-3.2.0-3{0..5}-generic
Finally, run the commands below to update grub2
sudo update-grub2
Reboot your system.
Tuesday, May 14, 2013
Copy the public key to remote-host using ssh-copy-id
ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
more in:
Sunday, May 12, 2013
xubuntu 12.10 mining bitcoin
Follow this tutorial:
http://www.distrogeeks.com/install-cgminer-latest-ubuntu/
but use amd sdk 2.7
2.8 don't work for me.
http://www.distrogeeks.com/install-cgminer-latest-ubuntu/
but use amd sdk 2.7
2.8 don't work for me.
Saturday, May 04, 2013
sendemail: invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm line 332
sudo aptitude install sendemail
sudo aptitude install libio-socket-ssl-perl
sendEmail -f xxx@gmail.com -t xxx@gmail.com -u Teste_Assunto -m Teste_Corpo -s smtp.gmail.com:587 -xu xxx_conta -xp xxx_senha -o tls=yes
if you have this error:
invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm
The SSL_version is being coded as "SSLv3 TLSv1" and the regular expression is failing. I hacked it as a workaround as follows... change:
m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))$}i
to:
m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))}i
That did the trick for me.
Apagar ficheiros duplicados
sudo aptitute install fdupes
fdupes -r /home > dupes.txt
fdupes -r -d /home
fdupes -r /home > dupes.txt
fdupes -r -d /home
Monday, April 29, 2013
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName on Xubuntu
sudo sh -c 'echo "ServerName localhost" >> /etc/apache2/conf.d/name' && sudo service apache2 restart
Tuesday, April 23, 2013
Changing DNS in Ubuntu >= 12.04
sudo sublime-text /etc/dhcp/dhclient.conf
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
sudo resolvconf -u
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
sudo resolvconf -u
Wednesday, April 17, 2013
Friday, April 12, 2013
bitcoin - pool management - cgminer or bfgminer
To ADD a Pool
After the miner has started
1. Press P to access pool management
-- press A to add a pool
-- enter URL of the pool (press Enter)
-- enter "worker" name or username at your pool (press Enter)
-- enter password for that worker (press Enter)
2. Press S to access Settings to save your config file
-- press W to write the file
-- press Enter for bfgminer.conf or choose another file name
To REMOVE a Pool
After the miner has started
1. Press P to access pool management
-- press R to remove a pool from the list above
-- enter the # of the pool you want to remove (again, see list above, it should start with 0: Enabled GBT ...)
2. Press S to access Settings to save your config file
-- press W to write the file
-- press Enter for bfgminer.conf or choose another file name
After the miner has started
1. Press P to access pool management
-- press A to add a pool
-- enter URL of the pool (press Enter)
-- enter "worker" name or username at your pool (press Enter)
-- enter password for that worker (press Enter)
2. Press S to access Settings to save your config file
-- press W to write the file
-- press Enter for bfgminer.conf or choose another file name
To REMOVE a Pool
After the miner has started
1. Press P to access pool management
-- press R to remove a pool from the list above
-- enter the # of the pool you want to remove (again, see list above, it should start with 0: Enabled GBT ...)
2. Press S to access Settings to save your config file
-- press W to write the file
-- press Enter for bfgminer.conf or choose another file name
Thursday, March 28, 2013
Wednesday, March 27, 2013
Thursday, March 21, 2013
xubuntu brightness
sudo su
root@xubuntu:/home/pedro/Dropbox/www/kits# echo 10 > /sys/class/backlight/acpi_video0/brightness
Monday, March 18, 2013
How to detect if datatables is loaded
if($.fn.dataTableExt){
console.log('datatables ok');
}else{
console.log('datatables ko');
//head.ready(function() {head.js("js/libs/jquery.dataTables.min.1.9.4.js")});
}
Tuesday, January 29, 2013
Monday, January 28, 2013
sqli
%20and%20benchmark(20000000%2csha1(1))--%20
ex:
editGroup=1%20and%20benchmark(20000000%2csha1(1))--%20
ex:
editGroup=1%20and%20benchmark(20000000%2csha1(1))--%20
Subscribe to:
Posts (Atom)
Git get all remote branches
git branch -r \ | grep -v '\->' \ | sed "s,\x1B\[[0-9;]*[a-zA-Z],,g" \ | while read remote; do \ git branc...
-
sh -c 'xfce4-screenshooter --fullscreen --save "$HOME/Pictures/Screenshots/Screenshot_$(date +%Y-%m-%d_%H:%M:%S).png"' s...
-
Known Issues Firefox 3.5 will only support color profiles as specified by ICC v2, later versions will add su...