Skip to content

Instantly share code, notes, and snippets.

@BusterNeece
BusterNeece / broadcast.sh
Created May 13, 2017 03:29
FunkyWayFM: The shell script used to merge the video feed and AzuraCast-powered radio feed into a single YouTube stream.
#! /bin/bash
VBR="1500k"
FPS="30"
QUAL="veryfast"
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
KEY=""
VIDEO_SOURCE="/home/ubuntu/video3.mp4"
@pjosalgado
pjosalgado / jks-to-nginx-command-list
Last active August 8, 2020 14:10 — forked from ilguzin/gist:6606011
How to convert Java Key Store file to pem/key for NGINX.
1. Convert our ".jks" file to ".p12" (PKCS12 keystore format):
keytool -importkeystore -srckeystore { java-keystore.jks } -destkeystore { pkcs12-keystore.p12 } -deststoretype PKCS12
2. Extract pem (certificate) from ".p12" keystore file:
openssl pkcs12 -nokeys -in { pkcs12-keystore.p12 } -out { certificate-chain.pem }
3. Extract unencrypted key file from ".p12" keystore file:
openssl pkcs12 -nocerts -nodes -in { pkcs12-keystore.p12 } -out { unencrypted-key.key }
@colinleefish
colinleefish / centos-6-zabbix-agent.init
Last active September 17, 2021 10:45
Zabbix agent rpm build: spec files, sudoer files and init scripts
#!/bin/sh
#
# zabbix-agent - <summary>
#
# chkconfig: 2345 55 25
# description: Zabbix agent for DepponHQ IT Infrastructure.
#
# processname: zabbix-agentd
# config: /usr/local/zabbix-agent/etc/zabbix_agentd.conf
# pidfile: /usr/local/zabbix-agent/run/zabbix-agentd.pid
@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
@Excape
Excape / build.sh
Created November 26, 2016 19:46
Deploy mkdocs to GH-Pages with Travis
#!/bin/bash
set -e # exit with nonzero exit code if anything fails
#Build with mkdocs into ./site
mkdocs build --clean
# Checkout gh-pages
git clone --branch gh-pages [email protected]:Excape/hsr-docs-hs16.git gh-pages
@nooitaf
nooitaf / obs-start.sh
Last active November 9, 2020 10:38
obs cli options
obs --startrecording --startstreaming
# For OBS Studio,
# --collection [scene collection name],
# --profile [profile name],
# --scene [scene name],
# --startstreaming,
# --startrecording.
# https://obsproject.com/forum/threads/obs-studio-command-line-parameters.56185/
# Remove foreman
yum remove remove foreman foreman-installer foreman-proxy
rm -rf /var/lib/foreman /usr/share/foreman /usr/share/foreman-proxy/logs
rm /etc/httpd/conf.d/foreman.conf
# Remove puppet
yum remove puppet puppetmaster puppet-common puppetmaster-common puppetlabs-release
rm -rf /usr/lib/ruby/vendor_ruby/puppet /usr/share/puppet /var/lib/puppet /etc/puppet
rm /etc/apache2/conf.d/puppet.conf
@sistematico
sistematico / downloads.txt
Last active February 2, 2024 10:22
ShoutCast Scripts
Downloads 64 bits:
sc_serv: https://dl.dropbox.com/s/awj65gxyighz4ro/sc_serv2_linux_x64-latest.tar.gz?dl=1
sc_trans: https://dl.dropbox.com/s/ol88p5cwy9ivhvx/sc_trans_linux_x64_10_07_2011.tar.gz?dl=1
Downloads 32 bits:
sc_serv: [FALTANDO]
sc_trans: https://dl.dropbox.com/s/zfmfh0ahdv7mjx0/sc_trans_linux_10_07_2011.tar.gz?dl=1
Para baixar o último sc_serv vá até: https://www.shoutcast.com/BroadcastNow
@subfuzion
subfuzion / curl.md
Last active April 19, 2025 09:46
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@hdoedens
hdoedens / README.md
Last active February 27, 2017 06:05
dashing foreman job

#Dashing job to retrieve Foreman data

This job executes a list of queries to the Foreman API so you can optionally filter out the interesting stuff.

Sample job to retrieve foreman data. Data can be send to any widget. The example widget below is a slight modification of the default List widget.