Skip to content

Instantly share code, notes, and snippets.

View 地理院地図KMLサンプル
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="PolyStyle1">
<IconStyle>
<Icon>
<href>https://maps.gsi.go.jp/portal/sys/v4/symbols/001.png</href>
</Icon>
<scale>1</scale>
</IconStyle>
View 地理院地図用KP-KML作成.awk
BEGIN{
FS=","
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
print "<kml xmlns=\"http://www.opengis.net/kml/2.2\">"
print " <Document>"
print " <Style id=\"PolyStyle1\">"
print " <IconStyle>"
print " <Icon>"
print " <href>https://maps.gsi.go.jp/portal/sys/v4/symbols/080.png</href>"
print " </Icon>"
View GoogleEarth用KP-KML作成.awk
BEGIN{
FS=","
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
print "<kml xmlns=\"http://www.opengis.net/kml/2.2\" xmlns:gx=\"http://www.google.com/kml/ext/2.2\" xmlns:kml=\"http://www.opengis.net/kml/2.2\" xmlns:atom=\"http://www.w3.org/2005/Atom\">"
print "<Document>"
print " <name>road-kp.kml</name>"
print " <StyleMap id=\"msn_grn-blank\">"
print " <Pair>"
print " <key>normal</key>"
print " <styleUrl>#sn_grn-blank</styleUrl>"
@sasapurin
sasapurin / gist:7fbe4fe304fd627a4131d995bbfec6fe
Created Jul 28, 2019
CHECK STATUS and RESTART of USB Device
View gist:7fbe4fe304fd627a4131d995bbfec6fe
REM This Script Need the devcon.exe (Include Microsoft WDK)
echo off
setlocal
REM Make Tempfile PATH
set TMP_FILE=%~dp0tmp_status.log
REM Define USB Device ID
set USB_DEV_ID="USB\VID_0590&PID_0081&REV_0109"
@sasapurin
sasapurin / .rtorrent.rc
Last active Jul 13, 2019 — forked from bryanjswift/.rtorrent.rc
rtorrent configuration file with description fix 20190713
View .rtorrent.rc
# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
# Maximum and minimum number of peers to connect to per torrent.
throttle.min_peers.normal = 1
throttle.max_peers.normal.set = 100
# Same as above but for seeding completed torrents (-1 = same as downloading)
throttle.min_peers.seed.set = 1
You can’t perform that action at this time.