Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Nvidia 430.26 installer, BETA.
SERVER="http://159.203.46.64"
ETHOSVERSION="1.3.3"
VERSION="430.26"
function f.checkdpkg(){
DPKGLOCKED=$(lsof /var/lib/dpkg/lock 2>/dev/null | grep -c "/var/lib/dpkg/lock"); WAITCOUNT="0"
if [ "$DPKGLOCKED" -ge "1" ];then
until [ "$DPKGLOCKED" = "0" ] || [ "$WAITCOUNT" = "60" ]; do
DPKGLOCKED=$(lsof /var/lib/dpkg/lock 2>/dev/null | grep -c "/var/lib/dpkg/lock"); ((WAITCOUNT++))
@beci
beci / gcc 5 on ubuntu 14.04
Created October 15, 2015 07:18
use gcc 5.x on ubuntu 14.04
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5