This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git@github.com:getdnsapi/getdns.git | |
cd getdns/ | |
git checkout v1.4.1 | |
git submodule update --init | |
sudo apt install libunbound-dev libidn2-0-dev | |
libtoolize -ci | |
autoreconf -fi | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In fact, getdns repo has stubby as a submodule and there is no need | |
# to clone a separate repo. | |
git clone git@github.com:getdnsapi/stubby.git | |
cd stubby/ | |
# please refer to | |
# [get-getdns.sh](https://gist.github.com/LeeiFrankJaw/0068ea73267c165ee4bef091fc3822f2) | |
# for how to install the getdns dependency. | |
sudo apt install libyaml-dev | |
autoreconf -vfi | |
./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://anongit.mindrot.org/openssh.git | |
cd openssh/ | |
sudo apt build-dep openssh-client | |
git checkout V_7_7_P1 | |
autoreconf | |
# Use the following command for clang compiler | |
# CC=clang LDFLAGS='-fuse-ld=lld -rtlib=compiler-rt' ./configure | |
./configure | |
make | |
# hack for solving "Privilege separation user sshd does not exist" error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# The library pyodbc requires unixodbc headers to compile, but the | |
# version of the unixodbc-dev provided by trusty mismatches that of | |
# unixodbc from the repository provided by Microsoft, so here I | |
# manually install the unixODBC with all things needed. | |
wget ftp://ftp.unixodbc.org/pub/unixODBC/unixODBC-2.3.1.tar.gz | |
tar xvf unixODBC-2.3.1.tar.gz | |
cd unixODBC-2.3.1/ | |
./configure --disable-gui \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_print_defaults -s client | |
# See also `mysql_config_editor` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo tee /etc/apt/sources.list.d/sql-server-xenial.list <<EOF | |
deb [arch=amd64] https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial main | |
EOF | |
sudo tee /etc/apt/sources.list.d/microsoft-prod.list <<EOF | |
deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mencoder input -o output.mp4 \ | |
-of lavf -lavfopts format=mp4 \ | |
-ovc x264 -x264encopts bframes=0:global_header \ | |
# -ss 5:00 -endpos 5:00 \ | |
-oac lavc -lavcopts acodec=ac3 | |
# NOTE: THE OPTION -ovc copy SIMPLY DOES NOT WORK AND MENCODER CANNOT | |
# USE LIBAVCODEC PROPERLY. DO NOT WASTE TIME ON MENCODER LEARN ffmpeg | |
# INSTEAD. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Please refer to the manual section from the site | |
# https://pagure.io/pagure | |
# python3-gdbm is not found in trisquel by default but preinstalled on | |
# ubuntu. | |
sudo apt install python3-dev python3-pip python3-venv python3-gdbm \ | |
libgit2-dev redis-server libjpeg-dev libffi-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert HLS stream from m3u8 to MP4 | |
gst-launch-1.0 -v mp4mux name=mux ! filesink location=output.mp4 filesrc location=GOPR7003.m3u8 ! hlsdemux ! decodebin name=decoder decoder. ! queue ! videoconvert ! x264enc ! mux. decoder. ! queue ! audioconvert ! voaacenc ! mux. | |
# Combine normal TS files into MP4 | |
cvlc -v segment-*.ts \ | |
--sout='#gather:file{dst=output.mp4}' \ | |
--sout-keep \ |