Skip to content

Instantly share code, notes, and snippets.

@sasapurin
sasapurin / .rtorrent.rc
Last active January 6, 2022 23:19 — forked from bryanjswift/.rtorrent.rc
rtorrent configuration file with description fix 20190713
# 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
@sasapurin
sasapurin / gist:7fbe4fe304fd627a4131d995bbfec6fe
Created July 28, 2019 04:10
CHECK STATUS and RESTART of USB Device
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 / GoogleEarth用KP-KML作成.awk
Created June 18, 2020 06:50
GoogleEarth用KP-KML作成
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 / 地理院地図用KP-KML作成.awk
Created June 18, 2020 06:51
地理院地図用KP-KML作成
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>"
<?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>