Skip to content

Instantly share code, notes, and snippets.

View rayslava's full-sized avatar

rayslava rayslava

View GitHub Profile
@rayslava
rayslava / kml-to-ssfs.py
Created November 3, 2023 17:07
Convertor KML to Subsurface Dive Site XML file created by ChatGPT
import xml.etree.ElementTree as ET
import uuid
# Parse the KML file
tree = ET.parse('yourfile.kml')
root = tree.getroot()
# KML files use the default namespace, define it to search for elements
namespace = {'kml': 'http://www.opengis.net/kml/2.2'}
@rayslava
rayslava / steam-system-info.txt
Created September 21, 2018 17:21
Steam System Information
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
CPU Family: 0x6
@rayslava
rayslava / img.sh
Created October 5, 2015 13:54
View image by link
function instagram {
local image_url=`curl -s -k -L --socks5 'localhost:9050' "$1" | grep 'og:image' | sed -e 's/.*content="//;s/".*//'`
echo $image_url
curl -s -k --socks5 'localhost:9050' "$image_url" | feh -
}
function twitter {
local image_url=`curl -s -k -L "$1" | grep '"og:image"' | sed -e 's/.*content="//;s/".*//'`
echo $image_url
curl -s -k --socks5 'localhost:9050' "$image_url" | feh -
(defvar alfa-currencies 'nil "Current value of currencies")
(defun alfa-currency-query ()
"HTTP request to AlfaBank currency API"
(let ((url "https://alfabank.ru/ext-json/0.2/exchange/cash/"))
(web-http-get
(lambda (httpc header my-data)
(with-temp-buffer
(insert my-data)
(goto-char (point-min))

Keybase proof

I hereby claim:

  • I am rayslava on github.
  • I am rayslava (https://keybase.io/rayslava) on keybase.
  • I have a public key ASDzsjJNqmWKMA0jw5y1EdtnKmmznLXYOvKS2fc6EHqsRQo

To claim this, I am signing this object: