Sunday, October 18, 2015

Postfix survival kit (SMTP server)

http://www.postfix.org/

config in:
/etc/postfix/main.cf

Tuesday, September 1, 2015

curl survival kit

(-v verbose)

curl --request PUT --user admin http://maven.toot.com/nexus/content/repositories/releases/com/leguide/search3s/search-3S/3.5.4/threesidx4/lg_platform_scheduler_server.conf.xml --data-binary @/home/lee/lee_dev/search-platform/platform-scripts/config-prod/price_intelligence/threesidx4-cluster/lg_platform_scheduler_server.conf.xml

curl -X PUT "http://127.0.0.1:9200/index_tmp/_doc/1" -H 'Content-Type: application/json' -d'{"title": "whatever"}'

Saturday, August 22, 2015

apt-get survival kit

apt-cache policy gcc-4.8-base
apt-get --simulate install libgfortran3
apt-get -f install       (fix broken)
apt-get update
ppa purge

aptitude install libgfortran3    : automatically downgrade packages

Saturday, July 25, 2015

openvpn


  ps aux |grep vpn
  sudo /etc/init.d/openvpn start
  sudo /etc/init.d/openvpn stop
  /sbin/ifconfig

Tuesday, April 14, 2015

Using Latex online

.
.
http://www.sciweavers.org/free-online-latex-equation-editor

You can cut and paste things like

\flushleft
  x(u) = \begin{bmatrix}1 \\ 1 \\ 0 \end{bmatrix} \\
  y(i) = \begin{bmatrix}0 \\ 1 \\ 0 \end{bmatrix} \\
\centering\\
\flushleft
preference: p(u,i) = x^\intercal(u) * y(i)\\
\centering\\
\flushleft
min  \sum\limits_{u,i} (r(u,i) - p(u,i))^2 +  \lambda (||x(u)||^2 + ||y(i)||^2)

Thursday, April 2, 2015

nomachine


  • logs on the server

/usr/NX/var/log


  • kill the sessions
sudo nxserver --terminate   myusername


  • restart nxserver
    • sudo service nxserver stop
    • sudo service nxserver start