sudo yum -y update
sudo yum-config-manager --enable epel
sudo yum -y install make automake gcc gcc-c++ libcurl-devel proj-devel geos-devel
cd /tmp
curl -L http://download.osgeo.org/gdal/2.0.0/gdal-2.0.0.tar.gz | tar zxf -
cd gdal-2.0.0/
./configure --prefix=/usr/local --without-python
make -j4
sudo make install
This file contains hidden or 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 | |
# change the sleep time appropriately | |
# this server is persistent | |
# mix and match with Content-Length and having larger and less content then | |
# is actually produced | |
# as well as malformed Chunked Encoding | |
socat \ | |
-v -d -d \ |
This file contains hidden or 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
import java.util.zip.* | |
String zipFileName = "file.zip" | |
String inputDir = "logs" | |
def outputDir = "zip" | |
//Zip files | |
ZipOutputStream zipFile = new ZipOutputStream(new FileOutputStream(zipFileName)) | |
new File(inputDir).eachFile() { file -> |
This file contains hidden or 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
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
This file contains hidden or 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
[Unit] | |
Description=iperf3 server | |
After=syslog.target network.target auditd.service | |
[Service] | |
User=iperf | |
ExecStart=/usr/bin/iperf3 -s --logfile /var/log/iperf.log | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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 | |
# This script assumes that you have all dependencies on Ubuntu 14.04 | |
# It will takes about 10 or more minites due to repo cloning. | |
# | |
# ./harmony ----- iotjs | |
# | | |
# ---- nuttx | |
mkdir harmony |
This file contains hidden or 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
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
This file contains hidden or 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
%meta(name="twitter:card" content="player") | |
%meta(name="twitter:title" content="#{@episode.safe_title} by #{@series.safe_title}") | |
%meta(name="twitter:app:name:googleplay" content="Player FM") | |
%meta(name="twitter:app:id:googleplay" content="fm.player") | |
%meta(name="twitter:description" content="#{@episode.safe_description}") | |
%meta(name="twitter:site" content="PlayerFM") | |
%meta(name="twitter:image" content="#{safe_series_image_url @episode.series}") | |
-# dev tunnel -> %meta(name="twitter:player" content="https://something-something.ngrok.com#{widget_episode_path series_id: @series.slug, id: @episode.slug}" | |
) | |
%meta(name="twitter:player" content="#{Player.routes.base_url}#{widget_episode_path series_id: @series.slug, id: @episode.slug}") |
This file contains hidden or 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
# original post: http://blog.hostonnet.com/uninstall-gui-from-ubuntu-14-04-lts | |
sudo apt-get purge -y lightdm | |
sudo shutdown -r now | |
sudo apt-get clean | |
sudo apt-get autoclean | |
apt-get purge -y unity* | |
sudo apt-get purge -y unity* | |
sudo apt-get purge -y gnome-* |
This file contains hidden or 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 | |
# | |
# Installation: | |
# Copy chmow to some directory in your path, like /usr/local/bin | |
# cd <directory_above> | |
# chmod 0755 chmow | |
# ln -s chmow chmod | |
# ln -s chmow chown | |
set -e -u |