Skip to content

Instantly share code, notes, and snippets.

Paul Nicolas elneruda

Block or report user

Report or block elneruda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@elneruda
elneruda / Radarr Slack Custom Script.sh
Last active Dec 6, 2018
Radarr Sonarr Slack Custom Script : Rich slack notifications, episode & movie link
View Radarr Slack Custom Script.sh
#!/bin/bash
SLACK_URL=$1
RADARR_API_URL="$2/api"
RADARR_API_KEY=$3
post_to_slack() {
curl --silent -X POST --data "payload={\"text\": \"${1}\", \"unfurl_links\": true, \"mrkdwn\": true}" ${SLACK_URL}
}
@elneruda
elneruda / searchAllWantedMovies.sh
Last active Nov 23, 2018
search wanted on radarr / sonarr
View searchAllWantedMovies.sh
#!/bin/sh
RADARR_API_URL="http://radarr.com/api"
RADARR_API_KEY="PUT_YOUR_API_KEY_HERE"
history=$(curl -s ${RADARR_API_URL}/history?page=1\&pageSize=20\&sortKey=date\&sortDir=desc -H "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" -X GET -H 'X-Api-Key: '$RADARR_API_KEY'' -k)
history=$(echo $history | tr -d '\n' | tr -d '\r' | tr -d '\b')
grabbed=$(echo $history | jq '.records | .[] | select(.movie.monitored) | select(.movie.downloaded | not) | select(.eventType=="grabbed") | .movieId')
grabbed=$(echo $grabbed | sed 's/ /, /g')
grabbed="[${grabbed}]"
View France_beIN_sports.m3u
#EXTINF:-1,FR: RTL 9 HD
http://149.202.69.192:8000/live/leon/leon1/2050.ts
#EXTINF:-1,FR: TF 1
http://149.202.69.192:8000/live/leon/leon1/2010.ts
#EXTINF:-1,FR: HD 1
http://149.202.69.192:8000/live/leon/leon1/2058.ts
#EXTINF:-1,FR: Gulli HD
http://149.202.69.192:8000/live/leon/leon1/2621.ts
#EXTINF:-1,FR: Arte
http://149.202.69.192:8000/live/leon/leon1/2003.ts
View iptv.playlist.m3u
#EXTINF:-1,IT: Sky Premium Stories
http://163.172.42.177:25461/live/13/13/2452.ts
#EXTINF:-1,IT: Sky Premium Energy
http://163.172.42.177:25461/live/13/13/2453.ts
#EXTINF:-1,IT: Sky Premium Crime HD
http://163.172.42.177:25461/live/13/13/2451.ts
#EXTINF:-1,IT: Sky Premium Cinema HD
http://163.172.42.177:25461/live/13/13/2450.ts
#EXTINF:-1,IT: Sky Premium Action HD
http://163.172.42.177:25461/live/13/13/2449.ts
@elneruda
elneruda / hueHelper.sh
Created Feb 8, 2017
plexpy -> iFTTT Maker -> hue
View hueHelper.sh
#!/bin/sh
HOOK_IFTTT_MAKER_KEY=""
HOOK_PLEX_USERNAME=""
HOOK_PLEX_PLAYER=""
HOOK_PLEX_NIGHT_HOUR_MIN=19
HOOK_PLEX_NIGHT_HOUR_MAX=6
HOOK_PLEX_PLAY="Play"
HOOK_PLEX_STOP="Stop"
View end.gcode
;End GCode
;Ultimaker 2+ octoprint
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F4200 ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off
G90 ;absolute positioning
View start.gcode
;Generated with Cura_SteamEngine 15.04
;Ultimaker 2+ octoprint
M140 S60.0
M109 T0 S210.0
T0
M190 S60.0
;Sliced at: Thu 15-12-2016 09:28:45
;Basic settings: Layer height: 0.1 Walls: 1.2 Fill: 80
;Print time: ?print_time?
;Filament used: ?filament_amount?m ?filament_weight?g
You can’t perform that action at this time.