Skip to content

Instantly share code, notes, and snippets.

View kktuax's full-sized avatar

Max Tuni kktuax

View GitHub Profile
#!/bin/bash
alias pfx='peerflix -c 15 -r'
alias opfx='omxplayer -o both http://localhost:8888/'
alias opfxs='opfx --subtitles "$(find /tmp -name "*.srt" -type f -printf "%Ts %p\n" | sort -n | tail -1 | sed -r -e "s/^[0-9]+ //")"'
[
{
"type": "url",
"id": "https://rockfm-cope.flumotion.com/chunks.m3u8",
"title": "Rock FM"
},{
"type": "url",
"id": "http://19983.live.streamtheworld.com/CADENASER.mp3",
"title": "Cadena Ser"
},{
@kktuax
kktuax / example.md
Last active August 29, 2015 14:18
TorrentStream hash function

Example usage:

node hash.js 'magnet:magnet-uri'

Outputs:

Movie hash: f2213716da24f71b
File size: 274429
File name: My-Movie.mp4
@kktuax
kktuax / pafy.py
Created October 6, 2014 14:14
Pafy snippet
import pafy
url = "https://www.youtube.com/watch?v=DKuqcKdlAUs"
video = pafy.new(url)
best = video.getbest(preftype="mp4")
best.url
@kktuax
kktuax / btsync.conf
Created October 1, 2014 08:38
Docker BTSync
{
"device_name": "device-name",
"listening_port" : 55555,
"storage_path" : "/btsync/.sync",
"check_for_updates" : false,
"use_upnp" : false,
"download_limit" : 0,
"upload_limit" : 0,
"disk_low_priority" : true,
"lan_encrypt_data" : false,
@kktuax
kktuax / COMODO PositiveSSL certificate.md
Last active April 10, 2020 01:20
SSL instructions for Apache HTTP Server

Input files for domain mydomain.es

-rw-r--r-- 1 www-data www-data 1,5K 2014-07-09 18:26 AddTrustExternalCARoot.crt
-rw-r--r-- 1 www-data www-data 2,0K 2014-07-09 18:26 COMODORSAAddTrustCA.crt
-rw-r--r-- 1 www-data www-data 2,2K 2014-07-09 18:26 COMODORSADomainValidationSecureServerCA.crt
-rw-r--r-- 1 www-data www-data 1,9K 2014-07-09 18:26 mydomain_es.crt
-rw-r--r-- 1 www-data www-data 1,1K 2014-07-09 17:48 mydomain_es.csr
-rw-r--r-- 1 www-data www-data 1,7K 2014-07-09 17:48 mydomain_es.key
@kktuax
kktuax / Delete eclipse's internal remote files.sh
Last active August 29, 2015 14:06
Fix eclipse luna maven repositories
cd ~/.m2/repository
find . -name "_remote.repositories" -delete
@kktuax
kktuax / Create feature branch.sh
Last active August 29, 2015 14:06
Git Snippets
git checkout -b feature_branch_name
# edit files, add and commit ...
git push -u origin feature_branch_name