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
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 | |
# 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
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
# 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@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
wget http://www.squid-cache.org/Versions/v3/3.5/squid-3.5.27.tar.xz | |
tar xvf squid-3.5.27.tar.xz | |
cd squid-3.5.27/ | |
./configure --prefix=/usr/local \ | |
--exec-prefix='${prefix}' \ | |
--localstatedir=/var \ | |
--libexecdir='${prefix}/libexec/squid' \ | |
--datadir='${prefix}/share/squid' \ | |
--sysconfdir=/etc/squid \ | |
--with-default-user=proxy \ |
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:python/cpython.git | |
cd cpython/ | |
git checkout v3.6.4 | |
sudo apt build-dep python3.5 | |
# git checkout v2.7.14 | |
# sudo apt build-dep python2.7 | |
./configure | |
# For python2, the default config won't install pip. | |
# ./configure --with-ensurepip | |
make |
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/bash | |
git clone git@github.com:djcb/mu.git | |
cd mu/ | |
git checkout v1.0 | |
sudo apt install automake autoconf-archive libglib2.0-dev libxapian-dev libgmime-2.6-dev libunwind-dev | |
./autogen.sh | |
# compile with Clang | |
# CC=clang CXX=clang++ LDFLAGS='-fuse-ld=lld' ./autogen.sh | |
make |
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 https://code.orgmode.org/bzg/org-mode.git | |
cd org-mode/ | |
git checkout release_9.1.6 | |
make compile info | |
emacs -L lisp/ -L contrib/lisp/ --batch -f batch-byte-compile contrib/lisp/*.el |