Download Egghead.io videos using Lynx Browser and youtube-dl. This method will only work for videos that do not require a pro account.
You need a Unix/Linux box with Lynx console browser and Youtube-dl installed.
root# apt-get update | |
root# apt-get upgrade | |
// dependencies for Ruby | |
root# apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \ | |
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev \ | |
libpcre3-dev unzip | |
// Node.js v7 | |
root# curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash - |
// Retry 5 times with waiting for 2 seconds | |
function* updateApi(data) { | |
for(let i = 0; i < 5; i++) { | |
try { | |
const apiResponse = yield call(apiRequest, { data }); | |
return apiResponse; | |
} catch(err) { | |
if(i < 4) { | |
yield call(delay, 2000); | |
} |
In your command-line run the following commands:
brew doctor
brew update
#!/usr/bin/env bash | |
clear | |
printf "Checking dependency...\n" | |
XDOTOOL_INSTALLED=$(dpkg-query -W -f='${Status}' xdotool 2>/dev/null | grep -c "ok installed") | |
if [ $XDOTOOL_INSTALLED -eq 0 ]; | |
then | |
printf "\a" | |
printf "Unmet dependency:\n xdotool" | |
printf "\nDo you want to install required packages (Y/n)?" |
# Ruby CircleCI 2.0 configuration file | |
# | |
# Check https://circleci.com/docs/2.0/language-ruby/ for more details | |
defaults: &defaults | |
working_directory: ~/split_app | |
parallelism: 2 | |
docker: | |
- image: circleci/ruby:2.5.0-node-browsers |
// Import the splash.dart into your main app and use like: | |
// ex: Splash(iconData:Icons.restaurant, label: 'MY APP',); | |
import 'package:flutter/material.dart'; | |
class Splash extends StatefulWidget { | |
final IconData iconData; | |
final String label; |
//Prompt users to update app if there is a new version available | |
//Uses url_launcher package | |
import 'package:url_launcher/url_launcher.dart'; | |
const APP_STORE_URL = | |
'https://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=YOUR-APP-ID&mt=8'; | |
const PLAY_STORE_URL = | |
'https://play.google.com/store/apps/details?id=YOUR-APP-ID'; |
AllCops: | |
DisplayCopNames: true | |
DisplayStyleGuide: true | |
TargetRubyVersion: 2.4 | |
DisabledByDefault: true | |
Exclude: | |
- db/**/** | |
- bin/* | |
# Prefer &&/|| over and/or. |
// app/modules/authentication/authentication.controller.ts | |
import { Body, Controller, Post } from '@nestjs/common' | |
import { RegisterRequest } from './requests' | |
import { User } from '../../modules/user' | |
import { UsersService } from '../users/users.service' |