- Python 3
- Pip 3
$ brew install python3
#!/bin/bash | |
echo "*****************************************" | |
echo " Add the 10gen repository - after you press" | |
echo " enter add the following lines and then" | |
echo " cntl-X to save:" | |
echo " [10gen]" | |
echo " name=10gen Repository" | |
echo " baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64" | |
echo " gpgcheck=0" | |
echo "*****************************************" |
<?php | |
/** | |
* PHP Anonymous Object | |
*/ | |
class AnObj | |
{ | |
protected $methods = array(); | |
public function __construct(array $options) |
<?php | |
class AnObj | |
{ | |
protected $methods = array(); | |
protected $properties = array(); | |
public function __construct(array $options) | |
{ | |
# Installation | |
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
# Easy Peasy | |
ffmpeg -i video.mp4 video.webm |
<?php | |
class ☭ { | |
protected $☭; | |
public function __call($n, $v) | |
{ | |
$this->☭ or ($this->☭ = (object)[]); | |
@$this->☭->{$n} or ($this->☭->{$n} = []); | |
$this->☭->{$n}[trim(mb_substr($v[0], 0, mb_strpos($v[0], "\n")))] = create_function( |
# /etc/network/interfaces | |
# | |
auto lo | |
iface lo inet loopback | |
# device: eth0 | |
iface eth0 inet manual | |
# IPv4 bridge | |
# (connect ONLY your firewall/router KVM instance here, this is the WAN device!) |
Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.
First run nvidia-xconfig --enable-all-gpus
then set about editing the xorg.conf
file to correctly set the Coolbits
option.
# /etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"