Create a ssh key with a simple one liner.
HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub
Create a ssh key with a simple one liner.
HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub
This is the easiest way to get the price of Bitcoin from the command line or terminal.
Pre-requisuites : jq
Install : apt-get install jq
Get the price of Bitcoin from command line
curl -s https://api.binance.com/api/v1/ticker/24hr | jq -cr '.[] | select(.symbol == "'"BTCUSDT"'") | .lastPrice'
Here are some of the reasons the iPad Pro has failed to live up to expectations.
1. No 1080p or 4k video support on YouTube. Due to licensing issues Safari, nor any other browser can display even a 1080p video on YouTube. For a device that costs as much as this, this is unacceptable.
2. Uninstalling pre-installed apps. This may be a complaint towards the operating system more so than the device, but once again Apple suprises us all. Apps uninstall themselves! Magically. With no warning, Apple started uninstalling apps to make room for new content and never have to warn the user of disk space. Sounds like a great idea until you are offline somwhere and go to use an app you believed was on your device when in fact it was removed!
The easy way to unmount sshfs goes as follows
sudo umount -l directory
Use -l “lazy” which is required for unmounting sshfs
-l, --lazy detach the filesystem now, clean up things later
Speed up rsync over lan or wan with this simple addition to your command.
-e "ssh -T -c aes128-ctr -o Compression=no -x"
Her we use the new command in a safe (dry run) example
rsync -avn --progress -e "ssh -T -c aes128-ctr -o Compression=no -x" source/ user@x.x.x.x:/destination
Disable all Docker containers auto restart
docker update --restart=no $(docker ps -q)
docker container run bitfield/uptimerobot –apiKey YOURKEY new http://websitetomonitor.com “name of monitor”
Webpass IPv6 Prefix Delegation must be set to use /56 otherwise the IPv6 address will not be properly assigned to your router.
Here is an example of what this should look like using OpnSENSE
[raw]
apt-get install libdb++-dev
apt-get install libboost1.58-all-dev libboost-all-dev
apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake opencl-headers Mesa-common-dev
git clone https://github.com/nginnever/zogminer.git
cd zogminer/
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)
[/raw]
Run GPU test miner
[raw]
./src/zcash-miner -G
[/raw]
It is easy to use Python with forever.js:
[raw]
forever start -c python python_script.py
[/raw]
To use it with virtualenv is a little bit more complicated, I did it using a bash script (call it python_virtualenv):
[raw]
#!/bin/bash
# Script to run a Python file using the local virtualenv
source bin/activate
bin/python $@
[/raw]
Now use that script with forever:
[raw]
forever start -c ./python_virtualenv python_script.py
[/raw]
Easy one liner to install nodejs and forever on Ubuntu 18.04
[raw]
apt-get install -y nodejs-dev npm ; npm install forever -g
[/raw]
Custom build of Docker WordPress 4.9.8-php7.1-apache with mcrypt, redis, memcached, and imagemagick libraries ready to go!
Available at 88plug/wordpress now on Docker hub!
[raw]
xscreensaver -no-splash
[/raw]
Add the above command to your startup applications.
[raw]
mkdir -p /etc/run/systemd/resolve
ln -sr /etc/run/systemd/resolve/resolv.conf /etc/run/systemd/resolve/stub-resolv.conf
[/raw]
Now add a nameserver to stub-resolv.conf
[raw]
nameserver 1.1.1.1
nameserver 1.0.0.1
[/raw]
[raw]
RUN apt-get update -y
RUN apt-get install -y libgmp-dev re2c libmhash-dev libmcrypt-dev file
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/local/include/
RUN docker-php-ext-configure gmp
RUN docker-php-ext-install gmp
RUN docker-php-ext-configure mcrypt
RUN docker-php-ext-install mcrypt
RUN echo extension=gmp.so > $PHP_INI_DIR/conf.d/gmp.ini
RUN echo extension=mcrypt.so > $PHP_INI_DIR/conf.d/mcrypt.ini
[/raw]
[raw]
dconf write /org/gnome/desktop/interface/cursor-size 48
[/raw]
Fix fatal error: curl/curl.h: No such file or directory
[raw]
apt-get install libcurl4-openssl-dev
[/raw]
or
[raw]
apt-get install libcurl4-gnutls-dev
[/raw]
Fix fatal error: gmp.h: No such file or directory
[raw]
apt-get install libgmp3-dev
[/raw]
Fix fatal error: mysql.h: No such file or directory
[raw]
apt-get install libmysqlclient-dev
[/raw]