Skip to content

Instantly share code, notes, and snippets.

View OmgImAlexis's full-sized avatar
🇹🇼

Alexis Tyler OmgImAlexis

🇹🇼
View GitHub Profile
2016-12-01 23:07:56 DEBUG SEARCHQUEUE-BACKLOG-74845 :: [BitSnoop] :: [daf5388] Discarding torrent because it doesn't meet the minimum seeders: Weeds S07E12 Qualitative Spatial Reasoning HDTV XviD- FQM [eztv]. Seeders: 0
2016-12-01 23:07:56 DEBUG SEARCHQUEUE-BACKLOG-74845 :: [BitSnoop] :: [daf5388] Discarding torrent because it doesn't meet the minimum seeders: Weeds S07E12 Qualitative Spatial Reasoning HDTV XviD-FQM [eztv]. Seeders: 0
2016-12-01 23:07:56 DEBUG SEARCHQUEUE-BACKLOG-74845 :: [BitSnoop] :: [daf5388] Discarding torrent because it doesn't meet the minimum seeders: Weeds S07E12 Qualitative Spatial Reasoning HDTV XviD-FQM [eztv]. Seeders: 0
2016-12-01 23:07:56 DEBUG SEARCHQUEUE-BACKLOG-74845 :: [BitSnoop] :: [daf5388] Discarding torrent because it doesn't meet the minimum seeders: Weeds S07E12 Qualitative Spatial Reasoning HDTV XviD-FQM [eztv]. Seeders: 0
2016-12-01 23:07:56 DEBUG SEARCHQUEUE-BACKLOG-74845 :: [BitSnoop] :: [daf5388] Discarding torrent because it doesn't meet the minimu
{
1:{
'api_params':{
'session':<requests.sessions.Session object at 0x10e0f40d0>,
'use_zip':True,
'language':'en'
},
'module':<class 'medusa.indexers.tvdbv2.tvdbv2_api.TVDBv2'>,
'trakt_id':'tvdb_id',
'xem_origin':'tvdb',
2016-11-11 05:16:16 - INFO :: CP Server Thread-7 : Cleared the plexpy.log file.
2016-11-11 05:16:19 - WARNING :: CP Server Thread-4 : Failed to access uri endpoint /:/prefs with error [Errno -2] Name does not resolve
2016-11-11 05:16:19 - WARNING :: CP Server Thread-4 : PlexPy Pmsconnect :: Unable to parse XML for get_local_server_name: 'NoneType' object has no attribute 'getElementsByTagName'.
2016-11-11 05:16:19 - WARNING :: CP Server Thread-4 : Unable to retrieve data for get_server_pref.
2016-11-11 05:16:21 - WARNING :: CP Server Thread-7 : Failed to access uri endpoint /status/sessions with error [Errno -2] Name does not resolve
2016-11-11 05:16:21 - WARNING :: CP Server Thread-7 : PlexPy Pmsconnect :: Unable to parse XML for get_current_activity: 'NoneType' object has no attribute 'getElementsByTagName'.
2016-11-11 05:16:21 - WARNING :: CP Server Thread-7 : Unable to retrieve data for get_current_activity_header.
2016-11-11 05:16:21 - WARNING :: CP Server Thread-6 : Failed to access uri endpoint /sta
$ openssl s_client -showcerts -connect rottentomatoes.com:443
CONNECTED(00000003)
depth=1 /C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G2
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/CN=*.rottentomatoes.com
i:/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G2
-----BEGIN CERTIFICATE-----
Since LetsEncrypt announced they'd be entering public Beta I wondered how I could use the fact that I can get free SSL certs issued at any time. Obviously if I wanted an SSL cert for each subdomain I use I could either get them issued manually using some kind of online look such as [gethttpsforfree](https://gethttpsforfree.com/) or setup some kind of bash script to make them for me.
So for the most part I used gethttpsforfree, this domain and most of the other person domains I used have all had their certs issues with it but then it got to the point where using the site just didn't wasn't feasible. Before writing this post I had about 50 sub/domains with LetsEncrypt SSL certs, after this post I'll probably have close to 500 here's how I'm going to deal with it.
## Getting the certs issued.
Since all the new certs I'll need will be for the social network I'm developing they'll all be subdomains of alete.xyz and since I use Nginx I can't use "dynamic" SSL certs as Nginx needs to be able to load them on start
#!/bin/sh
#
# To run this script from the CLI you only need to do: ./socks.sh
# if it's not executable, make it so: chmod +x socks.sh
#
# Change these to match your server
socks_host=hub
socks_port=8080
for(var season in data.season_exceptions){
if(data.season_exceptions.hasOwnProperty(season)) {
if(Object.keys(data.xem_numbering)) {
// Let's handle this as a xem season numbered exception
for(var indexerSeason in data.xem_numbering){
if(data.season_exceptions.hasOwnProperty(season)) {
if(data.xem_numbering[indexerSeason] == season) {
xemImg = $('<img>', {
'id': 'xem-exception-season-' + season,
'alt': '[xem]',
2016-02-20 12:01:09 ERROR Thread-15 :: Unable to move file /downloads/The.Originals.S01E19.1080p.WEB-DL.DD5.1.H.264-KiNGS.mkv to /tv/The Originals/S01E19 - An Unblinking Death.mkv: error 2 : No such file or directory [26ddbf4]
2016-02-20 12:00:54 DEBUG Thread-35 :: Moving file from /downloads/The.Vampire.Diaries.S07E11.1080p.WEB-DL.DD5.1.H264-RARBG.mkv to /tv/The Vampire Diaries/S07E11 - Things We Lost in the Fire.mkv
2016-02-20 12:00:54 DEBUG Thread-35 :: No associated files for /downloads/The.Vampire.Diaries.S07E11.1080p.WEB-DL.DD5.1.H264-RARBG.mkv were found during this pass
2016-02-20 12:00:53 DEBUG Thread-35 :: Checking if the path /tv/The Vampire Diaries already exists
2016-02-20 12:00:53 DEBUG Thread-35 :: Destination folder for this episode: /tv/The Vampire Diaries
2016-02-20 12:00:53 DEBUG Thread-35 :: formatting pattern: S%0SE%0E - %EN -> S07E11 - Things We Lost in the Fire
2016-02-20 12:00:53 DEBUG Thread-35 :: Found codec for 'The Vampire Diaries: Things We Lost in the Fire'.
#!/bin/bash
apt-get update
apt-get install apt-transport-https ca-certificates -y
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
truncate -s0 /etc/apt/sources.list.d/docker.list
echo "deb https://apt.dockerproject.org/repo ubuntu-wily main" > /etc/apt/sources.list.d/docker.list
apt-get update
apt-get purge lxc-docker
apt-cache policy docker-engine
apt-get update
2016-01-26 12:17:22 ERROR POSTPROCESSER :: Boxcar2 notification failed.error ('_ssl.c:574: The handshake operation timed out',) [3f0efd1]
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Sending notification for The Simpsons - 21x13 - The Color Yellow - SDTV
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Notification for NMJ scan update not enabled, skipping this notification
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Notification for PLEX not enabled, skipping this notification
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: formatting pattern: %SN - %Sx%0E - %EN - %QN -> The Simpsons - 21x13 - The Color Yellow - SDTV
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Parsed The Simpsons - 21x13 - The Color Yellow into The Simpsons - S21E13 [ABD: False] [ANIME: False] [whichReg: ['fov']]
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Parsed /tv/The Simpsons/S21E13 - The Color Yellow into S21E13 [ABD: False] [ANIME: False] [whichReg: ['standard']]
2016-01-26 12:16:22 DEBUG POSTPROCESSER :: Transaction with 1 que