Skip to content

Instantly share code, notes, and snippets.

John D Jones III jnbek

Block or report user

Report or block jnbek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:0a0c3527ef3274b375cadd653dfef1da
cpanm --self-contained -L ~/perl_webapp Mojo::IRC JavaScript::Minifier::XS CSS::Minifier::XS Bootylicious Minion YAML::XS JSON::XS String::Markov Facebook::Graph Imgur::API Flickr::API
@jnbek
jnbek / xvfb.service
Created Aug 27, 2017 — forked from mylk/xvfb.service
Xvfb systemd script
View xvfb.service
# /etc/systemd/system/xvfb.service
[Unit]
Description=X virtual framebuffer
[Service]
Type=simple
User=root
ExecStart=/usr/bin/Xvfb :99 -ac
@jnbek
jnbek / dbus.sh
Created Jun 1, 2017 — forked from biboudis/dbus.sh
Playing with dbus.
View dbus.sh
# qdbus lists all service names of services that are running and you can manipulate at the moment.
qdbus
# control dbus
qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
# and use --literal if you need to print the reply in plain text
qdbus --literal org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Playlists.ActivatePlaylist /org/mpris/MediaPlayer2/Playlists/20
View gist:cc955cb5dd9fe6f990c14f1bbb882cfc
dns/libidn
audio/liba52
net/avahi-app
textproc/intltool
textproc/p5-XML-Parser
devel/libdaemon
devel/dbus-glib
devel/dbus
textproc/minixmlto
textproc/docbook-xsl
View stream_output.txt
:sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:duplicate{dst=std{access=shout,mux=ogg,dst=source:E_G9KFo9ii9cFW_C-Ezqj_Zyh@192.168.0.129:8000//stream},dst=display} :sout-keep
View vlc_spew.txt
[00007f9590c1c358] core decoder error: Could not convert timestamp 634206836815
[00007f9590c1c358] clock decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 3000000)
[00007f9590c1c358] core decoder error: Could not convert timestamp 634206862937
[00007f9590c1c358] clock decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 3000000)
[00007f9590c1c358] core decoder error: Could not convert timestamp 634206889060
[00007f9590c1c358] clock decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 3000000)
[00007f9590c1c358] core decoder error: Could not convert timestamp 634206915182
[00007f9590c1c358] clock decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 3000000)
[00007f9590c1c358] core decoder error: Could not convert timestamp 634206941305
[00007f9590c1c358] clock decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 3000000)
@jnbek
jnbek / PKGBUILD
Created Apr 18, 2017
perl-moosex-lazyrequire PKGBUILD
View PKGBUILD
pkgname='perl-moosex-lazyrequire'
pkgver='0.11'
pkgrel='1'
pkgdesc="Required attributes which fail only when trying to use them"
arch=('any')
license=('PerlArtistic' 'GPL')
options=('!emptydirs')
depends=('perl-moose>=0.94' 'perl-aliased>=0.30' 'perl-namespace-autoclean')
makedepends=()
checkdepends=('perl-test-fatal')
@jnbek
jnbek / docker_cmd.tst
Last active Apr 5, 2017
My note for creating a working docker
View docker_cmd.tst
[root@jude3 ~]# cat text_files/create_a_working_docker_containter_that_gets_Talked_to.txt
docker create -p 3000:3000 -t -i --name TestDeb debian bash
View bc_script.bc
#!/usr/bin/bc -l
scale = 20
/* Uses the fact that e^x = (e^(x/2))^2
When x is small enough, we use the series:
e^x = 1 + x + x^2/2! + x^3/3! + ...
*/
define e(x) {
auto a, d, e, f, i, m, v, z
View dot_vimpagerrc
" set the mapleader key
let mapleader = ","
let g:mapleader = ","
" use a better color scheme
colorscheme zellner
" set the default encoding
set enc=utf-8
You can’t perform that action at this time.