Skip to content

Instantly share code, notes, and snippets.

roman-yepishev /
Created Feb 20, 2018
Unpack script for NB0 file format
#! python3
import argparse
import io
from struct import unpack
roman-yepishev /
Last active Nov 16, 2022
Dell OS Recovery Tool under Linux Mini-HOWTO

Dell OS Recovery Tool Under Linux Mini-HOWTO

Since I was unable to find a specific answer to how can one create a Dell recovery disk from within Linux, I decided to write the steps here.

If you write the CD image directly to the USB drive (or create a new partition and write it there), the laptop will not boot. You need your USB media to be in FAT32 format with the contents of the recovery ISO.

  1. Download the recovery ISO from the support section of Dell website.
  2. Insert a USB Drive with enough capacity to hold the contents of the ISO image.
  3. Format the drive and create a filesystem where $USB_DEVICE is your USB drive (check with fdisk -l, it may be
roman-yepishev /
Last active Aug 1, 2016
Brute-force ArcGIS Feature Layer to GeoJSON exporter
import json
import os
import sys
import math
import requests
import fiona
roman-yepishev /
Last active Mar 4, 2016
Autonumbering magic for Boston
import os
import sys
import xml.sax
import xml.sax.saxutils
import xml.sax.xmlreader
import sqlite3
roman-yepishev / quickaddrinfo.c
Created Feb 27, 2016
AF_UNSPEC resolver for localhost
View quickaddrinfo.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>
#include <netdb.h>
int main()
struct addrinfo hints;
struct addrinfo *result;
roman-yepishev /
Created Feb 5, 2016
Verifying myself on Keybase

Keybase proof

I hereby claim:

  • I am roman-yepishev on github.
  • I am rye ( on keybase.
  • I have a public key ASDVjzC3b2R-iMYCcgjhyVdcUZgJS3O8OJ8uTqrkn81Wiwo

To claim this, I am signing this object:

roman-yepishev / libical-1.0-tzid.patch
Created May 12, 2015
Dropping ical_tzid_prefix makes Open-Xchange like our timezone
View libical-1.0-tzid.patch
--- libical-1.0/src/libical/icaltz-util.c.orig 2013-04-14 13:24:42.000000000 -0400
+++ libical-1.0/src/libical/icaltz-util.c 2015-05-11 23:21:20.632759999 -0400
@@ -349,11 +349,8 @@
tz_comp = icalcomponent_new (ICAL_VTIMEZONE_COMPONENT);
/* Add tzid property */
- tzid = (char *) malloc (strlen (ical_tzid_prefix) + strlen (location) + 8);
- sprintf (tzid, "%sTzfile/%s", ical_tzid_prefix, location);
- icalprop = icalproperty_new_tzid (tzid);
+ icalprop = icalproperty_new_tzid (location);
roman-yepishev /
Last active Apr 6, 2018
Converts ZohoVault export to KeePassX .kdb (python 3 only)
"""Convert Zoho Vault Export CSV to KeePass KDB
Usage: ZohoVault.csv keepass.kdb
You will be prompted for the encryption password.
import csv
roman-yepishev / gist:d0c88731176e0728a8e6
Created Nov 2, 2014
Python MediaFire SDK example: system/get_status
View gist:d0c88731176e0728a8e6
from mediafire.api import MediaFireApi
api = MediaFireApi()
result = api.request("system/get_status")