Skip to content

Instantly share code, notes, and snippets.

@eduo
eduo / pdfwalker.on.Mac.txt
Last active March 21, 2022 13:12 — forked from novi/pdfwalker.on.Mac.txt
PDFWalker Install on Mac OS X 10.6.7
* Install Xcode
* Install XQuartz
* brew install libtiff gtk+
** Change the LLVM Compiler in homebrew to /usr/bin/gcc-4.2:
/usr/local/Library/Homebrew/extend/ENV.rb HOMEBREW_USE_GCC
brew install--use-gcc
** /Usr/local/lib/libintl.8.0.2.dylib symbolic link -> libintl.dylib
* gem install origami gtk2
* mkdir -p ~/.local/share
** If pdfwalker doesn't run set /Library/Ruby/Gems/1.8/gems/origami-1.0.3/bin/pdfwalker:3 RUBY_VERSION to 1.8 or higher
@eduo
eduo / couch-install-centos7.
Created January 2, 2017 10:23 — forked from wmealing/couch-install-centos7.
centos7 / rhel7 install instructions for couchdb.
#!/bin/bash
# Move to a location where you don't mind storing the couchdb install files.
cd /tmp/
EPEL_FILE=epel-release-latest-7.noarch.rpm
COUCH=apache-couchdb-1.6.1.tar.gz
rm -rf epel-release-latest-7.noarch.rpm

Mac from scratch

Install Software

Install from App Store

Install from Third-Party Websites

@eduo
eduo / OSHashAlgorithm.swift
Last active August 29, 2015 14:23 — forked from omerucel/OSHashAlgorithm.swift
OpenSubtitles Hashing Algorithm in Swift 2
// OSHash.swift
// Originally implemented from Objective-C version for Swift by omerucel 18/04/2015
// http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes#Objective-C
// Updated for Swift 2 by eduo on 15/06/15.
// Copyright © 2015 Eduardo Gutierrez. All rights reserved.
//
import Foundation
class OSHashAlgorithm: NSObject {
@eduo
eduo / lib_solbend.php
Last active August 29, 2015 14:19
HamsterSpit Libraries
<?
date_default_timezone_set('UTC');
// Functions Start Here
thisHost="yourhost.com"
if(!function_exists('date_diff')) {
class DateInterval {
public $y;
@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
@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 / 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" ]]
<?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>
#!/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