Instantly share code, notes, and snippets.

View qt511
#source: https://launchpad.net/~beineri/+archive/ubuntu/opt-qt-5.11.1-bionic
sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-bionic
sudo apt-get update
sudo apt install qt511-meta-full qt511creator qt511meta-dbg-full qt511-meta-minimal
View install_macport_MacOS_mojave
$ sudo xcode-select –install
$ cd ~/Desktop
$ mkdir macports
$ cd macports
$ curl -O https://distfiles.macports.org/MacPorts/MacPorts-2.5.3.tar.gz
$ tar -xzvf MacPorts-2.5.3.tar.gz
$ cd MacPorts-2.5.3
$ ./configure
$ make
$ sudo make install
View gist:c58d314dc0e7cf0223fc073a0984ea43
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.9 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-6.0 1000
sudo update-alternatives --install /usr/bin/clang++ clang /usr/bin/clang-3.9 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 100
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-6.0 1000
sudo update-alternatives --config clang
sudo update-alternatives --config clang++
View install_opencv_ubuntu.sh
######################################
# INSTALL OPENCV ON UBUNTU OR DEBIAN #
######################################
# | THIS SCRIPT IS TESTED CORRECTLY ON |
# |----------------------------------------------------|
# | OS | OpenCV | Test | Last test |
# |----------------|--------------|------|-------------|
# | Ubuntu 17.04 | OpenCV 3.4.1 | OK | 14 Mar 2018 |
# | Debian 9.3 | OpenCV 3.4.0 | OK | 17 Feb 2018 |
View s-tui is a terminal UI for monitoring your computer. s-tui allows to monitor CPU temperature, frequency, power and utilization in a graphical way from the terminal.
What it does
Monitoring your CPU temperature/utilization/frequency/power
Shows performance dips caused by thermal throttling
Requires minimal resources
Requires no X-server
Built in options for stressing the CPU (stress/stress-ng)
****************************************************************************************************************************************
Dependencies
View squirrel-sql.sh
#! /bin/sh -x
ABSPATH=$(cd "$(dirname "$0")"; pwd)
# This function sets a global variable named "CP" to a command-path separated list of jars located beneath the
# specified folder. If the specified folder contains a lib directory, then jars beneath the lib folder are
# @ added as well as the squirrel-sql.jar file located in the directory specified as the first argument to
# this function.
buildCPFromDir()
{
View how to permamently disable OSX sleepimage
View the sleep image size
ls -lh /private/var/vm/sleepimage
Disable sleep mode:
sudo pmset -a hibernatemode 0
Remove the image:
sudo rm /private/var/vm/sleepimage
Create a 0-byte file:
View ftp-ubuntu.md

Instalación

apt-get update
apt-get install proftpd

Ediar archivo de configuración

View using localhost as a ftp server
Command Line:
# Install Lamp
Configure for permission:
cd /var/www/html
sudo chown -R user:www-data /var/www/html/
sudo chmod -R 775 /var/www/html/
sudo chmod g+s /var/www/html/
#Install ftp [vsftpd]
View guide.md

#install config pure-db sudo apt-get install pure-ftpd

sudo groupadd ftpgroup

``