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 | |
# | |
# This is an adaptation of code I wrote to download a private binary from GitHub. Such...pain. | |
# Why can't GitHub just offer a standardized URL you can download a release binary from and attach | |
# your Github Personal Access Token as a header? | |
# | |
# Since this code is an adaptation it hasn't been directly tested, but the code it was adapted from works | |
# and hopefully you can get the missing piece you're after by looking here. | |
# |
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 | |
sudo apt-get install apache2-prefork-dev libxml2 libxml2-dev apache2-dev | |
mkdir ~/modbuild/ && cd ~/modbuild/ | |
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c | |
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h | |
sudo apxs2 -aic -I/usr/include/libxml2 ./mod_xml2enc.c | |
cd ~ | |
sudo rm -rfd ~/modbuild/ | |
sudo service apache2 restart |