Skip to content

Instantly share code, notes, and snippets.

View thonatos's full-sized avatar
💬
Typing ...

Suyi thonatos

💬
Typing ...
View GitHub Profile
@thonatos
thonatos / gist:7eeb2e90f4d0c35fc59e775753d89cda
Created February 3, 2018 02:37 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@thonatos
thonatos / install-comodo-ssl-cert-for-nginx.rst
Created December 4, 2017 11:03 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@thonatos
thonatos / ffmpeg.md
Created May 15, 2017 07:58 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@thonatos
thonatos / Pandas and Seaborn.ipynb
Created February 27, 2017 08:11 — forked from 5agado/Pandas and Seaborn.ipynb
Data Manipulation and Visualization with Pandas and Seaborn — A Practical Introduction
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thonatos
thonatos / nginx.conf
Created February 20, 2017 03:52 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
nginx and Go Daddy SSL certificates
Generate the CSR:
1 openssl genrsa 2048 > yourhost.com.key
2 openssl req -new -key yourhost.com.key > yourhost.com.csr
Enter in whatever you want - you NEED the "Common Name" everything else is not really required for it to work.
01 Country Name (2 letter code) [AU]:US
02 State or Province Name (full name) [Some-State]:.
03 Locality Name (eg, city) []:.
04 Organization Name (eg, company) [Internet Widgits Pty Ltd]:Something Here
05 Organizational Unit Name (eg, section) []:.
@thonatos
thonatos / beats-logstash-tls.md
Created July 12, 2016 15:16 — forked from andrewkroh/beats-logstash-tls.md
Using TLS between Beats and Logstash

Using TLS between Beats and Logstash

Beats to Logstash over TLS

The purpose of this document is to help with configuring and troubleshooting using TLS on the connection between Beats and Logstash.

Configuration

You must configure TLS on both the client and server to make this work. This