Skip to content

Instantly share code, notes, and snippets.

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
@shikhalev
shikhalev / fj3395ty.yaml
Last active April 14, 2025 01:53
Meteostansion FJ3395Y for Tuya Local (some fields is wrong)
# fj3395ty.yaml
name: Метеостанция FJ3395TY
products:
- id: 6cwineqz1ndjmuee # Product ID из tinytuya
entities:
- entity: sensor
name: Температура в помещении
class: temperature
dps:
- id: 1
@shikhalev
shikhalev / fj3390ty-a.yaml
Created March 12, 2025 06:41
Meteostansion FJ3390TY-A for Tuya Local
# fj3390ty-a.yaml
name: Метеостанция FJ3390TY-A
products:
- id: cvurn5ynloebrpwy # Product ID из scan
entities:
- entity: sensor
name: Температура в помещении
class: temperature
dps:
- id: 101
git checkout --orphan gh-pages
git rm -rf .
git commit --allow-empty -m "Initial empty commit"
git push origin gh-pages