Skip to content

Instantly share code, notes, and snippets.

View jnbdz's full-sized avatar
👨‍💻
None stop

JN Σ jnbdz

👨‍💻
None stop
View GitHub Profile
@jnbdz
jnbdz / docker-volume-local-persist-supervisord.conf
Created August 11, 2016 01:22
supervisord.conf for docker-volume-local-persist
[program:docker-volume-local-persist]
command=sudo docker-volume-local-persist
autostart=true
autorestart=true
user=root
stdout_logfile=/var/log/docker-volume-local-persist/stdout.log
stderr_logfile=/var/log/docker-volume-local-persist/stderr.log
FROM debian:jessie
MAINTAINER Jean-Nicolas Boulay <[email protected]>
ENV NGINX_VERSION 1.11.8-1~jessie
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -y \
&& apt-get install --no-install-recommends --no-install-suggests -y apt-utils build-essential \
&& apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 \
&& echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list \
@jnbdz
jnbdz / change-ssh-port.sh
Created February 24, 2017 20:18 — forked from worldadventurer/change-ssh-port.sh
Change SSH Port - prompts on command line for new port number
#!/bin/bash
# Copied from https://github.com/FreePBXHosting/freepbx-scripts/tree/master/sshport
#
# To run the script, login as root via SSH and run the following command:
# bash <(curl -Ls https://gist.github.com/worldadventurer/842f1a10762cba0ce27dc8f99a835377/raw)
#
#############################################
# FreePBXHosting.com - @freepbxhosting #
# VERSION 1.6 UPDATED JUN 25 2015 #
# DESC: CHANGES SSH PORT AND RESTARTS SSH #
@jnbdz
jnbdz / gist:8eeb67a545794ab34c0dc9b7c520cbd6
Created April 26, 2017 19:41 — forked from mharsch/gist:5188206
serve HLS (HTTP Live Streaming) content from node.js

HLS streaming from node

Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.

loosely based on https://gist.github.com/bnerd/2011232

// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory
@jnbdz
jnbdz / wordtree.js
Last active June 12, 2017 01:53
wordtree js
function resize() {
width = vis.node().clientWidth,
height = window.innerHeight - 50 - 0,
heatmap.attr("transform", "translate(" + (width - 20.5) + ",.5)").select("rect.frame").attr("height", height - 1), svg.attr("width", width).attr("height", height), clip.attr("width", width - 30.5).attr("height", height), treeG.call(tree.width(width - 30).height(height - 20)), updateHeatmap(), text.call(textViewer)
}
function processText(e) {
var t, n = 0,
r = 0,
i = 0,
server {
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
remote refid st t when poll reach delay offset jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
1.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
2.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
3.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
+206.108.0.131 .PPS. 1 u 47 64 1 20.720 1268.07 47.357
+206.108.0.132 .PPS. 1 u 43 64 3 26.554 1267.49 45.714
+198.50.139.209 35.73.197.144 2 u 13 64 7 21.896 1251.45 64.521
+158.69.125.231 142.66.101.13 2 u 43 64 3 23.275 1267.43 48.552
remote refid st t when poll reach delay offset jitter
==============================================================================
0.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
1.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
2.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
3.debian.pool.n .POOL. 16 p - 64 0 0.000 0.000 0.000
File Name Type Description
addons.json JSON Add-ons (e.g. English (GB) Language Pack) (Could be just for languages)
addonStartup.json.lz4 JSON Unknown
AlternateServices.txt Text Unknown
blocklist-addons.json JSON Unknown
blocklist-gfx.json JSON Unknown
blocklist-plugins.json JSON Unknown
blocklists Dir Unknown
blocklist.xml XML Unknown
bookmarkbackups Dir Unknown
File Name Type Description
Cookies ... ...
Cookies-journal ... ...
CurrentSession ... ...
CurrentTabs ... ...
databases ... ...
data_reduction_proxy_leveldb ... ...
DownloadService ... ...
ExtensionRules ... ...
Extensions ... ...