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 | |
# Simplified forms using awk | |
pip install --upgrade $(pip list | awk '{printf(" %s ",$1)}') | |
pip3 install --upgrade $(pip3 list | awk '{printf(" %s ",$1)}') | |
# Alternative forms using sed | |
#pip install --upgrade $(pip list | awk -F" " '{print $1}' | sed ':a;N;s/\n/ /g;ba') # Alternative form | |
#pip3 install --upgrade $(pip3 list | awk -F" " '{print $1}' | sed ':a;N;s/\n/ /g;ba') # Alternative form |
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
# Install Prerequisites for MathGL 2.3.5 in Debian | |
apt-get update | |
apt-get install libqt5webkit5-dev libhpdf-dev libgsl-dev libopenmpi-dev libhdf5-dev libwxgtk3.0-dev libpng-dev texinfo | |
# Inside mathgl-2.3.5 source directory | |
mkdir build | |
cd build | |
cmake -D enable-qt5=ON -D enable-pdf=ON -D enable-png=ON -D enable-jpeg=ON -D enable-openmp=ON -D enable-gsl=ON -D enable-hdf5=ON -D enable-wx=ON enable-mpi=ON -D enable-doc-pdf-en=ON .. | |
make -j 4 |
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
# As 17 July 2018 in Debian Testing upgraded 3 days ago. | |
# As root install the following: | |
# apt-get update | |
# apt-get install libtool libtool-bin autoconf automake cmake g++ pkg-config unzip gettext | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Get inside the neovim-nightly directory and let the fun begin | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# As regular user then run this to build the third-party dependencies. |
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
user="" | |
script="clone_github_"$user"_public_repos.sh" | |
curl -i https://api.github.com/users/$user/repos | awk 'index($line,"ssh_url") { print $line}' | sed '{s/"//g;s/,$//g;s/ *ssh_url\:/git clone/}' > $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 | |
username="" # The user to be autenticated | |
script="clone_github_"$username"_repos.sh" | |
curl -i -u $username https://api.github.com/user/repos | awk 'index($line,"ssh_url") { print $line}' | sed '{s/"//g;s/,$//g;s/ *ssh_url\:/git clone/}' > $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
from matplotlib import pyplot as plt | |
from scipy.integrate import ode | |
# Model Parameters | |
y0, t0 = [5.0,0.0], 0 | |
kappa = 2.0 | |
eta = 0.1 | |
def f(t, y, arg1,arg2): | |
# Sistem |
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
--------------- | |
libtgvoip v0.4 on Linux 4.9.0-2-amd64 (#1 SMP Debian 4.9.18-1 (2017-03-30)) x86_64 | |
Log started on 17/05/2017 at 9:05:43 | |
--------------- | |
05-17 09:05:43 I: update data saving mode, config 0, enabled 0, reqd by peer 0 | |
05-17 09:05:43 W: Starting voip controller | |
05-17 09:05:43 V: trying bind to port 21963 | |
05-17 09:05:43 D: Bound to local UDP port 21963 | |
05-17 09:05:43 I: Receive thread starting | |
05-17 09:05:43 E: can't set thread priority: Operación no permitida |
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
--------------- | |
libtgvoip v0.4 on Linux 4.9.0-2-amd64 (#1 SMP Debian 4.9.18-1 (2017-03-30)) x86_64 | |
Log started on 17/05/2017 at 8:59:27 | |
--------------- | |
05-17 08:59:27 I: update data saving mode, config 0, enabled 0, reqd by peer 0 | |
05-17 08:59:27 W: Starting voip controller | |
05-17 08:59:27 V: trying bind to port 22121 | |
05-17 08:59:27 D: Bound to local UDP port 22121 | |
05-17 08:59:27 E: can't set thread priority: Operación no permitida | |
05-17 08:59:27 I: Receive thread starting |
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
--------------- | |
libtgvoip v0.4 on Linux 4.9.0-2-amd64 (#1 SMP Debian 4.9.18-1 (2017-03-30)) x86_64 | |
Log started on 17/05/2017 at 11:27:23 | |
--------------- | |
05-17 11:27:23 I: update data saving mode, config 0, enabled 0, reqd by peer 0 | |
05-17 11:27:23 W: Starting voip controller | |
05-17 11:27:23 V: trying bind to port 22847 | |
05-17 11:27:23 D: Bound to local UDP port 22847 | |
05-17 11:27:23 I: Receive thread starting | |
05-17 11:27:23 E: can't set thread priority: Operación no permitida (translation: can't set thread priority: operation not allowed) |
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
# virtual PCM pointed to by !default | |
pcm.plugequal { | |
type equal; | |
# Software mixing through dmix. All sources played at once | |
slave.pcm "plug:dmix"; | |
} | |
# The sounds are processed with an equalizer | |
# another alsa plugin | |
pcm.!default { |
OlderNewer