running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
/interface list | |
add comment=defconf name=WAN | |
add comment=defconf name=LAN | |
/interface list member | |
add interface=ether1 list=WAN | |
/ip firewall address-list | |
add address=192.168.0.0/16 list=Bogon | |
add address=10.0.0.0/8 list=Bogon |
stages: | |
- build | |
- deploy | |
build prod: | |
image: node:10.15.0-stretch | |
stage: build | |
only: | |
- tags | |
script: |
#!/bin/vbash | |
# https://sosdg.org/edgerouter/6rd | |
# https://community.ubnt.com/t5/EdgeMAX/Edgerouter-Lite-on-Centurylink-1-Gbit-fiber/td-p/1124318/page/2 | |
export SBIN="/opt/vyatta/sbin/my_" | |
export DESCRIPTION="Altibox IPv6 6rd tunnel" | |
export WAN_DEV="eth2" | |
export LAN_DEV="eth1" | |
export TUN_DEV="tun0" |
" :[range]SortGroup[!] [n|f|o|b|x] /{pattern}/ | |
" e.g. :SortGroup /^header/ | |
" e.g. :SortGroup n /^header/ | |
" See :h :sort for details | |
function! s:sort_by_header(bang, pat) range | |
let pat = a:pat | |
let opts = "" | |
if pat =~ '^\s*[nfxbo]\s' | |
let opts = matchstr(pat, '^\s*\zs[nfxbo]') |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
On low memory devices like the arduino and esp8266 you do not want strings to be stored in RAM. This occurs by default on these systems. Declare a string const char * xyz = "this is a string"
and it will use up RAM.
The solution on these devices is to allow strings to be stored in read only memory, in Arduino this is the PROGMEM macro. Most of my experience is with the ESP8266 which is a 32bit micros controller. This device stores PROGMEM data in flash. The macro PROGMEM on ESP8266 is simply
#define PROGMEM ICACHE_RODATA_ATTR
#!/bin/bash | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
<?php | |
namespace App\Events; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class NewMessage extends Event implements ShouldBroadcast | |
{ | |
global | |
log 127.0.0.1 local0 debug | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
tune.ssl.default-dh-param 2048 | |
defaults | |
log global |