I hereby claim:
- I am shannietron on github.
- I am shannietron (https://keybase.io/shannietron) on keybase.
- I have a public key ASC_6j4_fXThxThWHawNnGjFKTT5Vzobr-EwbOpJViMwHwo
To claim this, I am signing this object:
function power | |
set amp (system_profiler SPPowerDataType | awk '/Amperage/{ print $3 }') | |
set volt (system_profiler SPPowerDataType | awk '/Voltage/{ print $3 }') | |
set power (echo "scale=2; ($volt * $amp)/1000000"| bc -l) | |
echo $power"W" | |
end |
#!/bin/bash | |
while read line | |
do | |
name=$line | |
echo "Playing - $name" | |
youtube-dl -f 141 $name -o - | mplayer - | |
# youtube-dl -x --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" $name | |
done < $1 |
I hereby claim:
To claim this, I am signing this object:
function ytplay | |
youtube-dl -f bestaudio $argv[1] -o - | mplayer - | |
end |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char *binary(unsigned int dec); | |
int main(int argc, char * argv [] ){ | |
unsigned int input = strtol(argv[1],NULL,10); | |
unsigned int temp = 0x0; |
function makeScanned | |
convert -density 150 $argv[1] -colorspace gray -linear-stretch 3.5%x10% -blur 0x0.5 -attenuate 0.25 +noise Gaussian -rotate 0.5 temp.pdf | |
gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite -sColorConversionStrategy=LeaveColorUnchanged dAutoFilterColorImages=true -dAutoFilterGrayImages=true -dDownsampleMonoImages=true -dDownsampleGrayImages=true -dDownsampleColorImages=true -sOutputFile=output.pdf temp.pdf | |
end | |
#idea from this HN thread | |
#https://news.ycombinator.com/item?id=23160387 |