sudo apt update && sudo apt upgrade- Generate GitHub Access Token: https://github.com/settings/tokens
- Generate GitLab Access Token: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html
For a single project:
- Run
composer config github-oauth.github.comorcomposer config gitlab-token.gitlab.com
Postman | API Development Environment https://www.getpostman.com
Insomnia REST Client - https://insomnia.rest/
| Features | Insomnia | Postman | Notes |
|---|---|---|---|
| Create and send HTTP requests | x | x | |
| Authorization header helpers | x | x | Can create "Authorization" header for you for different authentication schemes: Basic, Digest, OAuth, Bearer Token, HAWK, AWS |
| sudo mv /var/lib/dpkg/info/{packagename}.* /tmp/ | |
| sudo dpkg --remove --force-remove-reinstreq {packagename} | |
| sudo apt-get remove {packagename} | |
| sudo apt-get autoremove && sudo apt-get autoclean |
| Clone this : | |
| git clone https://github.com/Anomareh/PHP-Twig.tmbundle.git | |
| Selanjutnya | |
| * buka sulime-text | |
| * tekan ctrl+shif+p (linux,windows) | |
| * ketik browser package lalu enter | |
| * buat folder dengan nama PHP-Twig | |
| * lalu buka package yang sudah didownlad tadi. pindahkan file yang ada di dalam DIR PHP-Twig.tmbundle/Syntaxes | |
| kedalam folder PHP-Twig. |
| <?php | |
| namespace App\Http\Requests; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Http\JsonResponse; | |
| use Laravel\Lumen\Http\Redirector; | |
| use Illuminate\Container\Container; | |
| use Illuminate\Contracts\Validation\Validator; |
| from bs4 import BeautifulSoup | |
| import requests | |
| import re | |
| import urllib2 | |
| import os | |
| import argparse | |
| import sys | |
| import json | |
| # adapted from http://stackoverflow.com/questions/20716842/python-download-images-from-google-image-search |
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
Adaptive Streaming has become the neccessity for streaming video and audio. Unfortantely, as of this post, there isn't a whole lot of tutorials that accumulate all of the steps to get this working. Hopefully this post achieves that. This post focuses on using Amazon Web Services (AWS) to transcode for HLS and DASH and be the Content Delivery Network (CDN) that delivers the stream to your web page. We'll be using Video.js for the HTML5 player as well as javascript support libaries to make Video.js work with HLS and DASH.