Skip to content

Instantly share code, notes, and snippets.

View shikhalev's full-sized avatar

Иван Шихалев shikhalev

View GitHub Profile
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, ".i2p")) {
return "PROXY 127.0.0.1:4444";
} else {
return "DIRECT";
}
}
#!/usr/bin/ruby
def apply latitude, longitude, files
len = files.length
files.each_with_index do |file, idx|
system("exiftool -GPSLatitude=#{latitude} -GPSLongitude=#{longitude} -Latitude=#{latitude} -Longitude=#{longitude} -XMP:GPSLatitude=#{latitude} -XMP:GPSLongitude=#{longitude} #{file}")
puts "#{idx} of #{len}: #{file}"
end
end