Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / Subreddit
Created July 31, 2020 14:54
List of Subreddits
1200isplenty
15minutefood
3Dprinting
AccentChallenge
Adorifying
AdviceAnimals
AltStore
announcements
AppHookup
apple
@eduo
eduo / pull-osx-printer.sh
Last active May 8, 2020 13:04
Pulls the configuration of an OSX Printer, so it can be loaded elsewhere
#!/bin/sh
#
# (c) Copyright PaperCut Software, 2007
#
# Author: Chris Dance (chris.dance <a> papercut.com)
# A simple script to copy printer configuration from one Apple Mac OS X
# system to another.
#
TARGET_HOST=`hostname`
@eduo
eduo / SyncToRemoteFolderOSX.sh
Created May 8, 2020 13:03
OSX Bash Script to synchronise remote folder when changes are detected. Requires fswatch (homebrew)
#!/bin/bash
#
run_rsync_acc () {
RSYNC_COMMAND=$(rsync -azPim --delete-before --no-motd --exclude ".*/" --exclude=.DS_Store ~/rootfolder/ remoteuser@remotesite.com:remotelocation)
if [ $? -eq 0 ]; then
# Success do some more work!
if [ -n "${RSYNC_COMMAND}" ]; then
# Stuff to run, because rsync has changes
#!/bin/bash
#
#Tidy Up the format of all XMLs in a folder with xmllint
mkdir good 2>/dev/null
mkdir origXML 2>/dev/null
ls -1 *.xml | while read file; do xmllint --format "${file}" > good/"${file}"; done
mv *.xml origXML/.
mv good/*.xml ./.
rm -rf good
#!/bin/bash
#
ls -1 *xml | while read FILE
do
FILENAME=${FILE##*/};FILEPATH=${FILE%/*};NOEXT=${FILENAME%\.*};EXT=${FILE##*.}
#echo "Testing for ${FILE} as ${NOEXT}"
xmllint --noout --schema ~/main.xsd ${NOEXT}.xml 2> ${NOEXT}.errors.txt
if grep --quiet validates ${NOEXT}.errors.txt ; then
#!/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
@eduo
eduo / glyphicon_font-awesome_convert.scss
Created March 22, 2018 20:16 — forked from blowsie/glyphicon_font-awesome_convert.scss
Map glyphicon icons to font-awesome
$fa-font-path: "~font-awesome/fonts";
@import '~font-awesome/scss/font-awesome';
.glyphicon {
@extend .fa;
&.glyphicon-chevron-up {
@extend .fa-chevron-up;
}
&.glyphicon-chevron-right {
@extend .fa-chevron-right;