Skip to content

Instantly share code, notes, and snippets.

View lifofernandez's full-sized avatar
🎯
Focusing

Lisandro Fernández lifofernandez

🎯
Focusing
View GitHub Profile
@lifofernandez
lifofernandez / soxplot.sh
Created September 17, 2017 23:09 — forked from notthetup/soxplot.sh
Whole file spectrum using SOX and gnuplot.
sox $1 -n stat -freq 2>&1 | sed -n -e :a -e '1,15!{P;N;D;};N;ba' | gnuplot -p -e 'set logscale x; plot "-" with linesp'
@lifofernandez
lifofernandez / CLI-image-manip
Created September 6, 2017 18:44
CLI image manipulation
# downscale and lower quality of JPGs in a folder
mogrify -resize 50% -quality 70 *.jpg
#
@lifofernandez
lifofernandez / ttf-superpose.pl
Last active January 9, 2017 17:22
superpose different TTF/OTF fonts...
#!/usr/bin/perl
#ttf-superpose.pl
################################################################################
# Simple script to generate printable font proof sheets
# To Do: add font coverage printig
# https://github.com/abelcheung/font-coverage
use strict;
use warnings;
@lifofernandez
lifofernandez / osx_elcapitan_fix.md
Last active December 6, 2021 14:07
CPAN fix "Do not have write permissions on '/usr/bin'" OSX El Capitan problem

CPAN log

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Solution: http://www.perlmonks.org/?node_id=1144321

Aperently in this OSX version, applications can not whrite on /usr with temporary sudoer rights.

@lifofernandez
lifofernandez / jeff_mills-exhibitionist
Created December 23, 2016 20:32
Jeff Mills -- Exhibitionist DVD
Jeff Mills -- Exhibitionist DVD
Label:Axis
Catalog#:AXDV-001
Format:DVD, Mixed
Country:US
Released:09 Jan 2004
Genre:Electronic, Non-Music
Style:Interview, Techno Exhibitionist Mix (45:24)
B3-01 Jeff Mills -- AX-009F Segment 3
@lifofernandez
lifofernandez / radios_nl
Last active December 3, 2016 20:10
URL de radios de Holanda y Alemania
# para usar: $ mplayer RADIO_STREAM
http://vip-icecast.538.lw.triple-it.nl/WEB13_MP3 (the boom room, https://soundcloud.com/theboomroomofficial)
@lifofernandez
lifofernandez / drupal7-MODULE_hook_url_inbound_alter.php
Last active September 5, 2016 12:25
snipets utiles para Drupal 7 :)
https://api.drupal.org/api/drupal/modules%21system%21system.api.php/function/hook_url_inbound_alter/7.x
function MODULE_url_inbound_alter(&$path, $original_path, $path_language) {
// Create the path user/me/edit, which allows a user to edit their account.
if (preg_match('|^user/me/edit(/.*)?|', $path, $matches)) {
global $user;
$path = 'user/' . $user->uid . '/edit' . $matches[1]; # tiene que ser la url original (node/12), no apuntar a otro alias
}
}
@lifofernandez
lifofernandez / reserva_vim.txt
Created August 6, 2016 23:30
Utilidades y ajustes para vim
:r! sed -n 147,227p /path/to/foo/foo.c
:hi Comment term=reverse ctermfg=0 ctermbg=10
@lifofernandez
lifofernandez / radios_nacionales.txt
Last active October 11, 2017 03:11 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -i $1 | cut -d" " -f1`; cvlc $r; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales
http://200.68.81.65:8000/am530 Radio Madre 530
http://wmserver3.aginet.com.ar:19043 Radio Colonia 550
http://195.154.182.222:26016/;stream/1 Radio Argentina 570
http://7359.live.streamtheworld.com/CONTINENTAL.mp3 Continental 590
http://190.104.220.205:8234 Rivadavia 630
# Font Forge
brew cask install xquartz
brew install fontforge # This formula only installs the command line utilities.
brew cask install fontforge # FontForge.app
# RoboFab