⚠️ Note 2023-01-21
Some things have changed since I originally wrote this in 2016. I have updated a few minor details, and the advice is still broadly the same, but there are some new Cloudflare features you can (and should) take advantage of. In particular, pay attention to Trevor Stevens' comment here from 22 January 2022, and Matt Stenson's useful caching advice. In addition, Backblaze, with whom Cloudflare are a Bandwidth Alliance partner, have published their own guide detailing how to use Cloudflare's Web Workers to cache content from B2 private buckets. That is worth reading,
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| @binkmail.com | |
| @bobmail.info | |
| @chammy.info | |
| @devnullmail.com | |
| @letthemeatspam.com | |
| @mailinater.com | |
| @mailinator.net | |
| @mailinator2.com | |
| @notmailinator.com | |
| @reallymymail.com |
- Open Chrome Developer tools and click the Network tab.
- Navigate to the page with the video and get it to start playing.
- Filter the list of files to "m3u8".
- Find master.m3u8 or index.m3u8 and click on it.
- Save the file to disk and look inside it.
- If the file contains a single m3u8 master url, copy that one instead.
- Run the program m3u8x.
- Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.
I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.
As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:
group browsers {
cpu {
# Set the relative share of CPU resources equal to 25%
cpu.shares = "256";
}| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
Update: read this https://pdgonzalez872.github.io/hire-elixir-devs.html
I'm a member of the Erlang Ecosystem Foundation (https://erlef.org/) and part of that in my opinion is making sure folks know how to reach Elixir devs when they need to. I'm very interested in helping you showcase that your company is hiring so heavily for Elixir. Since you were kind in our email exchange, I'll return the kindness and hopefully help you find as many Elixir devs you can hire :). Just promise me to keep creating more Elixir jobs : ) :
Here are some interesting ways to find Elixir devs:
- Create a post ElixirForum (https://elixirforum.com). Some folks watch the
jobscategory, so you should get interest there as well. - Add a job to Elixir Radar https://elixir-radar.com/post-your-job-listing-in-the-elixir-radar-for-free. A lot of folks subscribe to the newsletter and watch the jobs section quite closely.
- Add a job to the ElixirCompanies website: https://elixir-companies.com/en. If you log in with a Github account (
| # The bash command `history | grep abc` is a neat tool. I abuse it alot. | |
| # So, I wrote a module that would list or search through iex history. | |
| # https://dev.to/sushant12/list-all-history-in-iex-408b | |
| # I prefer to put this module in my .iex.exs file and then import the .iex.exs file into my project. | |
| defmodule History do | |
| def search do | |
| load_history() | |
| |> Enum.with_index(1) | |
| |> Enum.each(fn {value, index} -> |
| # EditorConfig is awesome: http://EditorConfig.org | |
| # .editorconfig for Elixir projects | |
| # https://git.io/elixir-editorconfig | |
| # top-most EditorConfig file | |
| root = true | |
| [*] | |
| indent_style = space |
| ####################################################################### | |
| # `ag` list file with first match line number | |
| # Returns a list of files including the first line matched in the file | |
| # emulates the non-implemented option: `ag --files-with-matches-line-number` | |
| # for `ag` (the silver searcher) https://github.com/ggreer/the_silver_searcher | |
| # feature request: https://github.com/ggreer/the_silver_searcher/issues/715 | |
| # Usage: just simple use it as you would use `ag -l`, but ommit the -l option | |
| # $ ag-l1 "(pattern)?.*" | |
| # Installation: add this function to your ~/.bash_funcs file | |
| # Download: https://git.io/ag-l1 |