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 bash | |
| TOKEN=$1 | |
| ruby fb_album_tool.rb -t $TOKEN -l | while IFS="\|" read -ra LINE; do | |
| mkdir "${LINE[1]}" | |
| cd "${LINE[1]}" | |
| ruby ../fb_album_tool.rb -t $TOKEN -d ${LINE[0]} | |
| cd .. | |
| done |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/time.h> | |
| #include <unistd.h> | |
| #include <curl/curl.h> | |
| size_t write_callback(char *ptr, size_t size, size_t nmemb, void *userdata) | |
| { | |
| return size * nmemb; | |
| } |
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
| require 'flickraw' | |
| # 1. Define FLICKR_API_KEY and FLICKR_SHARED_SECRET. Get them at | |
| # http://www.flickr.com/services/api/keys/ | |
| # 2. Run `fetch-flickr-html-codes.rb auth` and follow the instructions. | |
| # 3. Run `fetch-flickr-html-codes.rb <token> <secret>` to list all sets. | |
| # 4. Run `fetch-flickr-html-codes.rb <token> <secret> <set_id>` to | |
| # generate the html code blocks of all pictures from the given set | |
| # using the 'Medium' size. |
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
| require File.expand_path('../boot', __FILE__) | |
| require 'rails/all' | |
| # Require the gems listed in Gemfile, including any gems | |
| # you've limited to :test, :development, or :production. | |
| Bundler.require(:default, Rails.env) | |
| module A | |
| class Application < Rails::Application |
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
| .PHONY: all | |
| all : xdeltadecode | |
| xdeltadecode : xdeltadecode.o xdelta3.o | |
| gcc -o $@ $^ -llzma | |
| %.o : | |
| gcc -Wall -I /home/romulo/Downloads/xdelta3-3.0.6 -DHAVE_CONFIG_H -DXD3_POSIX=1 -DXD3_USE_LARGEFILE64=1 -DNOT_MAIN -c $^ -o $@ | |
| xdeltadecode.o : xdeltadecode.c |
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
| description "No-ip client" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| umask 022 | |
| expect fork |
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
| <customMapSource> | |
| <name>Google Maps</name> | |
| <minZoom>0</minZoom> | |
| <maxZoom>20</maxZoom> | |
| <tileType>PNG</tileType> | |
| <tileUpdate>IfNoneMatch</tileUpdate> | |
| <url>http://mt{$serverpart}.google.com/vt/lyrs=m@176103410&hl=pt-BR&x={$x}&y={$y}&z={$z}&s=Galileo&scale=1</url> | |
| <serverParts>0 1 2 3</serverParts> | |
| </customMapSource> |
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
| <customMapSource> | |
| <name>Google Earth</name> | |
| <minZoom>0</minZoom> | |
| <maxZoom>19</maxZoom> | |
| <tileType>JPG</tileType> | |
| <tileUpdate>IfNoneMatch</tileUpdate> | |
| <url>https://khms{$serverpart}.google.com/kh/v=154&x={$x}&y={$y}&z={$z}</url> | |
| <serverParts>0 1 2 3</serverParts> | |
| </customMapSource> |
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 | |
| IFS=$'\n' | |
| for L in $(git status --porcelain $1); do | |
| if [[ $L =~ ^\ M\ (.*)$ || $L =~ ^\ T\ (.*)$ || $L =~ ^\?\?\ (.*)$ ]] ; then | |
| git add ${BASH_REMATCH[1]} | |
| >&2 echo added ${BASH_REMATCH[1]} | |
| elif [[ $L =~ ^\ D\ (.*)$ ]] ; then | |
| git rm ${BASH_REMATCH[1]} |
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
| *~ | |
| *-old | |
| *.cache | |
| *.dpkg-dist | |
| *.dpkg-bak | |
| /*- | |
| /*.org | |
| /adjtime | |
| /.pwd.lock | |
| /mtab |