Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
### Get Lists
ls -1 {episodes,movies}.txt | head -n 1 | while read LIST
do
### Go Through Lists
cat "${LIST}" | sort | while read FILE
do
### Get filename
FILENAME=${FILE##*/}
@eduo
eduo / Youkioske2cbz.bash
Created November 12, 2010 22:40
Obtener todas las imágenes de una revista de youkioske
KIOSKEMAG="http://youkioske.com/revistas-masculinas/gq-magazine-november-2010-3/"
curl -o tempfile -s "${KIOSKEMAG}"
TITLE=$(cat tempfile | grep "href="'"" ' | head -n1 | cut -f2 -d\> | cut -f1 -d\< )
echo "Title is: ${TITLE}"
ISSUUBASE="http://image.issuu.com/"\
$(curl -s \
$(curl -s \
$(cat tempfile |\
grep srcIframe | grep var | sed -e's|^.*\(http.*\)".*|\1|g') |\
grep http | sed -e's|.*\(http:.*\)\?mode=embed.*|\1|g') |\
@eduo
eduo / chreckseries.bash
Created October 20, 2013 19:36
Check Serie Folders for Renaming
#!/bin/bash
#
cd /Volumes/TV-MOVIES/TV/
#find . -name ".?*" -print | while read line
#do
#rm "$line"
#echo "${line}"
#done
<?xml version="1.0" encoding="utf-8"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>status</name>
<value>
<string>200 OK</string>
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>SearchSubtitles</methodName>
<params>
<param>
<value>
<string>6thlkcb8nej69gk6ed0s5f8s40</string>
</value>
</param>
<param>
#!/bin/sh
#Verify your interfaces using "ifconfig" and disconnecting/reconnecting WiFi and Ethernet to find out which is which
# Works in mountain lion. Might need changes in DETECT_INET in other versions
# Default sound name "PC 3270 Beep" doesn't exist in standard installs. Sound name should be the file name,
# without extension, of .aif file placed in either /System/Library/Sounds or ~/Library/Sounds
# In this case I have /Users/eduo/Library/Sounds/PC 3270 Beep.aiff so name is "PC 3270B Beep"
# Remember to set permissions to execute on this script: chmod 755 WiFiOrEth.sh
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Assumes script is named WiFiOrEth.sh in home directory -->
<!-- Edit, then unload and reload -->
<!-- launchctl unload ~/Library/LaunchAgents/info.eduo.WiFiOrEth.plist; -->
<!-- launchctl load ~/Library/LaunchAgents/info.eduo.WiFiOrEth.plist -->
<plist version="1.0">
<dict>
<key>Label</key>
<string>info.eduo.WiFiOrEth</string>
@eduo
eduo / gist:05769c643ece332d7aad
Last active September 22, 2016 06:16
Update Sickrage in Synology via telnet
#!/bin/bash
#
# Replace 192.168.1.100 with your Synology's IP
# First enable Telnet access in your Synology
### Login: root
### Password: YOURPASSWORD
#telnet 192.168.1.100
ISRUNNING=$(/var/packages/sickbeard-custom/scripts/start-stop-status status|cut -f4 -d" ")
if [[ ${ISRUNNING} = "running" ]]
@eduo
eduo / ProcessCallRecorderFiles.bash
Last active July 30, 2016 14:34
Bash Script to Split eCamm Call Recorder Skype files (sides of recorded conversation)
#!/bin/bash
#
# Rudimentary bash script to split Call Recorder files for import into Logic Pro X
# Files are saved as M4A (MP4 Audio) files, which are readily importable
# into Logic Pro X.
# Script should work with most formats FFMPEG recognizes, really.
# REMEMBER Call Recorder does this annoying thing of saving your file with the name of
@eduo
eduo / Podcast Process
Created October 22, 2014 14:53
My Podcast Process
1.-Split sides of conversation (only for Call Recorder recordings)
1a.-Use Call Recorder droplets, get two AIFF files, rename to LOCAL and REMOTE
1b.-Use split script https://gist.github.com/eduo/e5bb6f48757cde29ec1b
2.-If audio needs cleanup:
a.-Import into Audacity
a.1.-Split stereo tracks to mono (optional)
b.-Clean bad mic audio (optional)
b.1.-Improve Equalization (if bad sound -> Effects -> Equalize -> EMI 78)
http://wiki.audacityteam.org/wiki/EQCurvesDownload