This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pictname=`date +%s` | |
raspistill -o $pictname.jpg -q 100 -v -ex auto -awb sun -mm matrix -t 300 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "how long do you want to take pictures? (in seconds)" | |
read hlong | |
echo "at which interval (in seconds)" | |
read interval | |
echo "please provide a prefix to name the pictures" | |
read prefix | |
hlongms=$(($hlong*1000)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "how many pictures you want to take?" | |
read hmany | |
echo "at which interval" | |
read interval | |
counter=1 | |
while [ $counter -le $hmany ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# you can copy this to /usr/local/bin | |
# and then chmod 775 it | |
now=`date +%Y-%m-%d:%H:%M%s` | |
echo "saving: ~/Pictures/screenshot-$now.jpg" | |
import ~/Pictures/screenshot-"$now".jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syn on | |
set number | |
set tabstop=2 | |
set expandtab | |
set shiftwidth=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log-scale:yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syn on | |
set number | |
set tabstop=2 | |
set expandtab | |
set shiftwidth=2 | |
set bg=dark | |
map <leader>jt <Esc>:%!json_xs -f json -t json-pretty<CR> | |
au BufRead,BufNewFile *.json set filetype=json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# put all grayscale images on ~/gs | |
# and create ~/fc for new false color images from this script | |
# needs imagemagick installed | |
function gradientgen { | |
#convert xc:white xc:yellow xc:red xc:green xc:cyan xc:blue xc:violet xc:black +append -filter Cubic -rotate 90 -resize 20x80\! gradient_IR_4-rainbow.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding=utf-8 -*- | |
# F Varas 09 2015 | |
# works: | |
# wget --user-agent="User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" "http://www.wordreference.com/fres/sournois" -O sournois2.html | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twython import Twython | |
import linecache | |
import os | |
import sys | |
HOME = os.path.expanduser('~/') | |
passfile= HOME + '.passfile.text' | |
APP_KEY = linecache.getline(passfile,1).strip() | |
APP_SECRET = linecache.getline(passfile,2).strip() |