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 | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update |
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
sudo apt install ppp pptp-linux | |
echo "/etc/ppp/chap-secrets" | |
DOMAIN="vpn.shinobi.video" | |
echo "VPN Server User" | |
read vpnuser | |
echo "VPN Server Password" | |
read vpnpass | |
chapsecret="$DOMAIN\\$vpnuser PPTP $vpnpass *" | |
if grep -q $chapsecret /etc/ppp/chap-secrets; then | |
echo "Already Set." |
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
# Solution found here https://github.com/NVIDIA/nvidia-docker/issues/857#issuecomment-482379024 | |
DOCKER_CE_VERSION=`apt-cache show nvidia-docker2 | grep -Po "(?<=docker-ce \(= )([^)]*)" | head -n 1` | |
apt-get -yq install nvidia-docker2 docker-ce=${DOCKER_CE_VERSION} |
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
import 'dart:typed_data'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_vlc_player/vlc_player.dart'; | |
import 'package:flutter_vlc_player/vlc_player_controller.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatefulWidget { | |
@override |
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 | |
# ============================================================= | |
# UPDATE SOURCE | |
# ============================================================= | |
# git clone https://github.com/tensorflow/tensorflow | |
# git checkout -- . | |
# git pull origin master | |
# TF_BRANCH=r1.8 | |
TF_ROOT=/home/tensorflow |
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
PUBLICKEY="YOUR_PUBLIC_KEY_HERE" | |
echo "ssh-rsa $PUBLICKEY" >> ~/.ssh/authorized_keys | |
cat ~/.ssh/authorized_keys | |
sed -i 's/UsePAM yes/UsePAM no/g' /etc/ssh/sshd_config | |
sed -i 's/ChallengeResponseAuthentication yes/ChallengeResponseAuthentication no/g' /etc/ssh/sshd_config | |
sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config | |
service sshd restart |
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 | |
## FORSTWOOF UBUNTU PRESEED :: BUILD SCRIPT | |
# Quit on first error | |
set -e | |
# Temporary directory for the build | |
TMP="/var/tmp/ubuntu-build" |
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
wget https://deb.nodesource.com/setup_12.x | |
chmod +x setup_12.x | |
./setup_12.x | |
sudo apt install nodejs make gcc-8 g++-8 -y | |
sudo apt install node-pre-gyp -y | |
rm setup_12.x | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8 |
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
echo "Installing dependencies" | |
sudo apt install gcc-7 g++-7 cmake git -y | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 800 --slave /usr/bin/g++ g++ /usr/bin/g++-7 | |
echo "=============" | |
echo "Installing Node.js : For using PM2 daemon manager" | |
wget https://deb.nodesource.com/setup_12.x | |
chmod +x setup_12.x | |
./setup_12.x | |
sudo apt install nodejs -y |
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
/// How it works : | |
/// This script will download videos from your Amcrest Camera automatically (automate cumbersome task of individually clicking download on each video) | |
/// Limitation is that it will stop downloading when it reaches the end of the month. | |
/// HOW TO USE : | |
// 1. Login to Amcrest camera and click Playback tab. | |
// 2. Select Day of the Month to begin downloading from. | |
// 3. Open the Web Browser Console. (CTRL + SHIFT + C on Mac) | |
// 4. Paste this entire script in the execution field and run it. | |
// 5. You will see the files start downloading. |
OlderNewer