- Just change the
report_crashesparameter tofalsein the/etc/default/whoopsiefile. - Then bid farewell to whoopsie with
sudo service whoopsie stop.
Tuesday, May 03, 2016
What is the 'whoopsie' process and how can I remove it?
How do I disable it on a server or via the command-line?
https://wiki.ubuntu.com/Tracker
Comments and Discussion
How to disable tracker globally :
- Disabling tracker for globally (for all users)
- Edit /etc/xdg/autostart/trackerd.desktop file with root priviledges (sudo vim, gksudo gedit ...)
- Add "Hidden=true" to the end of the file
- Do the same for /etc/xdg/autostart/tracker-applet.desktop if you want
- Disabling tracker for your user only
- Enter the directory "~/.config/autostart", create it if it does not exist
- Create a file named trackerd.desktop
- Paste the following into the file, save and exit
[Desktop Entry]
Encoding=UTF-8
Name=Tracker
Hidden=true
- Gokdeniz Karadag
Friday, February 19, 2016
non-existent service “fos_user.doctrine_registry”
in your app/config/config.yml, you have to alias fos_user.doctrine_registry to doctrine
services:
fos_user.doctrine_registry:
alias: doctrine
services:
fos_user.doctrine_registry:
alias: doctrine
Saturday, October 31, 2015
Nodejs v5 on ubuntu 14.04
# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
node -v
v5.0.0
for the stable version:sudo npm cache clean -f
sudo npm install -g n
sudo n stable
sudo ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/nodejs
for the lastest:sudo n latest
To undo:
sudo apt-get install --reinstall nodejs-legacy # fix /usr/bin/node
sudo n rm 6.0.0 # replace number with version of Node that was installed
sudo npm uninstall -g n
How to add column descriptions (comments) in Doctrine2
You can add a comment to a column name or entire table with the "options" argument to the annotation; eg:
/**
* @ORM\Column(type="string", options={"comment":"The string to show in the dropdown "})
*/
for a column, or for a table:
/**
* @ORM\Entity
* @ORM\Table(name="application", options={"comment":"Funding applications"});
*/
Note however this will not add comments to an existing table or column, you have to delete the table from the DB and rebuild it. If it's just adding comments, you could rename the table, create the new table, and import data from the original.
Source: Doctrine documentation
Monday, October 26, 2015
Disable internet connection from terminal!
The following command works for me like a charm if I want to disable any internet connection from terminal:
nmcli nm enable false
To enable it again:
nmcli nm enable true
nmcli nm enable false
To enable it again:
nmcli nm enable true
Wednesday, August 26, 2015
HowTo: Flush Contents Of a Memcached Server Using Command Line
echo 'flush_all' | nc localhost 11211
Subscribe to:
Posts (Atom)
systemd-timesyncd
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd
-
sudo -u www-data /usr/local/bin/composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
-
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd